Viewing 5 posts - 1 through 5 (of 5 total)
The TallyFromTo listing posted above on 7/25/2013 does allow for negative numbers, and also allows a choice of direction. I did not check the timing, but I guarantee it is...
August 15, 2013 at 10:19 am
Here is a slightly altered version that will print results between (and including) any two integers, forward or backward. I also included the row number, since it is often useful.
...
July 24, 2013 at 6:51 pm
In the original posting, the query should be
SELECT @listValues = ISNULL( @listValues + @delimeter,'') +
ISNULL(FirstName,'')
...
January 10, 2011 at 9:33 am
If the birthday is being recorded to support birthday event planning, where the year (age) may be "sensitive" to some, then you can use a datetime field, setting the year to...
August 8, 2007 at 9:19 am
You can pass the table name as an argument to the lower SP.
In the calling SP -
create table dbo.#temp (resultField int)
exec dbo.calledSP @dataValue, 'dbo.#temp'
select * from dbo.#temp
The called procedure -
CREATE PROCEDURE dbo.calledSP...
August 3, 2007 at 12:51 pm
Viewing 5 posts - 1 through 5 (of 5 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy