|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 5:40 PM
Points: 5,123,
Visits: 20,370
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Sunday, December 09, 2012 2:25 PM
Points: 1,555,
Visits: 291
|
|
| None of the listed views exist.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 9:45 AM
Points: 2,163,
Visits: 2,151
|
|
Jostein Saethern (8/4/2010) None of the listed views exist.
Are you using SQL Server 2008 or newer?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 9:45 AM
Points: 2,163,
Visits: 2,151
|
|
Nice question, thanks!
But for the record it is spelled deprecated not depreciated.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Sunday, December 09, 2012 2:25 PM
Points: 1,555,
Visits: 291
|
|
UMG Developer (8/4/2010)
Jostein Saethern (8/4/2010) None of the listed views exist.Are you using SQL Server 2008 or newer?
I'm using 2008 R2. The correct answer is listed as sys.dm_os_sys_performance_counters, but in the example query sys.dm_os_performance_counters is used. sys.dm_os_sys.info should be sys.dm_os_sys_info. Not sure what the other two are supposed to be.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 18,858,
Visits: 12,443
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:45 PM
Points: 5,297,
Visits: 7,240
|
|
Interesting question. Shame about the typos in the answer options, though - they almost made me miss the correct answer.
Hugo Kornelis, SQL Server MVP Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 4:19 AM
Points: 1,115,
Visits: 1,210
|
|
UMG Developer (8/4/2010) Nice question, thanks!
But for the record it is spelled deprecated not depreciated.
I think the typo in title is not such a great problem. Both words exist. I had worse troubles with spell checkers, I had to turn automatic corrections in Word off. Sometimes it created (unwanted) offensive combinations.
Thanks for the nice question.
See, understand, learn, try, use efficient © Dr.Plch
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 3:42 AM
Points: 356,
Visits: 759
|
|
Actually if you're on a case sensitive server it's:
SELECT * FROM sys.dm_os_performance_counters WHERE object_name LIKE ('%Deprecated%') I didn't know about this, I don't know alot about the DM features of SQL 2008. Something I need to learn about, thanks for the question and highlighting it to me.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 10:27 AM
Points: 1,384,
Visits: 4,881
|
|
Jostein Saethern (8/4/2010) The correct answer is listed as sys.dm_os_sys_performance_counters, but in the example query sys.dm_os_performance_counters is used.
Well spotted - I was wondering why the 'correct' view does not exist in my database. I went for the first option (assuming the final '.' was a typo) as it's the only one which exists.
A useful question as it's taught me something, but a shame a few more seconds weren't spent in proof-reading
|
|
|
|