Solved

Connect to SQL 2008 R2 with ASP/VBScript

Posted on 2010-11-19
3
1,668 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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