Viewing 15 posts - 2,611 through 2,625 (of 6,036 total)
I'd say it's a bug.
3 or 4 years ago it was a big discussion here. At that time current version of SQL Server was doing OK by following ANSI standard...
March 12, 2009 at 4:44 am
All the inputs are 2 bages back.
Please make an effort to read what people answer on your questions.
March 12, 2009 at 4:33 am
lee.pollack (3/10/2009)
March 11, 2009 at 5:53 pm
First of all, replace ISNULL(colN,0)<NNN with (colN<NNN or colN IS NULL).
March 11, 2009 at 3:05 pm
Chirag (3/9/2009)
Yes its only for the current session. DateFirst acutally depends on the language chosen. For english it 7 - Sunday.
For English in Australia it's 1 - Monday.
It depends not...
March 9, 2009 at 6:26 pm
You use "sysname" datatype for some strings (@rownamesalias, for example).
Sysname is actually nvarchar(128)
March 9, 2009 at 5:53 pm
Try always set a clustered index on the column(s) used in range selections.
In your case its [DateTime].
Clustered index on that column will resolve the problem.
March 9, 2009 at 4:59 pm
wolfgang.birch (3/6/2009)
but why is @sqlstring not being populated up to 8000 to start with, as it is defined as a varchar (8000)?
See the first reply.
You have nvarchar somewhere.
March 6, 2009 at 9:43 am
How do you execute @sqlstring?
March 6, 2009 at 8:33 am
IF OBJECT_ID('tempdb..#Table') IS NOT NULL
DROP #Table
March 5, 2009 at 1:51 pm
Michael Valentine Jones (3/3/2009)
The latest Monday on or before the current date,...
March 3, 2009 at 4:28 pm
Actully, Lynn, it's much easier.
If based on my code. 😎
DECLARE @Date datetime
SET @Date = GETDATE()
SELECT @Date as [Date], WeekStart, WeekStart + 4 as WeekEnd
FROM (
...
March 2, 2009 at 10:50 pm
Actually finding the beginning of current week should not be any different as finding of the beginning of current day.
DECLARE @Date datetime
SET @Date = GETDATE()
select @Date as [Date], DATEADD(wk,...
March 2, 2009 at 7:18 pm
Viewing 15 posts - 2,611 through 2,625 (of 6,036 total)