Catalog.CurrentDatabase 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.
Returns the current database in this session. By default your session will be
connected to the "default" database (named "default") and to change database
either use SetCurrentDatabase("databaseName")
or
SparkSession.Sql("USE DATABASE databaseName")
.
public string CurrentDatabase ();
member this.CurrentDatabase : unit -> string
Public Function CurrentDatabase () As String
Returns
The database name as a string.