SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Connecting to SQL 2000
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

texas1992
Starting Member

21 Posts

Posted - 08/02/2012 :  11:11:37  Show Profile  Reply with Quote
I have been given the task of connecting an old application written in VB6.0, installed on a Win7 machine, to a SQL 2000 server. The Native SQL 10.0 driver has been installed on the win7 machine.

I need to connect via a DSNless connection. I have not done this in a long time so I need some help. Here is the current connection string:

OpenConnection("Export", dbDriverNoPrompt, True, "ODBC;DRIVER=SQL Server;SERVER=<server>;DATABASE=<database>;UID=<user>;PWD=<password>;DSN=''")

Thanks.

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 08/02/2012 :  11:16:33  Show Profile  Reply with Quote
see

http://www.connectionstrings.com/sql-server

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

texas1992
Starting Member

21 Posts

Posted - 08/02/2012 :  11:41:14  Show Profile  Reply with Quote
Thanks for your reply.

I made the change, DRIVER=SQLNCLI10, but still can not connect. According to the link you gave me this change should work. Do you have any suggestions?

So far, the application works until I get to the point where I am trying to connect to the database.
Go to Top of Page

texas1992
Starting Member

21 Posts

Posted - 08/13/2012 :  10:50:02  Show Profile  Reply with Quote
I am still having trouble connecting to the database. I have converted the application to the .NET platform but still can not connect.

Any help would be appreciated.

Thanks.
Go to Top of Page

robvolk
Most Valuable Yak

USA
15635 Posts

Posted - 08/13/2012 :  11:17:26  Show Profile  Visit robvolk's Homepage  Reply with Quote
Are you getting an error message? Are you sure the server is available? User and password correct?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000