Solved

Connect to SQL 2008 R2 with ASP/VBScript

Posted on 2010-11-19
3
1,646 Views
Last Modified: 2012-06-27
Hi experts,

we have a classic ASP page where we want to connect to a sql 2008 R2 server.
The connection string so far to connect to sql 2005 was:
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = database; User Id = userABC; Password=abcd"
this worked perfectly. But now with sql2008 it doesn't work any more and throws the following error:

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user 'userABC'.

/web/db.asp, line 11

Please help
Thanks a lot
Best regards
arthrex


0
Comment
Question by:arthrex
  • 2
3 Comments
 
LVL 3

Expert Comment

by:FreakyEddie
ID: 34174051
Connection string for win2k8 is the same.

Did you add the user? Is the Pass correct?
0
 
LVL 3

Accepted Solution

by:
FreakyEddie earned 500 total points
ID: 34174115
Doublechecked it...

Hereby the correct connection string.Else you can always consult www.connectionstrings.com

Driver={SQL Server};Server=(local);Database=dbname;uid=username;pwd=password;Trusted_Connection=no;
0
 

Author Closing Comment

by:arthrex
ID: 34196225
Thanks that helped a lot
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now