Description
Specifies the name of the database you want to connect to.
When to specify Database
You must specify the Database parameter before connecting to the database.
Applies to
ADO.NET
SNC SQL Native Client for Microsoft SQL Server
MSOLEDBSQL Microsoft OLE DB Driver for SQL Server
Syntax
DataBase='database_name'
Default value
None
Examples
To connect to the database "mydb":
-
Database profile
Enter mydb in the Database box on the Connection page in the Database Profile Setup dialog box.
-
Application
Type the following in code:
SQLCA.DBParm="Database='mydb'"