|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:36 AM
Points: 2,522,
Visits: 3,616
|
|
SQL Kiwi (1/18/2012)
The BOL entry for sys.all_objects says: "Shows the UNION of all schema-scoped user-defined objects and system objects."Server-scoped DDL triggers are not schema-scoped. Thanks, that makes sense.
Best Regards,
Chris Büttner
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 11:22 AM
Points: 2,035,
Visits: 929
|
|
Maybe I misread the question...probably, but I found this on TechNet and still got the answer wrong. Oh well, learned another one the hard way :)
Server-scoped DDL triggers are stored as objects in the master database. However, you can obtain information about server-scoped DDL triggers by querying the sys.server_triggers catalog view in any database context.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 8:55 AM
Points: 1,038,
Visits: 1,355
|
|
I got it right for the "wrong" reason: I reasoned that 2 had to be false, because nothing is stored in a view. A view is by definition a mechanism to access data stored elsewhere.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:24 AM
Points: 1,158,
Visits: 642
|
|
My only disappointment is that 49% have got this right! I was hoping for less.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, July 19, 2012 11:22 AM
Points: 347,
Visits: 121
|
|
sknox (1/18/2012)
I got it right for the "wrong" reason: I reasoned that 2 had to be false, because nothing is stored in a view. A view is by definition a mechanism to access data stored elsewhere. 
Well, Idexed views are stored in the db. Can't blame you for using this reasoning, though.
--------------- Mel.
It's no fun if it's not complicated. 
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:53 AM
Points: 1,176,
Visits: 778
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Monday, May 06, 2013 6:51 AM
Points: 989,
Visits: 1,790
|
|
BarbW (1/18/2012) Maybe I misread the question...probably, but I found this on TechNet and still got the answer wrong. Oh well, learned another one the hard way :)
Server-scoped DDL triggers are stored as objects in the master database. However, you can obtain information about server-scoped DDL triggers by querying the sys.server_triggers catalog view in any database context.
"Which of these statements is true?
Server-scoped DDL triggers are stored as objects in the [master] database. Server-scoped DDL triggers are stored in the 'sys.triggers' catalog view in the [master] database."
THe view you mention is sys.server_triggers, not sys.triggers.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 1:20 PM
Points: 2,573,
Visits: 1,531
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 10:44 AM
Points: 3,452,
Visits: 2,527
|
|
| Thanks for the question, Dan!
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 7:44 AM
Points: 1,555,
Visits: 1,925
|
|
sknox (1/18/2012)
I got it right for the "wrong" reason: I reasoned that 2 had to be false, because nothing is stored in a view. A view is by definition a mechanism to access data stored elsewhere. 
I used the same reasoning. I probably would have used "viewed" instead of "stored" but at least it's not a wording choice that makes it more likely for people to get it wrong.
Thanks for the question, I learned something even though I got it right.
|
|
|
|