SQL Express connection string hell ASP.Net -


SQL Express 2005 is running locally. I have a project written by someone running on the same machine. What I want to do is connect to it, can not it be right?

This is what I use in my old classic ASP code to kill another database running on the same example:

provider = SQLOLEDB; Data source = milapop \ mssmlbz; Continue the security information = true; User id = test user; Password = latin; Initial Catalog = TestDB

Net code throws a wobbler because it is written using SQL Server drivers, which does not like content provider.

Here is the original connection string from your code:

server = (local); Initial catalog = database; User ID = TheUser; Password = thePassword;

I'm trying out many options from there, they all get "SQL server does not exist or access denied" (what a beautiful mixed error message!):

  • Data Source = Localhost; Integrated security = true; Initial Catalog = Database
  • Data Source = Localhost \ SQLEXPRESS; Integrated security = true; Initial Catalog = Database
  • Data Source = Milipto P \ SQLEXPRESS; Integrated security = true; Initial Catalog = Database
  • Server = Myoptap \ SQLEXPRESS; Initial catalog = database; User id = user; Password = the password;

I have made a login for SXL Express in MyLaptop / IUSR_MyLaptop, Mylipop / ASPNET, Mylaptop / IWAM MailAppet and have allowed them to read / write my DB and set their DB to DB To do.

What the heck is I doing wrong and how can I debug this problem?

UPDATE: Special thanks to all the indicators of Chris, finally went there, if you have such problem, please read all the comments. It has lots of links and suggestions on how to track them.

With that error message in your comment, you can move through items in

Should I have been guessing that the connection is on and running on tcpip?


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -