This constructor allows to create and establish a new connection to the server.
User can specify a connection string with the server name, database name, etc.
- connectionString (String)
- The connection string contains all required parameters to establish a connection to the server.
The connection string has the following form:
server=ServerName;database=DatabaseName;user=UserName;password=UserPassword;options=SomeOptions
where ServerName, DatabaseName, UserName, UserPassword represent a network name of the server with the Eloquera server,
the database name on that server, the user name and the password to authenticate on the server, respectively.
The
CopyC# parameter is not compulsory and is currently ignored.
CopyC#
options
DB db = new DB("server=(local);password=pwd;options=none;"); //local server DB db = new DB("server=localhost;user=sys;password=pwd;options=none;"); //remote server