I have a HTA tool developed using JavaScript. It connects to backend Oracle database and perform the operation.
DMLs are running fine but PLSQL doesn't run.
Can someone please help me to run a Oracle stored procedure using OLEDB in JavaScript.
For normal sqls , am using below command
`
try {
var connection = new ActiveXObject('ADODB.Connection');
//alert(RepoConnStr);
connection.open(RepoConnStr);
}
catch (e) {
alert(e);
return;
}
try {
SQL = "SELECT unique job_name as job_name FROM DATPRD.JMS_JOB_INVENTORY";
var rows = new ActiveXObject("ADODB.Recordset");
rows.open(SQL,connection);
while(rows.EOF == false)
{
Job_Name_List=Job_Name_List.concat(rows("job_name")).concat("\n");
rows.MoveNext();
}
//alert(DB_Details);
rows.close();
}
catch (e) {
alert(e);
alert("Unable to Fetch Job Name List");
window.location.reload(1);
}
`
But it doesn't work with stored Proc. Can someone plz help me with the syntax for stored Proc. I need to execute stored_Porc(param1,param2). Both parameters are input variable. Am ok with either Javascript or VBScript.
DMLs are running fine but PLSQL doesn't run.
Can someone please help me to run a Oracle stored procedure using OLEDB in JavaScript.
For normal sqls , am using below command
`
try {
var connection = new ActiveXObject('ADODB.Connection');
//alert(RepoConnStr);
connection.open(RepoConnStr);
}
catch (e) {
alert(e);
return;
}
try {
SQL = "SELECT unique job_name as job_name FROM DATPRD.JMS_JOB_INVENTORY";
var rows = new ActiveXObject("ADODB.Recordset");
rows.open(SQL,connection);
while(rows.EOF == false)
{
Job_Name_List=Job_Name_List.concat(rows("job_name")).concat("\n");
rows.MoveNext();
}
//alert(DB_Details);
rows.close();
}
catch (e) {
alert(e);
alert("Unable to Fetch Job Name List");
window.location.reload(1);
}
`
But it doesn't work with stored Proc. Can someone plz help me with the syntax for stored Proc. I need to execute stored_Porc(param1,param2). Both parameters are input variable. Am ok with either Javascript or VBScript.