Forum Replies Created

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

  • RE: find a missing no

    -- Give this a try as well

     

    DECLARE @max_id int

    DECLARE @i int

    DECLARE @testTable TABLE (id INT)

    SET @max_id = (SELECT MAX(ID) FROM Bill)

    SET @i = 0

    WHILE @i < @max_id

    BEGIN

       INSERT INTO @testTable...

  • RE: dynamic query help

    noeld,

    I should of been clearer on what I'm am currently trying. I am using dynamic sql to create my search clause and in the query part where I select...

  • RE: dynamic query help

    In assigning nulls, I'm referring to the query that will pass the data to the udf i.e. if you only needed 5 years worth of data calculated then,

    SELECT id_1, id_2...

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