Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i select all dbname but filter system databases?
Message
 
 
À
23/08/2011 04:40:28
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01521570
Message ID:
01521573
Vues:
29
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform