Ask a Question related to Coldfusion Database Access, Design and Development.
-
ism #1
Simple Stored Procedure Error
CREATE PROCEDURE sp_magazine_sections
@magazine_id INT, @magazine_section_id INT
as
IF @magazine_section_id is not null
BEGIN
SELECT TblMagazine_Sections.magazine_section_name,
TblMagazine_Sections.magazine_section_id,
TblMagazine_Sections_LK.magazine_section_id_fk,
TblMagazine_Sections_LK.magazine_id_fk,
TblMagazine_Sections_LK.magazine_section_photo ,
TblMagazine_Sections_LK.magazine_section_desc
FROM TblMagazine_Sections_LK INNER JOIN
TblMagazine_Sections ON
TblMagazine_Sections_LK.magazine_section_id_fk =
TblMagazine_Sections.magazine_section_id
WHERE TblMagazine_Sections_LK.magazine_id_fk = @magazine_id AND
TblMagazine_Sections_LK.magazine_section_id_fk =@magazine_section_id
ORDER BY magazine_section_order
END
ELSE
BEGIN
SELECT TblMagazine_Sections.magazine_section_name,
TblMagazine_Sections.magazine_section_id,
TblMagazine_Sections_LK.magazine_section_id_fk,
TblMagazine_Sections_LK.magazine_id_fk,
TblMagazine_Sections_LK.magazine_section_photo ,
TblMagazine_Sections_LK.magazine_section_desc
FROM TblMagazine_Sections_LK INNER JOIN
TblMagazine_Sections ON
TblMagazine_Sections_LK.magazine_section_id_fk =
TblMagazine_Sections.magazine_section_id
WHERE TblMagazine_Sections_LK.magazine_id_fk = @magazine_id
ORDER BY magazine_section_order
END
ism Guest
-
Error while executing stored procedure
I get the following error message when I am trying to execute a stored procedure. It runs fine on my dev server but giving error in production. ... -
Stored procedure error
We are attempting to use a stored procedure to enter data into two tables and we are recieving this error: ADODB.Command error '800a0d5d' ... -
simple stored procedure
Hi there!! I want to try stored proceudre that copies one field data from table1 to table2.. Can any one suggest how to write? I searched on net... -
Error in compiling stored procedure
For -901 always call support. They are internal error-messages you should never see. When calling support ask them to open an APAR straight against... -
C stored procedure SQL error.
I have a very basic C stored procedure written. It was working fine with some bogus/kludge SQL (just to get a DBRM created). I have now added... -
paross1 #2
Re: Simple Stored Procedure Error
What does your CFSTOREDPROC call look like in CF? (CFPROCPARAM for magazine_section_id, etc.)
Phil
paross1 Guest
-
sdwebguy99 #3
Re: Simple Stored Procedure Error
And just as a practice, you may wish to consider renaming your stored
procedures to not begin with sp_. Usually, sp_ stored procedures are system
stored procedures and using an alternate naming convention will help in the
long run. I agree with paross1 that it looks like the issue is in the
CFSTOREDPROC call.
sdwebguy99 Guest



Reply With Quote

