UCCX 8.5 - Accessing stored procedure result
Hi,
I am trying to access a stored procedure through UCCX script.
I can access a stored procedure by following SQL query through DBRead step and it is successfully getting executed.
DECLARE @return_value int,
@Result int;
EXEC @return_value = [dbo].[SP_ValidateUser]
@ContactPersonId =$input1 ,
@ContactPersonTypeid = $input2 ,
@Result = @Result OUTPUT;
SELECT @Result as '@Result'
I have to get the output of stored procedure in UCCX script variable. Is there any way to get it through DBGet Step.
Any help regarding this is greatly appreciated.
Thanks,
Indumathi.P
Hi Indumathi,
Have you got a response to this? I am also looking for a solution to get the output of Stored procedure in my UCCX local script variable. Can you kindly provide me with the script solution?
Thank you
Regards
Jeesh
Similar Messages
-
I have stored procedure result, i have succeeded bind it to xtrareport. But how can I group item by department (MaNganh) and category (MaNhom) in XTRA REPORT ? Please help me how to solve it ! (SQL SERVER 2008 R2) (DevExpress 10.2.8)
I've made it, and successful.By add GroupField:
GroupField groupField = new GroupField("MaNhom");
GroupHeader1.GroupFields.Add(groupField);
tblCell_Group_MaNhom.DataBindings.Add("Text", DataSource, "MaNhom");
Thank you for HELP!
Master Can -
Sqlexception ,when trying to access stored procedure
hi
i have a strange problem, iam using jsp code for accessing stored procedure in sql
server database, below is my java code which calls stored procedure,
<%
CallableStatement cstmt=null;
String sql= "{?= call ascs_submit_prem_adj(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}";
cstmt=con.prepareCall(sql);
cstmt.registerOutParameter(1,java.sql.Types.INTEGER);
cstmt.registerOutParameter(2,java.sql.Types.INTEGER);
cstmt.setObject(3,adjustId);
cstmt.setString(4,co_id);
cstmt.setString(5,policyNo);
cstmt.setString(6,subPolicy);
cstmt.setString(7,busDiv);
cstmt.setString(8,commAcct);
cstmt.setString(9,agentId);
cstmt.setString(10,premAmount);
cstmt.setString(11,dueDate);
cstmt.setString(12,lobCd);
cstmt.setString(13,commAmount);
cstmt.setString(14,commReason);
cstmt.setString(15,recovFlag);
cstmt.setString(16,recovPercent);
cstmt.setString(17,combId);
cstmt.setString(18,payFlag);
cstmt.setString(19,combAcct);
cstmt.setString(20,combSub);
cstmt.setString(21,paidFlag);
cstmt.setString(22,changeBy);
cstmt.setString(23,transDt);
cstmt.execute();
ERROR LINE--> adjustId=cstmt.getObject(2).toString();
spReturnCode=cstmt.getInt(1);
%>
i hv two output parameters,,when i try to get the second output parameter (ie ERROR
LINE)
IAM GETTING a strange error, i don't know what it is? this is the error i got
Tue Feb 13 10:06:26 EST 2001:<E> <ServletContext-General> exception raised on '/
PremAdjSubmit.jsp'
java.sql.SQLException: Invalid column number (2). This table has 1 columns (a va
lid index is 1 trough 1).
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.getEntry(TdsResultSet.jav
a, Compiled Code)
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.getObject(TdsResultSet.ja
va, Compiled Code)
at weblogic.jdbcbase.mssqlserver4.TdsStatement.getObject(TdsStatement.ja
va:2338)
at jsp_servlet._premadjsubmit._jspService(_premadjsubmit.java, Compiled
Code)
at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Com
piled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
detailed error-----------
Error Found
Oops! an exception occurred.
The name of the exception is
java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid
index is 1 trough 1).
can any one help me out...
thanks
san
hi
i have a strange problem, iam using jsp code for accessing stored procedure in sql
server database, below is my java code which calls stored procedure,
<%
CallableStatement cstmt=null;
String sql= "{?= call ascs_submit_prem_adj(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}";
cstmt=con.prepareCall(sql);
cstmt.registerOutParameter(1,java.sql.Types.INTEGER);
cstmt.registerOutParameter(2,java.sql.Types.INTEGER);
cstmt.setObject(3,adjustId);
cstmt.setString(4,co_id);
cstmt.setString(5,policyNo);
cstmt.setString(6,subPolicy);
cstmt.setString(7,busDiv);
cstmt.setString(8,commAcct);
cstmt.setString(9,agentId);
cstmt.setString(10,premAmount);
cstmt.setString(11,dueDate);
cstmt.setString(12,lobCd);
cstmt.setString(13,commAmount);
cstmt.setString(14,commReason);
cstmt.setString(15,recovFlag);
cstmt.setString(16,recovPercent);
cstmt.setString(17,combId);
cstmt.setString(18,payFlag);
cstmt.setString(19,combAcct);
cstmt.setString(20,combSub);
cstmt.setString(21,paidFlag);
cstmt.setString(22,changeBy);
cstmt.setString(23,transDt);
cstmt.execute();
ERROR LINE--> adjustId=cstmt.getObject(2).toString();
spReturnCode=cstmt.getInt(1);
%>
i hv two output parameters,,when i try to get the second output parameter (ie ERROR
LINE)
IAM GETTING a strange error, i don't know what it is? this is the error i got
Tue Feb 13 10:06:26 EST 2001:<E> <ServletContext-General> exception raised on '/
PremAdjSubmit.jsp'
java.sql.SQLException: Invalid column number (2). This table has 1 columns (a va
lid index is 1 trough 1).
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.getEntry(TdsResultSet.jav
a, Compiled Code)
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.getObject(TdsResultSet.ja
va, Compiled Code)
at weblogic.jdbcbase.mssqlserver4.TdsStatement.getObject(TdsStatement.ja
va:2338)
at jsp_servlet._premadjsubmit._jspService(_premadjsubmit.java, Compiled
Code)
at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Com
piled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
detailed error-----------
Error Found
Oops! an exception occurred.
The name of the exception is
java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid
index is 1 trough 1).
can any one help me out...
thanks
san
-
UCCX 8 Custom report - stored procedure
I'm porting over a custom UCCX 5 historical report to UCCX 8. I'm trying to port the stored procedure to informix but some of the helper routines such as getRoutingSkills(), getRestrictedDate() and parse2() are all restricted and I don't have permission to grant access to the report user.
A call to one of these functions generate the error message "SQL Error (getrestricteddate) cannot be resolved."
I'm logging in to the informix database with the uccxhruser account and I don't know of any other account with elevated privilege that I can use for development.
My question is there any documentation on security requirements for creating stored procedures for UCCX 8? What do i need to do to gain access to the functions listed above? Do i need to re-create these helper routines myself?
Please advise.
Thanks
ChrisI've noticed there's a database user named "uccxuser" with privilege set to "DBA". I believe this is the account i should be using to create my stored procedures but I don't know the password to it. Does anyone know how custom stored procedures should be created on uccx 8's database and which account we should be use?
Thanks
Chris -
JDBC - CallableStatement - Error in Accessing Stored Procedure of MS SQL
Dear Friends,
The following is the code to access a stored procedure of MS SQL Server 7.0 sp4,
try
CallableStatement cstmt;
ResultSet rst;
cstmt = connection.prepareCall("{call backupdb[?,?]}");
cstmt.setString("db_name","SBIREMITLIVE");
cstmt.setString("path", "c:\testing.bak");
cstmt.executeQuery();
System.out.println("Stored Procedure called successfully");
catch(SQLException se)
System.out.println(se.toString());
when i execute this i am getting the error as " MS ODBC-MS SQL Server Syntax error or Access Violation "
What's the problem exactly ? anybody came across this issue..if so...kindly help me....
Here is my MS SQL Server stored procedure.....for reference
create procedure backupdb(@db_name varchar(40), @path varchar(100)) as
Backup database @db_name to disk = @path
Regards,
V.PrasannaDear DigitalDreamer,
Yes, as per your suggestion, it's working fine...thanks a lot...
here is the code...
CallableStatement cstmt;
ResultSet rst;
cstmt = connection.prepareCall(" exec backupdb ?,? ");
cstmt.setString(1,"SBIREMITLIVE");
cstmt.setString(2, "c:\\testing.bak");
cstmt.execute();
Regards,
V.Prasanna -
Access stored procedure in runtime
I would like to know how I can access the stored procedure in the runtime and is there any way to call the stored procedure from fx (edit formula button).Otherwise, any suggestion is much appreciated.
Thanks and RegardsHi All,
Problem is solved after adding files to microsoft access 2000 runtime. runtime missing some DLLs related to sql server 2000 to update those files follow the links below
http://support.microsoft.com/?kbid=287484
http://www.microsoft.com/office/orkarchive/2000ddl.htm#accsql
Thanks,
Brahma -
Passing Parameters in Crystal XI (v1) to SQL or MS Access Stored Procedures
Post Author: mib
CA Forum: Crystal Reports
In Crystal Reports 8.5 I had a report with a parameter called WeekCommencing which was
a datetime parameter. This worked against a stored procedure in a SQL
database and a union query with a parameter within MS Access database
- my application works on either platforms.
Now in Crystal XI, Crystal is now looking for a parameter called
@WeekCommencing which would be the full name in the stored procedure
but if I rename the parameter the same report would no longer work
against the MS Access database.
Anyone have any suggestions?Post Author: mib
CA Forum: Crystal Reports
In Crystal Reports 8.5 I had a report with a parameter called WeekCommencing which was
a datetime parameter. This worked against a stored procedure in a SQL
database and a union query with a parameter within MS Access database
- my application works on either platforms.
Now in Crystal XI, Crystal is now looking for a parameter called
@WeekCommencing which would be the full name in the stored procedure
but if I rename the parameter the same report would no longer work
against the MS Access database.
Anyone have any suggestions? -
Getting the count of stored procedure results in SQL Developer
Hello,
I have a stored procedure in SQL Developer. I right-click and say run. An output window at the bottom displays my results. There's no field, however, that tells me how many results I got.
There must be a way to figure this out (without modifying the SQL to include a count field). Is there?Hi Delaynomore,
Please follow the step and suggestion in the below MSDN document to do the move to the new versionof SQL Server.
Use Upgrade Advisor to Prepare for Upgrades
https://msdn.microsoft.com/en-us/library/ms144256(v=sql.110).aspx
If there are still some errors when running the SP, you could use the SQL profiler trace to easily find which statement in the SP causes the error message.
How To: Use SQL Profiler
https://msdn.microsoft.com/en-us/library/ff650699.aspx
SQL Server Profiler Step by Step
http://www.codeproject.com/Articles/21371/SQL-Server-Profiler-Step-by-Step
Regards,
Doris Ji -
Can we query a stored procedure results as an SQL Table ?
Hi,
Can we query a results from the results of a stored procedure returning a result set either as cursors or as PL/SQL Table like what we do like this
select * from <tablename>
select * from (select * from tablename) alias. instead of this, can we do like this
select * from (results of stored procedure) alias.
Please Provide any Help.I agree. Pipelined Table Functions are the way to go.
Docs at http://tahiti.oracle.com
Working demos in Morgan's Library at www.psoug.org under Pipelined Table Functions. -
UCCX 9 web services / Stored Procedure
I'll appreciate if you guys can help me on this... Our application group already created automated bill payment web site. I would like to do similar things by using UCCX 9. When customers call, they enter Customer ID, credit card/check number and amount of bill they want to pay...etc... Our Application guy asked me to find out if UCCX can call web services or if UCCX can pass values to Stored procedure. The question is what steps/functions do I need to accomplish this task? Please advise...
Thank you,
NanaHi Nana
Web Services: You can create custom Java code to connect to the web services, or use other methods. Here's some examples:
https://supportforums.cisco.com/thread/270279
https://supportforums.cisco.com/thread/2143901
Stored Procs: Looks like this is also possible though I've not done it myself :
https://supportforums.cisco.com/thread/2079597
Regards
Aaron -
How to display stored procedure results in SJSC table?
I have been able to create a cached rowset and debug/watch the results, but do not understand how to transfer those results to a Table component. Can anyone point me in the right direction?
Details:
In SessionBean1.java, I declared the stored procedure and rowset along with get/set and update procedures:
// SLS trying stored procedure 20060412
private java.sql.CallableStatement spFXRatesStatement;
private CachedRowSetXImpl spFXRatesRowSet = new CachedRowSetXImpl();
public CachedRowSetXImpl getSpFXRatesRowSet() {
return spFXRatesRowSet;
public void setSpFXRatesRowSet(CachedRowSetXImpl crsxi) {
this.spFXRatesRowSet = crsxi;
public void updateSpFXRatesRowSet(String inDate, String inCcy) {
try {
spFXRatesStatement.setString(1, inDate);
spFXRatesStatement.setString(2, inCcy);
spFXRatesRowSet.populate(spFXRatesStatement.executeQuery(), 1);
catch (Exception e) {
// TODO - write exception code
// SLS trying stored procedure 20060412I then �prepared� the stored procedure within SessionBean1�s init() procedure:
// SLS trying a stored proc 20060412
try {
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/bmo_fp");
java.sql.Connection conn = ds.getConnection();
// spGetFXRates
spFXRatesStatement = conn.prepareCall("{call GetFXRates(?, ?)}",
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY);
// next sp...
// clean up
ctx.close();
conn.close();
catch (Exception e) {
// TODO - add exception code
// SLS 20060412 I can see the results in a web page procedure with a �getSessionBean1().getSpFXRatesRowSet().getString(i)� watch.
try {
getSessionBean1().updateSpFXRatesRowSet("9/30/2005","EUR");
getSessionBean1().getSpFXRatesRowSet().first();
while (getSessionBean1().getSpFXRatesRowSet().isLast() != true) {
getSessionBean1().getSpFXRatesRowSet().next();
catch (Exception e) {
// TODO - specify error detail
}Now, how do I transfer these results to a table?I think you have to add a CachedRowSetDataProvider to you page been.
Then initalize it with your getSpFXRatesRowSet() in the init() method.
Then link you table to the CachedRowSetDataProvider. -
Stored Procedure Result Sets in Reports 6.0
Please help.
I have successfully managed to write a PL/SQL procedure using
the EXEC_SQL package in the Oracle to retrieve the return set
from a SYBASE stored procedure (very similar to the example in
the HELP documentation).
I would like to incorporate this output into a report using the
Oracle Reports Server 6.0 but I am not sure how to do this. If
anyone has any clues as to how this can be accomplished (PL/SQL
tables, reference cursors, beads or ribbons [only kidding]) then
I would be most grateful.
Thank you.
Andrew.
nullAndrew McSherry (guest) wrote:
: Please help.
: I have successfully managed to write a PL/SQL procedure using
: the EXEC_SQL package in the Oracle to retrieve the return set
: from a SYBASE stored procedure (very similar to the example in
: the HELP documentation).
: I would like to incorporate this output into a report using the
: Oracle Reports Server 6.0 but I am not sure how to do this. If
: anyone has any clues as to how this can be accomplished (PL/SQL
: tables, reference cursors, beads or ribbons [only kidding])
then
: I would be most grateful.
: Thank you.
: Andrew.
I would like to suggest the following procedures:
1. Create a Oracle work table for the Result Set and
Modify your pl/sql to insert the result set into
Oracle work table.
2. Place your pl/sql procedure in Oracle Reports
Triggers (i.e. Before Report or After parameter
form)
3. Define the Data Model using the oracle work table in
Oracle Reports.
Peter Ng
null -
Compiling a frequently accessed Stored Procedure
RDBMS version :10.2.0.4.0 in a 2 node RAC
Our Production DB is 24x7 . Our development team has made a change in a frequently accessed Procedure's code.
At any given time this Stored proc is accessed by at least 5 sessions.
I have been asked to compile this Procedure with the new changes.
Since this is a frequently accessed, i think the only option i've left to compile this proc is to Shutdown the DB and start it up using
STARTUP RESTRICTand then compile it. But, this procedure is actually run by a DBMS_JOB , so even if i shutdown, when i restart it , the job will resume ie continue executing the stored proc. Right?
I cannot bring down the local listeners as they are listening for another DB in the cluster.
Is there any other better way ?It's nothing to do with Oracle or any other technology -it's part of defining maintainable service levels.
Unless you really, really need 24/7 availability, it's always best to give yourself a window of downtime for doing upgrades, maintenance etc. A small bit of planned downtime can help prevent large periods of unplanned!
If you do need that 100% uptime then it needs to be architected in from the start - define your SLAs then architect an environment that can deliver. Unfortunately it is nearly always done the other way round, based upon what people would like, not necessarly what they need, or what is deliverable. -
Oracle Stored Procedure call in a Derived Table?
Can a statement that defines derived table in the Designer contain a call to an Oracle Stored Proc? The proc takes one varchar2 parameter and returns a result set that consists of one field of several records and is currently implemented via sys_refcursor (return type is flexible as long as it allows to pass the result set back)
Is there any difference between BOXI R2 and R3.0 regarding to the matter?Hi there,
In XI R 3 you can now created a special universe to use stored procedures.A stored procedure universe is a special universe that enables Web Intelligence users to access stored procedures residing in the database. In BusinessObjects XI Release 3, you can use stored procedures with Desktop Intelligence and with universes in Designer. You also benefit from universes that contain stored procedures for Crystal Reports and Web Intelligence.
XI R 2 no can do.
Hope this helps
Jacques -
Is it possible to pass TABLE as the output parameter in stored procedure
Hey Experts,
Is it possible to pass TABLE as the output parameter in stored procedure.
eg
create procedure spGetData
@tableName as TABLE(intValue INT NOT NUL)
asYou can use OPENQUERY or OPENROWSET, as mentioned above, to make stored procedure results table like. There are
some limitations with these methods:
http://technet.microsoft.com/en-us/library/ms188427.aspx
In OPENQUERY this-sql-server-instance can be used instead of a linked server name. It requires setting data accces server option:
exec sp_serveroption @server = 'PRODSVR\SQL2012'
,@optname = 'DATA ACCESS'
,@optvalue = 'TRUE'
LINK: http://www.sqlusa.com/bestpractices/select-into/
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012
Maybe you are looking for
-
Datagrid Image Renderer Broken in CS SDK but not Flex project
Within a Photoshop Extension, I have a DataGrid which has an inline custom image renderer whose dataprovider is an ArrayCollection called "photos" representing a list of photos and some metadata properties. One of the properties "fileName" is conca
-
Product Revenue over several months starting from a different date
Hi, I have a question regarding product revenue. You can indicate for how many months certain opportunities generate revenue, right? Is this visible in the reports and is is it also possible to indicate the date when this opportunity will start takin
-
installed eBook and authorized on Adobe Digital Edition and was able to read eBook earlier. Due to some issue I had to reinstall the eBook. Now I am unable to read eBook it is asking for Authorization and when I input my Adobe ID and pass it gives me
-
I purchased 2 albums in I Tunes, but the download is waiting... for days.
-
Hi..:) Need some advise on any Oracle Sql query reference.. I use to do mysql development with reference to mysqlhelp.chm Is there any equivalent standalone help reference available for oracle. Thank you