Solved

Connect to SQL 2008 R2 with ASP/VBScript

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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