Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enumerating Databases Not Working
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01420205
Message ID:
01420212
Vues:
62
This message has been marked as the solution to the initial question of the thread.
>why would this not give me a list of all db's on a MS SQL Server 2008 server?
>
>select CATALOG_NAME from INFORMATION_SCHEMA.SCHEMATA where SCHEMA_NAME='dbo'

In SQL 2000 the INFORMATION_SCHEMA.SCHEMATA wasn't complaint with SQL Standard. It has been fixed starting with SQL 2005.
In SQL 2005 and later you can use
SELECT name FROM sys.databases
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform