Catalog.DatabaseExists(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Check if the database with the specified name exists. This will check the list of hive databases in the current session to see if the database exists.
public bool DatabaseExists (string dbName);
member this.DatabaseExists : string -> bool
Public Function DatabaseExists (dbName As String) As Boolean
Parameters
- dbName
- String
Name of the database to check.
Returns
bool, true if the database exists and false if it does not exist.