Viewing 15 posts - 1,531 through 1,545 (of 2,171 total)
===== DateDiff/DateAdd method ======
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
653 Milliseconds
===== DateDiff/DateAdd method...
July 8, 2007 at 2:39 pm
Accuracy test...
--===== Create a test table
CREATE
TABLE dbo.BigTest2
(
RowNum
INT NOT...
July 8, 2007 at 8:56 am
Rounding method 2 has a desing flaw for all dates.
SELECT
DATEDIFF(DAY, 0, '20070708...
July 8, 2007 at 2:48 am
SQL Server 2008 Developer Edition
1 GB RAM (SQL Server service 256 MB)
Fujitsu Siemens E8020 LifeBook Laptop Pentium-M 2GHz
July 7, 2007 at 12:02 pm
SELECT TOP 100 LastName, FirstName
FROM (
SELECT LastName.LastName,
FirstName.FirstName
FROM Table1 AS LastName
CROSS JOIN Table1 AS FirstName
WHERE LastName.Gender = 'M' AND FirstName.Gender = 'M'
UNION ALL
SELECT LastName.LastName,
FirstName.FirstName
FROM Table1 AS LastName
CROSS JOIN Table1 AS FirstName
WHERE LastName.Gender =...
July 7, 2007 at 7:20 am
This has one caveat as MVJ has pointed out. It does not work for 1753-01-01
PRINT '===== Minus method ====='
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
SET @StartTime = GETDATE()
SELECT @MyDate=CAST(Adate - 0.50000004 as...
July 7, 2007 at 2:27 am
I realized that too, but sincce neither 2006 nor 2007 are leapyears it works.
July 6, 2007 at 2:23 pm
CREATE TABLE #LatLong (Latitude DECIMAL, Longitude DECIMAL, PRIMARY
July 6, 2007 at 9:18 am
alter
procedure usp__RptTNGAlerts
(
@day int
)
as
set
nocount on
select
ServerName,
Alert
July 6, 2007 at 7:19 am
Have you set an upper limit for SQL Server to use?
Operating system needs about 1 GB to function well.
July 5, 2007 at 6:15 am
July 5, 2007 at 4:48 am
SELECT *
FROM Table1
WHERE DATEDIFF(SECOND, '19700101', Col1) - Col2 BETWEEN -604800 AND 604800
July 5, 2007 at 4:46 am
Interesting you see a working solution as a problem!
My suggestion will work even when end-users decide to broaden the column size and send 130 char width instead of 90 char.
If...
July 4, 2007 at 9:07 am
Viewing 15 posts - 1,531 through 1,545 (of 2,171 total)