Viewing 11 posts - 211 through 221 (of 221 total)
Toreador (9/24/2010)
Rune Bivrin (9/24/2010)
September 24, 2010 at 3:15 am
Hugo Kornelis (9/23/2010)
"A table should avoid nullable columns."
No. A table should avoid unnecessary nullable columns. When values may be missing in a column, making the column nullable is actually...
September 24, 2010 at 2:42 am
While I agree that errors aren't good, I didn't really notice them in this question. I looked up "deprecated features" in BOL, and found a reference to sys.dm_os_performance_counters. Matching that...
August 5, 2010 at 1:12 pm
I couldn't find any mention of the restriction on increment either. My gut reaction was to answer "error" given that an zero increment makes no sense, but as I couldn't...
July 15, 2010 at 4:19 am
Yep, I was wrong about that. And I even ran a test to verify my thought before I posted, but I managed to read the results of that test wrong....
April 14, 2010 at 1:32 pm
It's important to note that SET @result = cast (@@rowcount as varchar) does NOT change @@ROWCOUNT. The first 1 comes from the last INSERT #n VALUES(3).
This is one of the...
April 14, 2010 at 3:23 am
sknox (3/8/2010)
Rune Bivrin (3/8/2010)
March 8, 2010 at 11:57 am
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 11 posts - 211 through 221 (of 221 total)