question

vj5791 avatar image
vj5791 asked

sql login is created default database is Master

Whenever a sql login is created default DB is Master , I was able to change the default db to tempdb. Please explain what is the use of default DB & what will be the effect if we change the default db.
sqldatabaselogindefault
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sjimmo avatar image
sjimmo answered
this is the database that the login is associated with as it's default. When the login connects to SQL Server, it goes first to this database. Some reading material to help you out: https://msdn.microsoft.com/en-us/library/ms173768.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.