METHOD:

 

 

 

 

 

 

 

DESCRIPTION:

 

 

Creates a new catalog for a new database.

 

 

 

 

PROPERTY OF:

 

 

ADODatabase

 

 

 

 

SYNTAX:

 

 

<oRef>.createCatalog([<string expC>])

 

<oRef>

The database in which you want to create catalog.

 

[<string expC>]

Optional, the connection string for not existing yet database.

 

 

 

DESCRIPTION:

 

 

The createCatalog() method creates and opens a new connection to the data source specified in connectionString property or optional in the parameter of string.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXAMPLE:

 

 

The following code shows how to create a new Microsoft Jet database :

 

 

 

 

db = new ADODatabase()

 

 

db.connectionString = "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='new.mdb'"

 

db.createCatalog()