Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Connect to CUBRID Database


You can use the CUBRIDConnection class to connect to CUBRID database. Before connecting to the database, you need to specify the connection string. You can specify the connection string in the constructor, you can also be assigned to the member variable(ConnectionString).

C# Example

string _connString = "server=127.0.0.1;database=demodb;port=33000;user=public;password=";

/* constructor */
CUBRIDConnection conn = new CUBRIDConnection(_connString);

/* member variable*/
CUBRIDConnection conn = new CUBRIDConnection();
conn.ConnectionString = _connString;

Now, you must be called member function:Open() to connect to CUBRID database.

string _connString = "server=127.0.0.1;database=demodb;port=33000;user=public;password=";

/* constructor */
CUBRIDConnection conn = new CUBRIDConnection(_connString);
conn.Open();


 

comments powered by Disqus
Page info
viewed 713 times
translations en
Author
posted last year by
kevinyang
Contributors
updated last year by
View revisions
Share this article