Connect()

Example 1:

var myDB = new Database("DSN=catalogue.dsn;")
var dbConn = myDB.Connect("JSmith", password)

Example 2:

For a user whose details are set in the Database tab of the Publication Properties, and with extra error checking:

if (myDB.Connect())
{
 other statements here
}

Close