Computing.Net > Forums > Programming > remote sql 2000 connection VB6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

remote sql 2000 connection VB6

Reply to Message Icon

Name: Anthony Arde
Date: January 24, 2006 at 22:40:31 Pacific
OS: win Xp Pro Sp2
CPU/Ram: 3.2 P4
Comment:

this is my current connection string that i`m using to connect to my sql2000 db that my isp is hosting for me, Please can you help
Thanks Ant

Conn3.ConnectionString = "Provider=SQLOLEDB.1;" & "User Id=" & usrname & ";" & "Password=" & pass & ";" & "Persist Security Info=true;" & "Initial Catalog=POARDB;" & "Data Source=" & srvname
Conn3.Open



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: January 25, 2006 at 13:32:50 Pacific
Reply:

This is how I make a connection string to a SQL database:

ConnectionString = "Provider=SQLOLEDB;Driver={SQL Server};Server=" & ServerName & ";Database=" & DatabaseName & ";uid=" & UserName & ";pwd=" & Password & ";"

This works for all versions of ADO

Hope this helps,
Chi

They mostly come at night...mostly.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: remote sql 2000 connection VB6

connect VB6.0 with SQL 7.0 www.computing.net/answers/programming/connect-vb60-with-sql-70/5691.html

microsoft SQL 2000 & 2005 www.computing.net/answers/programming/microsoft-sql-2000-amp-2005/15747.html

How do i Access SQL2000 using VB6 www.computing.net/answers/programming/how-do-i-access-sql2000-using-vb6/7710.html