I got the answer. This is what I was looking to do:
SELECT @part_id = part_id, @ass_id = ass_id
FROM partner
WHERE part_action_id = @part_action_id
Thanks!
Here is a somewhat sanitized version of the full stored procedure. I hope it's sound enough for you to get an idea of what I'm trying to do.
CREATE PROCEDURE docs
AS
IF @@trancount = 0
SET CHAINED OFF
-- $Header$
-- Create temp table
CREATE TABLE #temp_rad (
act_code char(3) NOT NULL...
I am having a problem getting the syntax right on this (if this is even legal in 12.5).
I am creating a stored procedure and I am inside of a cursor, looping on a temp table. I need to set two variables (@part_id and @ass_id) with each pass of the loop, and I am attempting to do so as follows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.