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

后端 未结 11 1789
遥遥无期
遥遥无期 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条回答
  •  Happy的楠姐
    2020-11-30 18:26

    If you use windows authentication, and you don't know a password to login as a user via username and password, you can do this: on the login-screen on SSMS click options at the bottom right, then go to the connection properties tab. Then you can type in manually the name of another database you have access to, over where it says , which will let you connect. Then follow the other advice for changing your default database

    https://gyazo.com/c3d04c600311c08cb685bb668b569a67

提交回复
热议问题