Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Stored Procedure

$
0
0
I have a store procedure name "TestOver3" and i want to check if it return any values. I used the following code in the Before record added.

string strSQLExists2 = "EXEC TestOver3 '" + values["Class"].ToString() + "', '" + values["Divide"].ToString() + "', '"+DateWeek+"'";
XVar rsExists2 = CommonFunctions.db_query(strSQLExists2, null);
XVar data2 = CommonFunctions.db_fetch(rsExists2);
if(data2)
{
message = "ΥΠΑΡΧΟΥΝ 3 ΔΙΑΓΩΝΙΣΜΑΤΑ ΑΥΤΗ ΤΗΝ ΕΒΔΟΜΑΔΑ";
return false;
}
else


Thx for your help.

Viewing all articles
Browse latest Browse all 2586

Trending Articles