Microsoft
Software
Hardware
Network
Question : query analyzer vs stored procedure
I have the following code which runs inQA yet when put in a stored procedure fails with bad first parameter in dateadd????
set @pdend = '2009/11/30'
set @Q4End = @pdend
set @Q4Start =DateAdd ("m",-3 ,@q4end + 1 )
set @Q3End = dateadd("d",-1,@Q4Start)
set @Q3Start = dateadd("m",-3,@Q3End+1)
set @Q2End = dateadd("d",-1,@Q3Start)
set @q2Start = dateadd("m",-3,@Q2End+1)
set @Q1End = dateadd("d",-1,@q2start)
set @Q1Start = dateadd("m",-3,@Q1End+1)
Answer : query analyzer vs stored procedure
I repeat: do NOT use "m", but use month, mm or m. without the quotes.
Random Solutions
how to devevlope voice chat applications using C#.net ?
Making a form editable in Access 2002
Creating Voting Buttons
how to fix an image in certain place of the Word document
How do I find MDI Active Child from toolbar on MDI Parent in VB.NET Winforms Application?
SQL SPLIT Function Clarification
Rename local Administrator user for all machines in the Domain
Memory Error crashing VB.NET application
Deleting Group Policy Objects
Access Radio Option Help...