Connection

  • Thread starter Thread starter irshad
  • Start date Start date
I

irshad

Hello All
I need to connect to SQL-Server thro VB.Net thro Used Id
and Pwd...?

Thanks
 
Hello,

Irshad said:
Dim sConnectionString As String _
= "Data Source=STLABCSQL06;Initial

Maybe ppl in the .NET+database ng can help you:

news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet

HTH,
Herfried K. Wagner
 
oSQLConn.ConnectionString = "sConnectionString"

This line is your problem. You're setting the connection string to the
string literal "sConnectionString", so the error is perfectly correct.
This line *should* be (note the lack of quotes):

oSQLConn.ConnectionString = sConnectionString
 
Back
Top