04-22-2012 04:19 PM - edited 03-15-2019 05:47 AM
Hello,
I'm attempting to create a stored procedure in order to format data for a custom report. I'm currently using both RazorSQL and AGS Server Studio, but neither one seems to allow me to upload stored procedures to the 'db_cra' database on the UCCX server. I'm logged-in as the 'uccxhruser' user. Does anyone have any instructions for this?
The system version is: 8.5(1)SU2, COP 2.
Solved! Go to Solution.
04-23-2012 02:34 AM
Hi
'Save' will do just that - save to a file. I don't have AGS at the moment - trial expired, and I can't afford it :-) but you will be looking for a button that says 'run' or 'execute' or something similar.
Regards
Aaron
04-22-2012 11:02 PM
Hi,
Please refer the below link page number 188 for required permission for stored procedure.
Regards,
Gnaneswaran.
04-22-2012 11:03 PM
Hi
That version of UCCX, and those products, with that user should be fine.
What is the error you get exactly?
How are you specifying the 'create function' or 'create procedure' statement?
Aaron
04-23-2012 01:58 AM
Hi Aaron,
I'm using the guide at:
http://publib.boulder.ibm.com/infocenter/idshelp/v10/topic/com.ibm.sqlt.doc/sqltmst255.htm.
If I log-in to AGS Server Studio, connect to the database and go to: 'Databases > db_cra > Routines (SPL) > Create new routine', a 'New Routine' window appears on the right hand side. Then say, for example, I paste the following in to the 'New Routine' window:
CREATE FUNCTION discount_price (per_cent REAL)
RETURNING MONEY;
END FUNCTION;
I can check the syntax, but if I click 'Save', AGS Server Studio presumes that I want to save a SQL file to my local hard disk. This is not the case. I want to upload it to the repository!
04-23-2012 02:34 AM
Hi
'Save' will do just that - save to a file. I don't have AGS at the moment - trial expired, and I can't afford it :-) but you will be looking for a button that says 'run' or 'execute' or something similar.
Regards
Aaron
04-23-2012 05:17 AM
Thanks Aaron. Creating the function and pressing 'Execute all SQL statement(s)' causes the stored procedure to be uploaded.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide