How can I change my default database in SQL Server without using MS SQL Server Management Studio?

后端 未结 11 1798
遥遥无期
遥遥无期 2020-11-30 17:48

I dropped a database from SQL Server, however it turns out that my login was set to use the dropped database as its default. I can connect to SQL Server Man

11条回答
  •  鱼传尺愫
    2020-11-30 18:30

    I'll also prefer ALTER LOGIN Command as in accepted answer and described here

    But for GUI lover

    1. Go to [SERVER INSTANCE] --> Security --> Logins --> [YOUR LOGIN]
    2. Right Click on [YOUR LOGIN]
    3. Update the Default Database Option at the bottom of the page

    Tired of reading!!! just look at following

提交回复
热议问题