Viewing 15 posts - 31 through 45 (of 112 total)
Thanks for the help.
Input
DECLARE @FREQ INT
SET @FREQ = 5
SELECT DATEADD(MM, @FREQ* NUMBER, '20120501') AS MYDATE, NUMBER
FROM UTILITY..NUMBERS
WHERE DATEADD(MM, @FREQ*NUMBER, '20120501') < '20200501'
Ouput
MYDATENUMBER
2012-05-01 00:00:00.0000
2012-10-01 00:00:00.0001
2013-03-01 00:00:00.0002
2013-08-01 00:00:00.0003
2014-01-01 00:00:00.0004
2014-06-01 00:00:00.0005
2014-11-01 00:00:00.0006
2015-04-01...
April 20, 2012 at 10:00 am
Its an overflow message in trying to create the date in the where clause for the last date..but it makes no sense to me because if I increase the date...
April 20, 2012 at 9:13 am
09697
(1 row(s) affected)
as you would expect I think.
Rolf
April 20, 2012 at 8:25 am
I am really using 2000, have no reason to upgrade and I don't have time to rewrite all my DTS tasks either.
DECLARE @FREQ INT
SET @FREQ = 5
SELECT DATEADD(MM, @FREQ* NUMBER,...
April 20, 2012 at 5:53 am
Yes I've been scratching my head looking for a simple one liner dateadd statement that will get it but I my feeble brain cant work it out so I have...
November 30, 2011 at 7:44 am
Thank you, that sort of does the trick..you can control the row output so you might have three rows where they could fit on two but thats front end stuff...
October 7, 2011 at 8:22 am
Hi there,
Please find below an edited version with a code snippet that will bring up the results I am getting now.
--===== If the test table already exists, drop it
IF OBJECT_ID('TempDB..#mytable','U')...
October 5, 2011 at 2:22 am
ermm...is it just me or can anyone else 'see' the article..? I only get the second code block but then no more text..?
June 20, 2011 at 4:13 am
Hi there,
Thats what I have done in the past created derived tables but I was wondering if there were any alternatives, better options, opinions about the performance hit of derived...
November 26, 2010 at 6:22 am
I have already tried the registry rebuild, made no change.
January 25, 2008 at 12:05 pm
I have tried reinstalling....there is no repair option as such, just the option to add or remove sections. I could try removing all the client tools and reinstalling them.
I'll try...
January 25, 2008 at 10:18 am
update
July 17, 2007 at 6:21 am
OK in 2000 I am using three tables, one containing all materialIDs (MATERIALS), one with BOMIDs and assocaited materialIDs (BOM). The final table represents the materials available (AVAILABLEMATS), in the...
May 31, 2007 at 4:00 am
OK thanks for the replies..will look into the CTE on 2005..not sure if the development server will have 2005 so I need a 2000 solution as well..from initial investigation it...
May 31, 2007 at 2:10 am
Thanks for the massive amounts of help!
Its all sorted now...all my problems were due to clashes with the instances...Because both 2005 and 2000 were running at the same time I...
January 19, 2007 at 6:07 am
Viewing 15 posts - 31 through 45 (of 112 total)