Hello,
i have an instance of SQL server 2008 and an instance of SQL server 2008 Express.
i have been mainly using the SQL server 2008 instance with the following connection string...
<add name="Local-DB-connection" connectionString="Data Source=JONATHAN-PC; Database=dbname; User ID=uname; Password=pword;" providerName="System.Data.SqlClient" />
this works fine.
now on the instance of express, i have a user with the same name and a identical database, but no matter what i always get this error
Cannot open database "dbName" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
now i have added - Trusted_Connection=True
on the express connection string, hence the NT AUTHORITY\NETWORK SERVICE
i have found a forum post which i have used when fixing a similar issues on my live server
it basically talks about adding the NT AUTHORITY\NETWORK SERVICE’ user, but this user is not in the list to add.
im going nuts here, and im suspecting its to do with my two SQL server instances conflicting
can anyone shed some light on this ??
thanks
truegilly