|
Elvis, But I do want to create SQL Stored Procedures because they are not dynamically prepared and executed each time they run like in a .ASP or .NET program. As I understand it they create "plans"/access paths that run as static SQL. Another reason is what returns should only be one row for the specific parms/criteria passed. And, yes, it is possible each of my stored procedures will be used by the multiple programs in the specific .ASP application in question AND, in future, by other applications. So, for what I want, is the correct syntax?: CREATE PROCEDURE whatever I want to call it (anything go between the parenthesis such as my variable names -- SELUTCSID, SELUTLCID,SELUTSVC, SELUSSSTS ????) LANGUAGE SQL BEGIN DECLARE C1 CURSOR FOR SELECT UTCSID, UTLCID, UTSVC, UTSSTS FROM DODOM1.BFUT220AP WHERE (UTCSID = SELUTCSID AND UTLCID = SELUTLCID AND UTSVC = SELUTSVC); OPEN C1; RETURN; END Where am I missing the boat? Thanks very much for your help, Dave
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.