Results 1 to 5 of 5

Thread: Identifying System/User Databases

  1. #1
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    3

    Identifying System/User Databases

    Hi,

    i´m looking for TSQL-Code (7.0/2000) to identify, if a SQL Server Database ist a SystemDatabase or a UserDatabase. In the sysdatabases there is no information abount that.

    Skol,
    Peter

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    User database's dbid is > 6.

  3. #3
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    3
    But the pubs db ist dbid5 an the northwind db is db17?
    Are this example databases system or user databases?

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    They are sql installation created user db. System db id should be 1 to 4.

  5. #5
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    3
    o.k. - thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •