Hello everyone,
I used the following ADO/OLEDB connection string to connect to a SQL Server database using VB6:
Dim SQLserverCn As ADODB.Connection
Set SQLserverCn = New ADODB.Connection
SQLserverCn.Open "Driver=SQL Server;Server=Server1;" & _
"Database=Scheduling;UID=SA;PWD=User1"
This connection string does not work in VB.Net. Can any please let me know what syntax to use for this type of connection in VB.Net?
Thank you,
R. Rubio
I used the following ADO/OLEDB connection string to connect to a SQL Server database using VB6:
Dim SQLserverCn As ADODB.Connection
Set SQLserverCn = New ADODB.Connection
SQLserverCn.Open "Driver=SQL Server;Server=Server1;" & _
"Database=Scheduling;UID=SA;PWD=User1"
This connection string does not work in VB.Net. Can any please let me know what syntax to use for this type of connection in VB.Net?
Thank you,
R. Rubio