Link to home
Start Free TrialLog in
Avatar of krbnldy
krbnldy

asked on

Access Denied Error

I am using the following DSNLESS connection to access info from sql server 2003 and I am getting the following error

----Connection----------
      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"
      cn.OPEN


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

any idea how to correct this problem

thank you
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

A correct UserID and password?

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

Hope this helps.
-Jim
Avatar of krbnldy
krbnldy

ASKER

yes i have the correct user name and password
ASKER CERTIFIED SOLUTION
Avatar of pfaires
pfaires

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial