|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, March 04, 2013 4:10 AM
Points: 532,
Visits: 281
|
|
come on, Derek. ;) Why would you try running a query about system objects in a database other than master?
Kelsey Thornton MBCS CITP
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, February 15, 2013 2:53 PM
Points: 1,199,
Visits: 568
|
|
| Are we looking too much into the questions and answers provided? Or do we think that the questions should be accurately deterministic? I believe a healthy debate/discussion is always good :)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 2:04 AM
Points: 1,342,
Visits: 1,946
|
|
Kelsey Thornton (4/18/2008) come on, Derek. ;) Why would you try running a query about system objects in a database other than master?Habit. :)
Novices start by firing up SSMS and running every query in 'master'. After they've cluttered up the master database on their development server, they realise that perhaps they should create another database (or maybe even two or three) for applications and testing.;)
I'm almost at the other extreme where my habitual action is click [New Query], type <U><s><e><space><s><c><r><a><t><c><h><enter><s><e><l><e><c><t>...
Derek
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 2:04 AM
Points: 1,342,
Visits: 1,946
|
|
Rajan John (4/18/2008) Are we looking too much into the questions and answers provided? Or do we think that the questions should be accurately deterministic? I believe a healthy debate/discussion is always good :)I've always felt that I learn more from some of the 'ambiguous' QOTDs than the simple 'how do you do X' type.:)
Derek
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Yesterday @ 12:27 PM
Points: 1,442,
Visits: 2,497
|
|
Derek Dongray (4/18/2008)
Kelsey Thornton (4/18/2008) come on, Derek. ;) Why would you try running a query about system objects in a database other than master?Habit. :) Novices start by firing up SSMS and running every query in 'master'. After they've cluttered up the master database on their development server, they realise that perhaps they should create another database (or maybe even two or three) for applications and testing.;)
I agree with Kelsey, if you're querying system objects you would use master. If you're querying backup & restore history you would use msdb.
Think of Sutton's Law: The law is named after the bank robber Willie Sutton, who supposedly answered a reporter inquiring why he robbed banks by saying "because that's where the money is."
OTOH if you are actually creating new objects for testing, a separate test db makes perfect sense.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, March 04, 2013 4:10 AM
Points: 532,
Visits: 281
|
|
I trust you all realise I was talking tongue-in-cheek there!;)
Kelsey Thornton MBCS CITP
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 2:15 AM
Points: 156,
Visits: 271
|
|
I think answer should be xp_ServiceControl 'QueryState', 'SQLServerAgent' this because if no job will run then sysprocesses will not have any process related to that service. So, i think answer as SQl Server Central Guys has selected is wrong. As per my suggestion they should correct the answer.
Thanks & Regards Rajni Kant Ranjan
|
|
|
|