i use the following connrction string for my .net web service
string sConnstring = string.Empty;
OdbcConnection conn = null;
DataSet dsPRDB = null;
try
{
sConnstring = "DRIVER={MERANT 3.60 32-BIT Progress SQL92 v9.1C};UID=test;Pwd=;DB=testdb;PORT=40005;HOST=182.163.12.9";
conn = new OdbcConnection(sConnstring);
dsPRDB = new DataSet();
OdbcCommand cmd = new OdbcCommand();
conn.Open();
cmd.Connection = conn;
cmd.CommandText = "select xxserdb_dbid as DatabaseName from pub.xxserdb_ctrl where xxserdb_type='Prod'";
OdbcDataAdapter dr = new OdbcDataAdapter(cmd);
dr.Fill(dsPRDB);
}
catch (Exception ex)
{
ErrorLog("C:\\WS_ErrorLog\\ErrorLog", ex.Message, "GetProductionDatebase");
}
finally
{
conn.Close();
conn.Dispose();
}
but i get an error
ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.
ERROR [HY000] [MERANT][ODBC PROGRESS driver][PROGRESS]Exceeding permissible number of connections
ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.
ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.
ERROR [HY000] [MERANT][ODBC PROGRESS driver][PROGRESS]Exceeding permissible number of connections
ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.
i feel it happens because the number of connection exceeded, can i stop this by use coneection pooling if possible how can it be done
string sConnstring = string.Empty;
OdbcConnection conn = null;
DataSet dsPRDB = null;
try
{
sConnstring = "DRIVER={MERANT 3.60 32-BIT Progress SQL92 v9.1C};UID=test;Pwd=;DB=testdb;PORT=40005;HOST=182.163.12.9";
conn = new OdbcConnection(sConnstring);
dsPRDB = new DataSet();
OdbcCommand cmd = new OdbcCommand();
conn.Open();
cmd.Connection = conn;
cmd.CommandText = "select xxserdb_dbid as DatabaseName from pub.xxserdb_ctrl where xxserdb_type='Prod'";
OdbcDataAdapter dr = new OdbcDataAdapter(cmd);
dr.Fill(dsPRDB);
}
catch (Exception ex)
{
ErrorLog("C:\\WS_ErrorLog\\ErrorLog", ex.Message, "GetProductionDatebase");
}
finally
{
conn.Close();
conn.Dispose();
}
but i get an error
ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.
ERROR [HY000] [MERANT][ODBC PROGRESS driver][PROGRESS]Exceeding permissible number of connections
ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.
ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.
ERROR [HY000] [MERANT][ODBC PROGRESS driver][PROGRESS]Exceeding permissible number of connections
ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.
i feel it happens because the number of connection exceeded, can i stop this by use coneection pooling if possible how can it be done