Database
Specifies the name of the SQL Server database to connect to.
Data Type
string
Default Value
""
Remarks
This property defines the specific SQL Server database the server should connect to on the target server. SQL Server instances can host multiple databases, and specifying the correct one is required to access the intended data.
The database must exist on the SQL Server instance specified in the Server property. If this property is not set, the connection may fail or default to a system database such as master, depending on server settings and permissions.
This property is useful for targeting the appropriate database in multi-database environments.
Use myDatabaseName in your connection string to connect to a specific database.
Note: Make sure the user credentials supplied have the appropriate permissions to access the specified database.