July 31, 2010 at 1:22 pm
Comments posted to this topic are about the item Transaction rowcount
July 31, 2010 at 3:15 pm
August 1, 2010 at 8:57 pm
Nice question, I liked that it is clean and straightforward, no tricks. The column names in that table of yours are not very nice though. 😀
Oleg
August 1, 2010 at 11:04 pm
Nice question, thanks!
August 1, 2010 at 11:13 pm
a very good question... thanks 🙂
August 1, 2010 at 11:55 pm
nice!! but tough to concentrate........
August 2, 2010 at 12:08 am
good question
August 2, 2010 at 1:58 pm
Nice question. You got me with the last SELECT setting the value to 1. I thought it returned 0.
"Beliefs" get in the way of learning.
August 2, 2010 at 9:29 pm
Can anyone explain me, how does it return '1' as the last rowcount???
August 3, 2010 at 2:09 am
sakthi_madan,
Run in query analyser:
SELECT @@ROWCOUNT
SELECT @@ROWCOUNT
The first statement returns a row with 0
The second statement is the count of rows returned from the first, i.e 1 row of 0.
Hope that makes sense.
I got the answer wrong as well... so close yet so far. Good question.
Kev
August 3, 2010 at 2:20 am
Yeah thanks...
Now i got it...
Thanks for your reply..!!!
August 3, 2010 at 10:30 am
Yep. @@rowcount is a cruel mistress. I avoid her like a rash. 😀
August 3, 2010 at 3:01 pm
Nice question. Thanks.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 5, 2010 at 2:19 am
Nice question, but, if we run the given script, don't we have an error on this line ?
select @@rowcount-- check this one out
EuG
August 5, 2010 at 2:58 am
No.. i'm not getting any error..
are you??
Viewing 15 posts - 1 through 15 (of 23 total)
You must be logged in to reply to this topic. Login to reply