Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wangotango

    Select variables in a cursor

    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!
  2. wangotango

    Select variables in a cursor

    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...
  3. wangotango

    Select variables in a cursor

    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...

Part and Inventory Search

Back
Top