Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: Passing in multiple Int values into store procedure

    Thanks for the solution, I have upto 100 int values depending on the options selected, so the Function iter_intlist_to_table works fine and is now up and running.

    Solution copied from...

  • RE: Recursive Cursors

    I've had a search and found this article which creates the hierarchy in a sql statements - brill

    http://www.sqlteam.com/item.asp?ItemID=8866

    Thanks for help

    Graham

     

     

  • RE: Recursive Cursors

    The code I'm using to navigate the tree is below:

    However, when I run this, one iteration affects the others.

     

    CREATE PROCEDURE dbo.sp_Load_CostCode

     @PrevCostObj_ID int

    AS

    DECLARE

    -- Cursor Fields

    @CostObj_ID int

    BEGIN

    set nocount on

    DECLARE curLevel CURSOR...

Viewing 3 posts - 1 through 3 (of 3 total)