Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I find out, if database (@DataBaseName) exists?
Message
 
 
À
05/03/2003 18:17:16
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00761718
Message ID:
00761893
Vues:
21
>>Hi everybody,
>>
>>Is there a way to check, if the database exists? I know, how to do it for tables, but what about databases?
>>
>>Thanks.
>
>You can use...
>
>
>if db_id(@DataBaseName) IS NOT NULL
>     PRINT @DataBaseName + ' exists!'
>
Search Results

--------------------------------------------------------------------------------
for "db_ID" using All words
--------------------------------------------------------------------------------

Search needs a word or phrase to search for. Please try again.
Search needs a category to search for. Please try again.
Please enter a unique search to refine your results. You entered "db_ID" for your previous search, and those results are reflected in the list below.

Sorry, no results were found for this search.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform