Share via


Catalog.DatabaseExists(String) Method

Definition

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.

Applies to