how to set default database name in sql server
snippet in sql

how to set default database name in sql server

user4365

Exec sp_defaultdb @loginame='login', @defdb='master'