testare
Programmer
- Jan 21, 2005
- 127
Today i sat down to for the first time to look at Visual Basic .Net
I Notice that my Set is being disappear when i type
becuase then i want to use a recordet set
I Notice that my Set is being disappear when i type
Code:
Set Conn = CreateObject("ADODB.Connection")
Code:
Dim Conn As ADODB.Connection
Dim Rec As ADODB.Recordset
Dim sSQL As String
Conn = CreateObject("ADODB.Connection")
Conn.ConnectionString = "Driver{SQLServer};Server=TEST;UID=sa;PWD=123;DATABASE=TEST"
Conn.Open()
sSQL = "SELECT * FROM USER"
Rec = Conn.Execute(sSQL)