Hi there,
You should add a ; right before the Initial catalog, because currently you have an invalid Connection String.
You may also need to close your connection, and then reopen it using the Database database as the Initial Catalog, as sp_grantdbaccess adds the user to the current database. Not sure about that, though.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|