For hosted customers please raise a new case online and reference the title of this article. Please provide the name or URL of the Mosaic instance(s) and users login this relates too.
β
This issue occurs if the default database assigned to the SQL Login is offline or no longer exists.
How to manually fix a single login
Open SQL Server Management Studio.
Connect to the Database server.
In Object Explorer in the left hand pane expand Security then Logins.
Right click the login that has the issue.
Select Properties.
Select the drop down list next to Default Database in the General page and change to master.
Click OK.
How to identify and fix logins en masse
Check the login which has the issue using steps 1 - 5 above to confirm that the default database is offline or no longer exists.
Run the following SQL replacing database_from_step_1 with the name of the default database from step 1.
select 'alter login '+name+' with default_database=master' FROM sys.server_principals WHERE default_database_name='database_from_step_1' order by name
Copy and paste the results from step 2 into a new Query and Execute the query, see example results below.
alter login userlogin1 with default_database=master
alter login userlogin2 with default_database=master
alter login userlogin3 with default_database=master
