Solved

Connect to SQL 2008 R2 with ASP/VBScript

Posted on 2010-11-19
3
1,692 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

696 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