Viewing 10 posts - 301 through 310 (of 310 total)
Good point. As it happens, BETWEEN was first so, if anything, would have been disadvantaged. But, I admit, this wasn't a controlled test and could be affected by...
February 27, 2004 at 6:50 am
For a SELECT, BETWEEN seems the most efficient :
SET DATEFORMAT dmy
DECLARE @DayStart DateTime
DECLARE @DayEnd DateTime
SET @DayStart = CAST('2/2/2004' AS DateTime)
SET @DayEnd = CAST('3/2/2004' AS DateTime)
SELECT * FROM MyTable WHERE CreatedDate...
February 27, 2004 at 2:29 am
CAST(CAST(GETDATE() AS Char(11)) AS DateTime) took 4 times as long as datediff or numeric on my server!
February 26, 2004 at 7:19 am
I have tried both methods as below. The DateDiff method turns out 5.5 percent faster on my loval installation of SS7 :
February 26, 2004 at 6:54 am
I don't think you can secure it completely but you can detect changes. A trigger as suggested will work except with outright sabotage where someone disables the trigger! ...
January 29, 2004 at 5:00 am
Create a temporary table prepopulated with twelve rows, one for each month, and then do an outer join on this table to provide the missing month numbers.
November 4, 2003 at 2:01 am
TOP works but I did come across a curious behaviour the other day. A fairly simple query without TOP ran in a few seconds. With TOP, I killed...
October 29, 2003 at 2:39 am
Thanks to you both. gljjr, looks a robust solution but I would prefer to avoid polling if possible. Greg, I will need to study this and try it...
October 24, 2003 at 1:49 am
What are the data types? Is it possible that there is a some subtle mismatch?
October 16, 2003 at 1:30 am
You can't pass parameters with OPENQUERY. You have to build the string first and then send it.
October 10, 2003 at 1:39 am
Viewing 10 posts - 301 through 310 (of 310 total)