[Question] Unable to open the user default database, user'sa' login failed

【Problem Description】

Unable to open the user default database. Login failed. Login failed for user'sa'. (Microsoft SQL Server, error: 4064)

 

【answer】

First log in with windows authentication, and then right click on'sa'-'Properties' in'Security'-'Login'-'Properties', set the default database to master, and click OK.

Guess you like

Origin blog.csdn.net/szlixiaolong/article/details/109241475