Connection String to Connect a VB 6 Application to SQL Server 2005
- From: behmag@xxxxxxxxx
- Date: 25 Sep 2006 22:33:36 -0700
Hello everyone,
thank you for reading.
I have a VB 6 application that uses a connection string to connect to a
SQL Server 2000 Database. something like this
cst = "Provider=SQLOLEDB.1;" & _
"Data Source=192.168.1.100;" & _
"Initial Catalog=databasename;" & _
"User Id=UserLoginName;" & _
"Password=UserPassword"
I use ADO, I have the lates MDAC installed. also the Microsoft SQL
Server 2005 Native Client.
My question here is : What's the equivalent Connection string to
connect my application to a SQL Server 2005 Database.
I tried :
"Provider=SQLNCLI;Server=ServerName;Database=pubs;UID=myUsername;PWD=myPassword;"
without success.
Thank you in advance,
Behring
PS.
I have not tried any ODBC connection because i would like to use this
way. (OLEDB)
I'm using SQL Server 2005 not SQL Server 2005 Express.
.
- Follow-Ups:
- Re: Connection String to Connect a VB 6 Application to SQL Server 2005
- From: Bob Barrows [MVP]
- Re: Connection String to Connect a VB 6 Application to SQL Server 2005
- Prev by Date: Re: Create Table problem
- Next by Date: Re: Connection String to Connect a VB 6 Application to SQL Server 2005
- Previous by thread: Re: Create Table problem
- Next by thread: Re: Connection String to Connect a VB 6 Application to SQL Server 2005
- Index(es):
Relevant Pages
|