TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft SQL Server

Notices

determine system database...

Microsoft SQL Server


Reply
 
Thread Tools Display Modes
Old 11-12-2007, 05:17 PM   #1
Mark B
Guest
 
Posts: n/a
determine system database...

what is the best way to determine if a database is actually a system
database through tsql?

The only tangible thing that I can see is dbid. however I would far rather a
database property to check in t-sql.

Thanks in advance,

M.


  Reply With Quote
Old 11-12-2007, 05:17 PM   #2
Pawel Potasinski
Guest
 
Posts: n/a
Re: determine system database...

Here is some idea.

Check how Microsoft guys are doing that. Build a simple application that
uses Microsoft.SqlServer.Management.Smo.Database.IsSyst emObject property
for each database. Run Profiler and see how SMO is checking if the database
is a system database or not.

--
Regards
Pawel Potasinski
[


Użytkownik "Mark B" <> napisał w wiadomości
news:.gbl...
> what is the best way to determine if a database is actually a system
> database through tsql?
>
> The only tangible thing that I can see is dbid. however I would far rather
> a database property to check in t-sql.
>
> Thanks in advance,
>
> M.
>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 04:12 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional