Is there a way to call a MSSQL stored procedure from Flex/ActionScript...
Is there a way to call a MSSQL stored procedure from Flex/ActionScript without using ColdFusion or another middleware? I usually use CF, but I need to call my AS code inside MS.
Thank you!
Lee
No, because you cannot expose your database server to external users. but you can call a remote method that can run your database procedures
Tags: Flex
Similar Questions
-
call a packed stored procedure from within another stored procedure
I have a stored procedure (STROKEQC) on a scheme that is not in a package. I want to be able to call a procedure stored that IS inside a package on the same scheme of STROKEQC. When I try the syntax below, I get an error "no function with name 'PARTICIPANTSPECIFICEDITS' exists in this area." That the procedure exists.
Is not the way to do inside a stored procedure?/*Generate admin field data*/ execute immediate QCPROCEDURES.PARTICIPANTSPECIFICEDITS('ALL'); execute immediate QCPROCEDURES.GENERATE_SURGYEAR_ERRFLAG;
Thank you!
EvaHi, Eva,.
You need not EXECUTE IMMEDIATE to call a stored procedure (including a procedure in a package) on the other. Just use the name and the arguments (if any):
QCPROCEDURES.PARTICIPANTSPECIFICEDITS('ALL'); QCPROCEDURES.GENERATE_SURGYEAR_ERRFLAG;
I guess qcprocedures is the package name, and participantspecificedits and generate_surgyear_errflag are procedures in this package.
In case you're wondering, the error was probably because you do not have a variable called participantspecificedits. If you had a dynamic code in a string called variable x, then "EXECUTE IMMEDIATE x"; would be the way to run it.
-
Call of function/stored procedure of dashboards
Hi all
My requirement is to call a stored procedure /function of dashboard and display the result in the dashboard.
I created a function that takes in 2 dates and restores the lines in this date range
(1) creation of function
create or replace FUNCTION FUNC3 (BDATE TIMESTAMP, EDATE TIMESTAMP) return as sys_refcursor
R1 sys_refcursor;
BEGIN open for r1
SELECT * FROM EMP WHERE HIREDATE BETWEEN BDATE AND EDATE.
Return (R1);
END;
(2) created a dashboard quickly start date and the end date and the variable defined as variable presentation 'Pre_B1Date' & 'Pre_E1Date '.
(3) created a request directly to the database as
SELECT FUNC3 (to_date (' @{Pre_B1Date} ',' YYYY/MM/DD hh: mi PM'), to_date (' @{Pre_B1Date} ',' YYYY/MM/DD hh: mi PM')) FROM DUAL
(4) that I've created a dashboard with the above command prompt & demand live, but when I try to open the dashboard why the BI server is blocking down.
gave me an error
Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 12002] Communication to the socket call = recv error: (10054 = number) an existing connection has to be closed by the remote host. (HY000)
Publ. SQL: {call NQSGetQueryColumnInfo (' EXECUTE the PHYSICAL "Con pool Scott" CONNECTION POOL SELECT FUNC3 (to_date ("@{Pre_BDate}","YYYY/MM/DD hh: mi PM"), to_date ("@{Pre_BDate}","YYYY/MM/DD hh: mi PM")) FROM DUAL')}
have one never faced this problem?
or is there another way to call a funcation stored dashboards, /procedure
where you can pass the variables of the presentation and view the output put this /procedure function
Thank you
sangovYes.
You can't return a cursor in a column in a select statement. You must use a piplined function (also known as table function).
http://gerardnico.com/wiki/language/PLSQL/plsql_pipelined_functionYou'll find yourself with:
select * from FUNC3(BDATE,EDATE)
See you soon
NicoPublished by: gerardnico on July 31, 2009 11:35 remove the data type in the select
-
Is there a way to watch my favorite firefox online from any pc via a browser?
Is there a way to watch my favorite firefox online from any pc via a browser?
Hello!
The short answer is no. And unfortunately there is no really long answer. Product design and the vision of Firefox Sync is to allow you to have all your information in all your browsers.
The very long answer, it's that they are some other projects on the works that will cover the case refer to: you are on a computer that is not yours and you want to access once with your home system. Unfortunately for now is just an idea.
-
Is there a way to copy properties to disable conditional from one project to another?
I have a bit of code in a project that I want to back off to a colleague and want to do a new 'reduced' project with only a few subvis. I don't want to necessarily or need him for the entire project, but only access to a privileged few. Is there a way to copy the conditional disable properties from one project to another?
Thank you
Tech12
Thanks, it works, but I couldn't get the symbols will appear in the 'project' "Properties..."
Tech12
-
My email has been hacked and now I can't even Windows Live. Is there a way to retrieve my contacts and photos from this account?
Hello upstatemaine,
Please repost your question on the Windows Live Solution Center-Live Mail , where an expert in this field would be better suited to provide you with a solution. Thank you!
Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
I synced with my Iphone 6 various collections and works very well. Question: is there a way to get out of the photos from my phone to TV via Apple TV? Camera does this but not the App mobile Lightroom Dave
Hello
There is no feature that can do this in Lightroom Mobile from now.
You can post your comments/idea here Photoshop community customer family
Thank you
-
Is there a way to copy / transfer / export existing assets from one site to the other?
Is there a way to copy / transfer / export existing assets from one site to the other?
I have like 20 + documents in one of my sites that I need to transfer to another site... What is a quick way to do without re - upload all my new Web site?
Anyway, you would still re - download.
If they are both sites of Muse you can open sites in Muse and copy and paste the desired content moved above.
-
Is there a way to generate the command CREATE DATABASE from the DB?
Version: 11.2.0.3
Is there a way to generate the CREATE DATABASE command from an existing database?
You can empty the CONTROLFILE to trace and you'll get a CREATE CONTROLFILE statement which you can turn into a CREATE DATABASE statement.
------------
Sybrand Bakker
Senior Oracle DBA.
-
Calling an Oracle stored procedure that returns a REF cursor
Hi guys,.
I'm calling an Oracle stored procedure that returns a REF CURSOR. Here is the piece of code that I'm working on:
procedure TC307_MAIN (p_program varchar2, varchar2, varchar2, result_set OUT eng_cur p_engchgno p_project) as
Start
IF (p_program = 'Navybased' and p_project = 'PROTECTOR-BUILD') THEN
result_set: = comments. Tc307_Eng_Chg_Rpt.TC307_RNZN (p_engchgno, result_set = >);
END IF;
end TC307_MAIN;
procedure TC307_RNZN (p_engchgno varchar2, result_set IN OUT eng_cur) as
Start
end TC307_RNZN;
PL/SQL code behind TC307_RNZN is big enough, that's why I've not stuck here. Basically, the second stored procedure executes a PLSQL statement and returns a result set. I need to return the result_set in the main proceedings based on nested else statement which I am still trying to build. I get a compilation... error can someone guide me with the correct method to call the second stored procedure and returning in the main proceedings.
Thank you very much.Rohan,
Try this
procedure TC307_MAIN(p_program varchar2, p_project varchar2, p_engchgno varchar2, result_set OUT eng_cur) as begin IF (p_program = 'RNZN' and p_project = 'PROTECTOR-BUILD') THEN -- This is a procedure not a function guest.Tc307_Eng_Chg_Rpt.TC307_RNZN(p_engchgno, result_set); --UR compilation error on this line* END IF; end TC307_MAIN;
SS
http://DB-Oracl.blogspot.com -
Is there a way to see all the emails today from my different e-mail accounts in Outlook?
For example, I have more than 10 accounts e-mail, and instead of the Inbox, click display all the e-mail now and then by clicking Inbox for the following e-mail account, is there a way to see all emails today to all my e-mail accounts 10 +? And if the answer isn't in Outlook, could you tell me another application that could do it please? Thank you.
Ask groups of Outlookhttp://answers.Microsoft.com/en-AU/Office/default.aspx#tab=3The integrated Vista Windows Mail program displays all accounts in one Inbox.--..--"Kim2theKiko" wrote in message news: 65d412c9-e571-496e-9 d 72-278d0fb323c9...> For example, I have more of e-mail accounts 10 and instead of click> Inbox, view all the email today and then clicking Inbox for the next> e-mail account, is there a way to see all emails today to all my> 10 + e-mail accounts? And if the answer isn't in Outlook, could you tell me> another application that could do it please? Thank you.> -
Is there a way to launch Windows 8 speech recognition from the command line?
Is there a way to start (and stop) Windows 8 speech recognition from a command line prompt? I found a post giving the command to start speech recognition in Windows 7 as "c:\windows\speech\common\sapisvr.exe - SpeechUX". Although it seems to start the process of sapisvr.exe, MISTLETOE (the microphone with closing, minimize and text box) does not appear.
Offered the same post "taskkill /im sapisvr.exe /f" to stop the service, but it throw an error of permissions in Windows 8. In any case, I'm more desperate to a corect command-line START the voice recognition system.
Any help would be appreciated
Yes, there is a way!
Try to use the link in the ease of access.Launch this way C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessibility\Speech Recognition.lnk and everything will work!
-
Let's say I want to just go to 10px. 20px or... Is there a way to define that?
Thank you!
Ryan
Look for the small square located in the lower right of the object when you are in the effects view. Click on that little room and then you should see the arrow that allows you to specify the exact direction and the object will be moved by the effect of length.
-
call a pl/sql stored procedure from a report link
Hi all:
I have a report with a link in a column, which you take to another page and passes the values to this page, but also need to link, run a stored procedure before you go to the other page.
In the Forum, I found a case similar to this one, but none of the examples is clear to me that I'm doing this. It seems that the target of the link must be URL, and also I have to call the stored procedure with a javascript function.
My questions are:
-Is the best way to do what I need?
-How should be the syntax of the link that takes me to another page and run the "procedure".
-How and where I put the "javascript" function to execute the "stored procedure".
BDD: Oracle 11 g
Apex 4.1 version
Best regards
GerardHello
Change the link to call an apex.submit procedure. (javascript).
Edit:
I created a basic example.
Region 1 (just so that you can see the value ready):
Select: P27_HIDDEN item_Value
of the doubleRegion 2:
rownum SELECT id, dbms_random.string ('U', 12) sss
of the double
connect by level<=>=>element attributes for ID:
Target: URL
URL: javascript:apex.submit ({request: 'NAVIGATE', value: {'P27_HIDDEN': #ID #}});(P27_HIDDEN is just a hidden item I created)
http://Apex.Oracle.com/pls/Apex/f?p=54920:27
Edit2:
In your case, then you can only have a page based on conditions request = expression1, expression1: NAVIGATE... then a branch of the page to go to the desired page, also with the same conditions
Edit3:
I'm not sure what examples you're talking about, that you provide no link; but you mention calling the stored procedure of javascript, so would probably involve some AJAX, but is not necessary IMO.
-
Calling an Oracle stored procedure.
Stored procedures have always given me trouble, I don't know why.
I want to call a procedure from Oracle to a piece of CFML code.
My CFML code:
<cfstoredproc datasource="purload" procedure="PUR_XML_LOAD.load_raw" returncode="yes"> <cfprocparam cfsqltype="CF_SQL_FLOAT" value="999" type="out"> </cfstoredproc>
The error I get:
[Macromedia] [Oracle JDBC Driver] [Oracle] ORA-06550: line 1, column 18:
PLS-00306: wrong number or types of arguments in the call to 'LOAD_RAW '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredTest code PL/SQL that works with Oracle SQL Developer:
DECLARE foo NUMBER :=999; begin PUR_XML_LOAD.load_raw (foo); dbms_output.put_line('>' || foo || '<'); end;
The top of the stored procedure:
create or replace PACKAGE BODY PUR_XML_load AS -- *** PROCEDURE: PUR_XML_load *** -- Loads values from previously-validated XML file -- into the raw_pur table PROCEDURE Load_raw (res_val OUT NUMBER) AS
So, how can I make the code the same way CFML function that code PL/SQL?
TIA
Ian
OK, maybe you're RTFMing, but maybe RWAS (read this as Adam Said) ;-)
Does THIS work:
?
--
Adam
Maybe you are looking for
-
iPhone 6 photos deleted. memory not released
I used Windows Explorer to delete the photos on my iPhone6. He is there not pictures here when you look in windows Explorer or on the phone itself. However, it is not that the memory has been released. Windows Explorer shows: internal storage > > D
-
I'm a new mac user and I'm having a problem creating a shared with the photo album album. I created a new shared album and download pictures in it. They appear to download, but never actually, they appear in the album. I deleted several times and tri
-
Key keyboard X200s erupted when put back the keyboard
I have was withdrawal keyboard on my X200s to clean it up a little, because it seemed that something had got stuck in one of the mouse buttons. When I put the keyboard back, I noticed the right ctrl key become loose, and I tried to reattach it. Then
-
can't games to load on my computer drive works 2 play music, but not load 2 game I miss me
-
SFR - no policy of the 'rate of bandwidth limit' based on the source IP address
Hello security experts. I can't find the policy of depending on source IP bandwidth rate limiting or a device of the type (in the case of mobile devices android or apple) on SFR because it was easily configurable with the CX on ASA5515-X module. Anyo