Click here to Skip to main content
15,886,578 members
Home / Discussions / Database
   

Database

 
GeneralInsert a file of 10MB into an SQL 2000 Server Table Pin
anderslundsgard13-Apr-05 4:49
anderslundsgard13-Apr-05 4:49 
GeneralRe: Insert a file of 10MB into an SQL 2000 Server Table Pin
Albert Pascual13-Apr-05 6:12
sitebuilderAlbert Pascual13-Apr-05 6:12 
GeneralRe: Insert a file of 10MB into an SQL 2000 Server Table Pin
Scott Serl13-Apr-05 9:16
Scott Serl13-Apr-05 9:16 
Generali want to select database from sql where query it is Pin
bibipopopopo12-Apr-05 20:14
bibipopopopo12-Apr-05 20:14 
GeneralMerge results Pin
knopppen12-Apr-05 10:04
knopppen12-Apr-05 10:04 
GeneralRe: Merge results Pin
Ritesh123413-Apr-05 3:09
Ritesh123413-Apr-05 3:09 
Generalado.net Pin
Member 187540712-Apr-05 1:25
Member 187540712-Apr-05 1:25 
GeneralRe: ado.net Pin
Ritesh123412-Apr-05 1:48
Ritesh123412-Apr-05 1:48 
Hi,
Try this code.........

<code>     Private Sub PullData()

           'DECLARE VARIABLES
           Dim ds As New DataSet("DataSetName")
           Dim dr As DataRow
           Dim myConnection As New SqlClient.SqlConnection("Data Source={Local};database=Northwind;user id=sa;")
           Dim myAdapter As New SqlClient.SqlDataAdapter()
           Dim myCommand As New SqlClient.SqlCommand(("SELECT LastName, FirstName, Title, BirthDate  FROM Employees"), myConnection)
             Try
               myCommand.CommandType = CommandType.Text
               myAdapter.SelectCommand = myCommand
               myAdapter.SelectCommand.Connection = myConnection
               myAdapter.Fill(ds,"Employee")
           Catch ex As Exception
               lblMessage.Text = ex.Message
           End Try
           'Close connection
           myConnection.Close()

           dataGrid.DataSource = ds.Tables("Employee")
          End Sub</code>


I hope this will help u.............:->

Regards,
Ritesh
GeneralConnecting to a remote server. Pin
RuchirD12-Apr-05 0:24
RuchirD12-Apr-05 0:24 
GeneralDataBinding: problem after DataSet.Tables[&quot;table&quot;].Clear() Pin
Vexta11-Apr-05 21:52
Vexta11-Apr-05 21:52 
GeneralSelect view Pin
Yulianto.11-Apr-05 16:38
Yulianto.11-Apr-05 16:38 
GeneralRe: Select view Pin
Colin Angus Mackay14-Apr-05 1:35
Colin Angus Mackay14-Apr-05 1:35 
QuestionHow to Export a database using Script Pin
Iridania11-Apr-05 16:03
Iridania11-Apr-05 16:03 
AnswerRe: How to Export a database using Script Pin
Albert Pascual13-Apr-05 6:15
sitebuilderAlbert Pascual13-Apr-05 6:15 
GeneralQuery Pin
11-Apr-05 3:55
suss11-Apr-05 3:55 
GeneralRe: Query Pin
Yulianto.11-Apr-05 16:31
Yulianto.11-Apr-05 16:31 
QuestionHow can i select more records Pin
bibipopopopo11-Apr-05 2:49
bibipopopopo11-Apr-05 2:49 
AnswerRe: How can i select more records Pin
RChin11-Apr-05 3:38
RChin11-Apr-05 3:38 
GeneralRe: How can i select more records Pin
Colin Angus Mackay11-Apr-05 4:56
Colin Angus Mackay11-Apr-05 4:56 
AnswerRe: How can i select more records Pin
Colin Angus Mackay11-Apr-05 4:54
Colin Angus Mackay11-Apr-05 4:54 
GeneralHelp Needed Pin
Anonymous11-Apr-05 2:31
Anonymous11-Apr-05 2:31 
GeneralRe: Help Needed Pin
Colin Angus Mackay11-Apr-05 3:12
Colin Angus Mackay11-Apr-05 3:12 
QuestionBest way to use criteria in SQL statements? Pin
WindSailor11-Apr-05 0:46
WindSailor11-Apr-05 0:46 
AnswerRe: Best way to use criteria in SQL statements? Pin
Colin Angus Mackay11-Apr-05 3:11
Colin Angus Mackay11-Apr-05 3:11 
GeneralRe: Best way to use criteria in SQL statements? Pin
WindSailor11-Apr-05 8:41
WindSailor11-Apr-05 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.