Database.DatabaseName

From Xojo Documentation
Jump to: navigation, search
Property (As String)
aDatabase.DatabaseName = newStringValue
or
StringValue = aDatabase.DatabaseName

The name of the database to open.

Notes

The DatabaseName is typically used with server databases (such as MySQL or PostgreSQL) to identify the specific database to use on the server.

Example

This examples connects to a PostgreSQL database called "BaseballLeague":

Dim db As New PostgreSQLDatabase
db.Host = "192.168.1.172"
db.Port = 5432
db.DatabaseName = "BaseballLeague"
db.UserName = "broberts"
db.Password = "streborb"
If db.Connect Then
// Use the database
Else
// DB Connection error
MsgBox(db.ErrorMessage)
End If

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About