Viewing 4 posts - 226 through 230 (of 230 total)
Good question, but which alternative is correct depends on how you define platform. If you define "platform" as "versions of SQL Server", then CONVERT works in every version whereas CAST...
March 8, 2010 at 2:55 am
Oh, I know that. From the perspective of someone who started with SQL Server way back in 91 it's completely clear. But for the less experienced it can certainly appear...
February 18, 2010 at 12:26 am
I got it right because I knew it, but I understand why that might not be obvious, and the behaviour is slightly iffy.
If you do
SELECT @var = MAX(object_id)
FROM...
February 12, 2010 at 1:02 am
This used to be true, and I have often used this knowledge to optimise slow-running queries. But since SQL 2005 it no longer matters from a performance point of view....
January 27, 2010 at 12:25 am
Viewing 4 posts - 226 through 230 (of 230 total)