Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I find out, if database (@DataBaseName) exists?
Message
De
06/03/2003 12:28:32
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00761718
Message ID:
00762278
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
I tend to think this method is faster than querying the schema, although that may be what's happening in the backgroud anyway.

It certainly makes the code more readable.

BOb


>>>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.
>>
>>I don't get it. What are you searching for. The docs for that function?
>>
>>DB_ID
>>Returns the database identification (ID) number.
>>
>>Syntax
>>DB_ID ( [ 'database_name' ] )
>
>Thanks. So, which method is better?
>
>The reason, I could not find this function, was simple - I didn't turn on my PCAnywhere, therefore have to work at home without SQL Server installed. I tried to search online, but the search returned 0 records.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform