Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i select all dbname but filter system databases?
Message
 
 
To
23/08/2011 04:40:28
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01521570
Message ID:
01521573
Views:
30
Until next version of SQL Server released, you can use following condition
SELECT *
      FROM sys.databases
      WHERE database_id > 4
>I want to select all dbname, but filter System Databases (master,model,msdb,tempdb).
>I see the Microsoft Sql Server Management Studio group master,model,msdb,tempdb to System Databases.
>But i don't know how to filter ? Thank you ~~~
>
>
>
>EXEC sp_databases
>
>select * from   sys.master_files 
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform