Viewing 4 posts - 76 through 79 (of 79 total)
I wanted to avoid the case statement. I also looked into creating table types and using sp_executesql. But that defeats the purpose of the table variable because I now...
December 4, 2013 at 3:13 pm
Thanks everyone. I did find what the issue was, and that's because I was running the procedure after a SET FMTLONLY ON, which forced every if statement to run. ...
November 21, 2013 at 3:31 pm
I understand the best practices and I am quite experienced with SQL server. I haven't seen this error before. Unfortunately the procedure is over 2,000 lines long and has a...
November 21, 2013 at 1:38 pm
Here's a snippet of the procedure. The error is pointing to MyNotificationProcedure.
create procedure MyProc
as
begin try
-- SQL Code
;with MyRecursion
as
(
-- Anchor
union all
-- Recursion
)
select * from MyRecursion
-- SQL Code
return 0
end try
begin catch
exec MyNotificationProcedure...
November 21, 2013 at 1:23 pm
Viewing 4 posts - 76 through 79 (of 79 total)