« first day  last day (15 days later) » 

9:54 AM
Couple of things
a) Sorry for the late reply
b) Thanks for taking the time, much appreciated
Although I don't mind moving the logic back to C#, well actually I do mind c'os it means quite a bit of re factoring, but before getting into that I really wanna know if it's a bug, poor documentation or something that I'm doing wrong
I've enabled desktop notification in case you come back to this....
again, thanks
 
10:25 AM
hi
the room is not empty :)
 
11:11 AM
@Sacrilege, back in the room if you want to talk
 
 
5 hours later…
4:26 PM
I don't think it's a bug. If I run the same code in management studio I get a message indicating how many records were "affected" even though a rollback occurred. I would lean more towards the documentation being incorrect.
What version of the framework are you using by the way?
 
Hi, I'm using 4.0
I was vaguely hopeful that it was a configuration problem or something
but as days go by I coming to terms that MS messed up
 
Another option for refactoring this would be to use ExecuteScalar on the command object instead and select the appropriate record count in the sproc. I.E. track the rows affected and if you commit the transaction then select that value otherwise select -1.
I'm on 4.5 here. The documentation has been the same since 1.1 so I wonder if it worked this way once upon a time.
I find it hard to believe that no one else has spoken up about this until now.
 
same here
back in a couple of minutes
I've been using this for a while.. and all the unit testing has been focused on exceptions (which as you would expect returns -1)
so it really took by surprise when I noticed this.
 

« first day  last day (15 days later) »