cannot at all find sql instance (while installing an asp.net app on IIS)

Posted by giddy on Server Fault See other posts from Server Fault or by giddy
Published on 2011-01-16T07:31:07Z Indexed on 2011/01/16 7:55 UTC
Read the original article Hit count: 258

So I'm really not a DBA, I'm an app dev.

I had to install my asp.net mvc3 app on my client's(a large company) IIS6 + Win2k3 machine, with absolutely no help from their sysadmins.

The final problem now is SQL Server 2008 r2, after figuring out how to create a login from windows, my app and sqlcmd.exe always complains it cannot find a sql server instance!!

I have all the sql services (in services.msc) running to Log On as the local system. I can login fine with SQL Server Management Studio with Windows Auth. I created my database, my asp.net app needs/uses windows auth.

But for the love of God, whatever I do my app always complains it cannot find the instance. (Also tried running SQL CMD and it complains of the same thing too!)

My data base connection string looks like this:

Data Source=machinename\username;Initial Catalog=myDataStore;Integrated Security=True;MultipleActiveResultSets=True

Machinename\user is the same thing that shows up on the sql server management studio login if I choose windows authentication right?

© Server Fault or respective owner

Related posts about sql-server

Related posts about iis6