Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLite - .NET Programming » UltraLite .NET 2.0 API reference » ULConnectionStringBuilder class

 

DatabaseName property

Specifies a name for the database or the name of a loaded database to which a connection needs to be made.

Syntax
Visual Basic
Public Property DatabaseName As String
C#
public string  DatabaseName { get; set; }
Property value

A string specifying the name of the database. The default is a null reference (Nothing in Visual Basic).

Remarks

When a database is started, it is assigned a database name, either explicitly with the dbn parameter, or by UltraLite using the base of the file name with the extension and path removed.

When opening connections, UltraLite first searches for a running database with a matching dbn. If one is not found, UltraLite starts a new database using the appropriate database file name parameter (DatabaseOnCE or DatabaseOnDesktop).

This parameter is required if the application (or UltraLite engine) needs to access two different databases that have the same base file name.

See also