Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register


0
(click on this box to dismiss)

How to use altHost with ADO.net driver?

CUBRID CCI driver can use altHosts option via cci_connect_with_url function.

JDBC and PHP drivers have similar function that can be used in HA environment.

But I can't find a method in ADO.NET driver that allows to use altHosts.

Is there a method that can connect with altHost?

Thanks.

link comment (0)
asked 11 months ago
sorage
1
17 Answers
0

Here is an example to set altHosts:

string connString ="ado:CUBRID:10.34.64.218:33000:demodb:dba::?althosts=192.168.59.161:3300";
CUBRIDConnection conn = new CUBRIDConnection();
conn.ConnectionString = connString;
conn.Open();

As shown above ADO.NET driver can connect to a CUBRID Broker using a connection string. The format of a connection string is same as in cci_connect_with_url.

link comment (1)
answered 11 months ago
cd_interface
1




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: