From an ASP, I want to check if the stored procedure executed successfully or not.(the sp executes a
dts package and inserts data into different tables)
This is a part of the asp...it pops up the success msg box even when the dts package fails.Do I have
to make the sp return a value or something?????????to capture that in the asp??????????????
Am i missing something here ??Help please...
function ExecSP()
{
If ("<%=sFileExists%>"=="NO"
{
alert("The file does not exist at the specified location"
}
else
{ // Build Stored Procedure Execute Statement
var rsMyData = rdsGetRDCRecordSet(rdcData);
var sSQL = "EXECUTE sp_Import'";
sSQL += txtUserID.value + "','";
sSQL += Password.value + "','";
if (rdsSetRecordSource(rdcWrite, sSQL,0,1))
{
var rsWork = rdsGetRDCRecordSet(rdcWrite);
if (!rsWork)
{
appMsgBox("<%=interpretPageToken("MsgPass"%>"
document.body.style.cursor = "";
}
else
{
appMsgBox("<%=interpretPageToken("MsgFailure"%>"
document.body.style.cursor = "";
}
}
}
}
dts package and inserts data into different tables)
This is a part of the asp...it pops up the success msg box even when the dts package fails.Do I have
to make the sp return a value or something?????????to capture that in the asp??????????????
Am i missing something here ??Help please...
function ExecSP()
{
If ("<%=sFileExists%>"=="NO"
{
alert("The file does not exist at the specified location"
}
else
{ // Build Stored Procedure Execute Statement
var rsMyData = rdsGetRDCRecordSet(rdcData);
var sSQL = "EXECUTE sp_Import'";
sSQL += txtUserID.value + "','";
sSQL += Password.value + "','";
if (rdsSetRecordSource(rdcWrite, sSQL,0,1))
{
var rsWork = rdsGetRDCRecordSet(rdcWrite);
if (!rsWork)
{
appMsgBox("<%=interpretPageToken("MsgPass"%>"
document.body.style.cursor = "";
}
else
{
appMsgBox("<%=interpretPageToken("MsgFailure"%>"
document.body.style.cursor = "";
}
}
}
}