borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincani

AndreaVB Home | News Home | Forum Home | Downloads | Register | Search | PM | Profile

Previous Topic (connection a BD??)Next Topic (how to connect an oracle database by using Dao reference??) New Topic Post Reply
AndreaVB OnLine : Database : sql connection string
Poster Resource
krishna_thakrar
Level: Guest

icon sql connection string



I have a problem with the connection string to sql using ADO.

The following is the string I use and I get the error message "Object dosen't support named arguments"

Please help

msConnectString = "Provider=SQLOLEDB.1;" & _
                      "Data Source=" & sServerName & ";" & _
                      "uid=" & sUserID & ";" & _
                      "pwd=" & sPassword & ";" & _
                      "Initial Catalog=" & sDatabaseName & ";"

Thanks very much

02-09-2002 at 11:27 AM
| Add Comment
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1658
icon Re: sql connection string

You get an error on the line that you posted?

02-09-2002 at 07:15 PM
View Profile Send Email to User Show All Posts Visit Homepage | Add Comment
AndreaVB OnLine : Database : sql connection string
Previous Topic (connection a BD??)Next Topic (how to connect an oracle database by using Dao reference??)New Topic Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder