Profiel van JulianoJuliano [Knowledge is ev...Foto'sWeblogLijstenMeer ![]() | Help |
|
31 januari Executing a StoredProcedure in SqlDataSourceToday I came accross a problem at work, my SqlDataSource that uses a Stored Procedure to update some table data wasn't returning the number of affected rows, so my error handling wasn't working too, because it uses the number of affectes rows to check if the operations has been executed correctly.
I've made a search and found the solution. In my Stored Procedure I was using the SET NOCOUNT ON statement, but it prevents the return of the number of affected rows.
So the solution was simple, just take off the SET NOCOUNT ON statement, and everything worked without problems.
So, here is the tip. Simple, but useful if somebody have problemas like me.
See ya'. 29 januari First blog postHi,
My name is Juliano, I'm a Brazilian Microsoft Student Partner and this will be the english version of my blog.
My original (portuguese) blog is under the url: http://julianonetfox.spaces.live.com
And I'll try to post the english version of the posts that it has, as much as I can and using the english words that I know, because I'm not an expert yet.
But I ask you that if make any mistakes, please correct me (even with my english translations).
Thanks you all and I hope you like my english technical blog. |
|
|