September 4, 2013 at 11:11 am
Show how to change this, in T-sql and ssms, for a login. Say a sysadmin to get them out of master.
September 4, 2013 at 12:09 pm
This isn't exactly worth an article. It is nothing more than a single command (t-sql) and a single screen shot to use the UI.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 4, 2013 at 12:20 pm
This seems simple enough to be a good starting point for me to contribute to the SSC community.
I can take this one, Steve, if you'd like.
Sean: I think even basic articles have value; we have so many people worldwide seeking the most basic of basic knowledge.
September 4, 2013 at 12:28 pm
markjholmes (9/4/2013)
This seems simple enough to be a good starting point for me to contribute to the SSC community.I can take this one, Steve, if you'd like.
Sean: I think even basic articles have value; we have so many people worldwide seeking the most basic of basic knowledge.
I absolutely agree that basic knowledge is important to share. The topic and the information is extremely valuable (especially when you need to know the answer right now because production is having issues). I was merely asking if this topic is large enough for even a spackle, let alone an article.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 4, 2013 at 1:33 pm
It absolutely is. How many people do you think don't know where to check this? Don't recognize the error? It's not long, but it is worth a few paragraphs, the code, and some images.
I would probably do it in 30 minutes tops, but wanted to offer it out there.
There are lots of people that don't understand what this means or how to fix it.
September 5, 2013 at 7:56 pm
In that case, I think Mark should write it and Sean, being a new member of the 10K club, should review it and help guide Mark to his first "Spackle" article.
What say yea Gentlemen? 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 6, 2013 at 7:36 am
Jeff Moden (9/5/2013)
In that case, I think Mark should write it and Sean, being a new member of the 10K club, should review it and help guide Mark to his first "Spackle" article.What say yea Gentlemen? 🙂
Sure I'm good with that. Good idea Jeff.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 6, 2013 at 9:12 am
Mark, meet Sean. Sean, meet mark. 🙂
Mark... you're on. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 6, 2013 at 11:25 am
It might be more valuable if you explained the implications of changing the default database, and especially the disadvantages of having a default database that is not master for an admin login.
Other wise, the article could be one line:
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
September 6, 2013 at 12:05 pm
Michael Valentine Jones (9/6/2013)
It might be more valuable if you explained the implications of changing the default database, and especially the disadvantages of having a default database that is not master for an admin login.Other wise, the article could be one line:
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
Thanks for validating that this really does deserve an article. That proc is deprecated in favor of ALTER LOGIN. 😀
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 6, 2013 at 1:08 pm
Sean Lange (9/6/2013)
Michael Valentine Jones (9/6/2013)
It might be more valuable if you explained the implications of changing the default database, and especially the disadvantages of having a default database that is not master for an admin login.Other wise, the article could be one line:
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
Thanks for validating that this really does deserve an article. That proc is deprecated in favor of ALTER LOGIN. 😀
You could just change the article to:
-- Works with any version
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
-- Works with SQL 2005 and later
ALTER LOGIN [MyDomain\MyLogin] with DEFAULT_DATABASE = [MyDatabase] ;
September 6, 2013 at 1:31 pm
Michael Valentine Jones (9/6/2013)
Sean Lange (9/6/2013)
Michael Valentine Jones (9/6/2013)
It might be more valuable if you explained the implications of changing the default database, and especially the disadvantages of having a default database that is not master for an admin login.Other wise, the article could be one line:
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
Thanks for validating that this really does deserve an article. That proc is deprecated in favor of ALTER LOGIN. 😀
You could just change the article to:
-- Works with any version
exec sp_defaultdb N'MyDomain\MyLogin', N'MyDatabase'
-- Works with SQL 2005 and later
ALTER LOGIN [MyDomain\MyLogin] with DEFAULT_DATABASE = [MyDatabase] ;
Which was exactly why I asked in my first post if it was enough of a subject. I think a few paragraphs explaining what happens to a login when the default db has been dropped etc could prove to be pretty useful. Just have to think a bit past the exact syntax and explain the why you would need it.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 6, 2013 at 2:34 pm
Yup, it looks like this is a topic of interest.
I'll get a decent quality yet small article written up tonight most likely.
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply