Forum: VB.NET |
Thema:
Re: Connect zu SQL ! |
Von:
Thomas Scherner (
20.10.2005 15:55) |
Ich habs geschaft :
Aus dem Link von gerade ..
Vielen Dank an alle.
Es sieht jetzt so aus ..
Dim myConnection As SqlConnection
Dim myCommand As SqlDataAdapter
' Create a connection to the "pubs" SQL database located on the
' local computer.
myConnection = New SqlConnection("server=DERPDB5;" _
& "database=R_Planning_01;Trusted_Connection=Yes")
' Connect to the SQL database using a SQL SELECT query to get all
' the data from the "Authors" table.
myCommand = New SqlDataAdapter("SELECT * FROM ATTKS", _
myConnection)
' Create and fill a DataSet.
Dim ds As DataSet = New DataSet
myCommand.Fill(ds)
' Bind MyDataGrid to the DataSet. MyDataGrid is the
' ID for the DataGrid control in the HTML section.
Me.DataGrid1.DataSource = ds
'Me.DataGrid1.DataBind()
Thomas
Ich bin ein Newbie . Aber jeder hat mal angefangen. Gruß & Dank Thomas
Betreff |
Von |
Datum |
|
  |
Re: Connect zu SQL !
gibts auch deutsch mit weniger content<br><br>http://www.microsoft.com/germany/msdn/library/default.mspx |
 |
 |
 |
|
|
Hannes
Preishuber
|
20.10.2005 16:26 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!