We have a “windows integrated authentication” user whose default database was deleted.
Now when trying to login, we get an error saying, login for the user failed.
I found a solution from Microsoft to use SQLCMD. However, I am unable to issue the alter login command for that user. The error message states that the login ‘mylogin’ does not exist or you do not have permissions.
Unfortunately, I don’t have sa credentials on that server.
Is there another way to change the default database on login?
We have a windows integrated authentication user whose default database was deleted. Now when
Share
You really need to issue the
ALTER USERcommand from an account with sufficient privileges, or specify theInitial Catalogin the connection string when connecting, from whatever client app is being used.