Viewing 3 posts - 1 through 3 (of 3 total)
-- 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...
August 17, 2006 at 7:38 am
#655447
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...
December 5, 2003 at 8:46 am
#484855
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...
December 5, 2003 at 6:40 am
#484788