1.1.1

Table Of Contents
SQLFire-Specic Extensions on page 686
Example: Connect to a single server with defaults and disable-streaming property on page 687
Example: Connect to a locator with defaults and load-balance property on page 688
Example: Connect to a cluster that has BUILTIN authentication enabled on page 688
Constructors
DescriptionMethod
Returns a new default connection object with no associated
connection string. A connection string must be specied for this
connection object to be useful before invocation of Open method.
SQLFClientConnection()
Returns a new connection object with the specied connection string.
The connection string must follow the same rules as described for
the SQLFConnectionString property.
SQLFClientConnection(string connectionString)
SQLFire-Specific Extensions
The sections that follow describe SQLFire specic extensions. The MSDN documentation of IDbConnection
and DbConnection describe the other API methods.
ConnectionString on page 686
AutoCommit on page 686
BeginSQLFTransaction on page 686
Commit on page 686
IsolationLevel on page 687
Open(Dictionary<string, object>) on page 687
Rollback on page 687
ConnectionString
The ConnectionString is required to be of the form: Server=<host>:<port>[;<key>=<value>]. The semi-colon
separated key, value pairs are optional and can be one of those as described below in section
Open(Dictionary<string, object>). This can be provided in the constructor of SQLFClientConnection or set in
the ConnectionString property.
AutoCommit
This property can be used to get or set auto-commit property for all subsequent transactional operations executed
on this connection. If set to true then it causes an implicit commit to be invoked at the end of every statement
execution in a transaction.
BeginSQLFTransaction
Overloaded methods to start a new SQLFire transaction without creating a SQLFTransaction object. The
transaction can be controlled using the Commit or Rollback methods directly on the connection. The zero
argument method will start a new transaction with isolation-level System.Data.IsolationLevel.Unspecied that
maps to System.Data.IsolationLevel.ReadCommitted.
Commit
Commit the active transaction in progress on this connection. There is no support for nested transactions in
SQLFire so at most one transaction can be in progress at a given time on a connection.
vFabric SQLFire User's Guide686
vFabric SQLFire Reference