x

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.

more ▼

asked Feb 10, 2017 at 03:00 PM in Default

avatar image

vj5791
1 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

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

more ▼

answered Feb 10, 2017 at 06:02 PM

avatar image

sjimmo
1.6k 1 3 5

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1170
x305
x108
x13

asked: Feb 10, 2017 at 03:00 PM

Seen: 4605 times

Last Updated: Feb 10, 2017 at 06:02 PM

Copyright 2018 Redgate Software. Privacy Policy