Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection error

Status
Not open for further replies.

LeoLionHeart

Programmer
Apr 4, 2006
45
GB
Hi, I hope that someone can help.

I have two SQL servers with excatly the same databases on (development and live).

When I connect to my dev database using the connection string:

Code:
strConnect = "Driver={SQL Server};Server=SERVER;Database=DB;Uid=sa;Pwd=Pass;"

I get results. However, on the other sql server i get the following error:

Error Number: -2147467259
description: [Microsoft][ODBC SQL Server Driver][Named Pipes]Access denied.

Any help would be greatly appreciated.

Thanks
 
Obviously it is an access error.

Does your user account have rights on the second server? Is the password the same?

Steve Davis

NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top