Viewing 15 posts - 3,661 through 3,675 (of 7,484 total)
Nice question and correct answer (pity about the locale issue, though).
Unfortunately, the explanation is rather wrong - not surprising, as the BOL page on smalldatetime also gets the rounding wrong.
29.999...
March 14, 2013 at 7:02 am
archie flockhart (3/13/2013)
March 13, 2013 at 5:58 pm
Nice question.
A useful reference that should perhaps have been in the explanation is the BOL datetime page which has a information about the ODBC timestamp literals with their literal_type fields...
March 13, 2013 at 5:09 pm
jcrawf02 (3/12/2013)
March 12, 2013 at 3:05 pm
crookj (3/12/2013)
SQLRNNR (3/12/2013)
JAZZ Master (3/12/2013)
opc.three (3/12/2013)
Stuart Davies (3/12/2013)
SQLRNNR (3/11/2013)
crookj (3/11/2013)
SQLRNNR (3/9/2013)
john.arnott (3/8/2013)
Revenant (3/8/2013)
SQLRNNR (3/8/2013)
opc.three (3/8/2013)
JAZZ Master (3/8/2013)
crookj (3/8/2013)
SQLRNNR (3/7/2013)
crookj (3/7/2013)
Daniel Bowlin (3/7/2013)
HelpSupport
Truss
Tether
Tie
Bolo
Whip
Rawhide
Eastwood
West Side
Story
TOY
(to) infinity
Bed, Bath...
& Body
Works
The whole kit and caboodle
Well...
March 12, 2013 at 2:44 pm
vk-kirov (3/12/2013)
FirstDate ...
March 12, 2013 at 2:27 pm
Actually I rather like this question. It opens up an interesting bag of worms. Hugo's explanation shows people what they have to do to avoid silly errors (not mix...
March 12, 2013 at 1:45 pm
ronmoses (3/1/2013)
create proc sp1
as
select * from temp1
exec sp2
Without a BEGIN and END defining the body...
March 11, 2013 at 1:21 pm
These constraints are often called cross-database foreign key constraints. SQL Server offers no support for them, in fact I don't think any widely used commercial SQL database does. ...
March 11, 2013 at 1:04 pm
David Burrows (3/11/2013)
SELECT DISTINCT j.name as job_name,
msdb.dbo.agent_datetime(run_date, run_time) AS [run_datetime],
DATEADD(second,DATEDIFF(second,0,msdb.dbo.agent_datetime(19000101, run_duration)),msdb.dbo.agent_datetime(run_date, run_time)) AS [run_endtime]
FROM msdb..sysjobhistory h
INNER JOIN msdb..sysjobs j ON h.job_id = j.job_id
WHERE j.name NOT LIKE 'Backup%'
AND j.name NOT...
March 11, 2013 at 8:44 am
SQLRNNR (3/10/2013)
Lynn Pettis (3/10/2013)
GilaMonster (3/10/2013)
March 11, 2013 at 8:23 am
Jeff Moden (3/10/2013)
March 11, 2013 at 8:10 am
Hugo Kornelis (3/11/2013)
March 11, 2013 at 7:20 am
Hugo Kornelis (3/11/2013)
Good question on a feature that, hopefully, nobody ever relies on anymore. 🙂
It always surpriseded me that anyone relied on it, except in early cobol programs where dates...
March 11, 2013 at 6:19 am
Viewing 15 posts - 3,661 through 3,675 (of 7,484 total)