Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am running Windows Vista 64bit - VS2005 - SQL2005

In my app my connection string is

 

Driver=SQL Server;Server=ComputerName\SQLExpress;Database=Mydb

 

everything works great when I run it in Visual Studio, yet if I run it from IE as localhost My connection string gave all kinds of errors. I looked around and found alot of info and came down to this:

 

"Provider=SQLOLEDB;User ID=ComputerName\Username;Password=SQLPassword;Initial Catalog=Mydb;Data Source=ComputerName\SQLExpress;"

 

Now I am getting login failure. Invalid credentials. I am not using any password for this db or SQL at all for that matter. I have set the login type to SQL Server and Windows Authentication. What the heck, IIS 7 is frustrating. What am I missing. Thanks in advance.

Ignorance begins with I.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...