E
Earl
SQL2005. New installation as a named instance on a local machine.
Attached a database previously designed in SQL2000. My app calls for this
database using integrated security. With SQL2000, no problems connecting and
executing code against the db, including stored procedures.
But with 2005, right out of the gate, when I try to get connected from the
app I get error 4060: "Cannot open database requested in login [myDb]. Login
fails. Login failed for user '[local user with system admin permissions].
Well, I try to set the owner of the database to that user. I see in the user
mappings that my user is mapped to the database I am trying to connect to.
For whatever reason, a user mapped to a database cannot own that database.
Who woulda thunk? So I clear that mapping and set the user to be the owner
of the database.
Still cannot connect from the app. Still getting error 4060. Connection
string is of the form:
data source=SQLServerName;initial catalog=DatabaseName;integrated
security=SSPI;
When I am in the dbo Database User page, I see Owned Schemaas and Database
roles. I know what a role is but what the heck is an Owned schema?
I've run through Bill Vaugn's checklist, but no joy there. I've looked at
Sahil Malik's page and found nothing to solve this either.
Finally, I like the functioning of SQL2005, but as to configuration, why do
I feel like I'm looking at a Rube Goldberg contraption?
Attached a database previously designed in SQL2000. My app calls for this
database using integrated security. With SQL2000, no problems connecting and
executing code against the db, including stored procedures.
But with 2005, right out of the gate, when I try to get connected from the
app I get error 4060: "Cannot open database requested in login [myDb]. Login
fails. Login failed for user '[local user with system admin permissions].
Well, I try to set the owner of the database to that user. I see in the user
mappings that my user is mapped to the database I am trying to connect to.
For whatever reason, a user mapped to a database cannot own that database.
Who woulda thunk? So I clear that mapping and set the user to be the owner
of the database.
Still cannot connect from the app. Still getting error 4060. Connection
string is of the form:
data source=SQLServerName;initial catalog=DatabaseName;integrated
security=SSPI;
When I am in the dbo Database User page, I see Owned Schemaas and Database
roles. I know what a role is but what the heck is an Owned schema?
I've run through Bill Vaugn's checklist, but no joy there. I've looked at
Sahil Malik's page and found nothing to solve this either.
Finally, I like the functioning of SQL2005, but as to configuration, why do
I feel like I'm looking at a Rube Goldberg contraption?