title image


Smiley erledigt
habs gelöst:

Dim conn As OdbcConnection

Dim comm As OdbcCommand

Dim dr As OdbcDataReader

Dim connectionString As String

Dim sql As String

connectionString = "DSN=PracticalLotusScriptTest" ';UID=Chester;Pwd=Tester;"

sql = "SELECT CustomerID, ContactName, ContactTitle FROM Customers"

conn = New OdbcConnection(connectionString)

conn.Open()

comm = New OdbcCommand(sql, conn)

dr = comm.ExecuteReader()

While (dr.Read())

Console.WriteLine(dr.GetValue(0).ToString())

Console.WriteLine(dr.GetValue(1).ToString())

Console.WriteLine(dr.GetValue(2).ToString())

End While

conn.Close()

dr.Close()

comm.Dispose()

conn.Dispose()





geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: