Access Denied Error

Posted on 2005-05-04
Medium Priority
Last Modified: 2008-01-09
I am using the following DSNLESS connection to access info from sql server 2003 and I am getting the following error

      set cn = Server.CreateObject("ADODB.Connection")
      cn.connectionstring = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=iwilliams;Password=4161023;Initial Catalog=CustomerMaster;Data Source=CITSCUSTMAST"

Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNMPNTW]Access denied.

any idea how to correct this problem

thank you
Question by:krbnldy
LVL 66

Expert Comment

by:Jim Horn
ID: 13927845
A correct UserID and password?

http://www.connectionstrings.com/ has a detailed listing of many connection string templates.

Hope this helps.

Author Comment

ID: 13927860
yes i have the correct user name and password

Accepted Solution

pfaires earned 100 total points
ID: 13929274

You should check if the protocols in your client configuration match those accepted by you configuration of SQL server. Run the client configuration utility, cliconfg.exe and check if it is not using named pipes (I recommend TCP/IP) as the default protocol. Then, check on the server if it is also using TCP/IP as the default protocol (run svrnetcn.exe).

Hope this helps.

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Exchange database can often fail to mount thereby halting the work of all users connected to it. Finding out why database isn’t mounting is crucial and getting the server back online. Stellar Phoenix Mailbox Exchange Recovery is a champion product t…
If you try to migrate from Elastix to Issabel, you will face a lot of issues. These problems are inevitable but fortunately, you can fix them. In the guide below, I will explain how I performed the migration while keeping all data and successfully t…
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

619 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