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

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SAConnection class

SAConnection class Next Page

SAConnection members

Public constructors
Member nameDescription
SAConnection constructors Initializes a new instance of the SAConnection class.
Public properties
Member nameDescription
ConnectionString property Provides the database connection string.
ConnectionTimeout property Gets the number of seconds before a connection attempt times out with an error.
DataSource property Gets the name of the database server.
Database property Gets the name of the current database.
InitString property A command that is executed immediately after the connection is established.
ServerVersion property Gets a string that contains the version of the instance of SQL Anywhere to which the client is connected.
State property Indicates the state of the SAConnection object.
Public methods
Member nameDescription
BeginTransaction methods Starts a database transaction.
ChangeDatabase method Changes the current database for an open SAConnection.
ChangePassword method Changes the password for the user indicated in the connection string to the supplied new password.
ClearAllPools method Empties the connection pool.
ClearPool method Empties the connection pool associated with the specified connection.
Close method Closes a database connection.
CreateCommand method Initializes an SACommand object.
[external link] EnlistTransaction (inherited from DbConnection)
GetSchema methods Returns schema information for the data source of this [external link] DbConnection.
Open method Opens a database connection with the property settings specified by the SAConnection.ConnectionString.
Public events
Member nameDescription
InfoMessage event Occurs when the SQL Anywhere database server returns a warning or informational message.
StateChange event Occurs when the state of the SAConnection object changes.
See also