Hi Jeremy
As you suggested i set CommandTimeout property to Zero. Still Timeout Error exists. I am encoutering the error at DBActivateMap statement. I am attaching the part of the code at end of the message.
Awaiting for reply and help...
Regards
Rakesh
//Here is the code for your reference...
hdbc = DBNewConnection();
resCode = DBSetConnectionAttribute (hdbc,ATTR_DB_CONN_CONNECTION_STRING, "DSN=SingleTable;UserID=sa;Password=");
resCode = DBSetConnectionAttribute (hdbc,ATTR_DB_CONN_CONNECTION_TIMEOUT, DB_TIMEOUT);
resCode = DBSetConnectionAttribute (hdbc,ATTR_DB_CONN_ISOLATION_LEVEL, DB_ISOLATION_LEVEL_SERIALIZABLE);
resCode = DBOpenConnection (hdbc);
if (resCode != DB_SUCCESS) {ShowError(); goto Error;}
// begin map for construct
ed SQL statement
hmap = DBBeginMap (hdbc);
if (hmap <= 0) {ShowError(); goto Error;}
// specify the columns to be selected and the variables where column
// values will be placed.
resCode = DBMapColumnToInt (hmap, "Ch_NO",&Ch_Num,&Ch_NumStat);
if (resCode != DB_SUCCESS) {ShowError(); goto Error;}
resCode = DBMapColumnToFloat (hmap, "Value", &Val, &ValStat);
if (resCode != DB_SUCCESS) {ShowError(); goto Error;}
resCode = DBMapColumnToDouble (hmap, "ID",&nID, &nIDStat);
if (resCode != DB_SUCCESS) {ShowError(); goto Error;}
//Point of error**********************
hstmt = DBActivateMap (hmap, "Ch_Details");
if (hstmt <= 0) {ShowError(); goto Error;}
//DBActivateMap is giving the Timeout Error
.
.
.
. resCode = DBPutRecord (hstmt_ID);
if (resCode != DB_SUCCESS) {ShowError(); goto Error;}
.
.
.
.