Open Source RDBMS - Seamless, Scalable, Stable and Free

English | 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
문서 정보
viewed 555 times
번역 en
작성자
posted 작년
kevinyang
공헌자
마지막 수정시간 작년
변경 내역 보기
Share this article