Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

I am working on an application using .NET 2.0, SQL Server 2005. I am using Enterprise Library version 3.1.

To get rid off some performance issues, I want to set ARITHABORT to ON for a particular stored procedure. I do not want it to be at database level.
Is there any way we can set this through code (enterprise library data layer)? or in general, is there any way to set such session parameters through enterprise library data application block?

Any inputs on this are apprecited.

Thanks
Nyoti
Posted

1 solution

The just set it in that stored proc (don't forget to set it to off before the stored proc exits).
 
Share this answer
 
Comments
Nyoti Rukadikar 13-Sep-10 4:16am    
Will it have the same effect as calling it before the stored procedure is called?

Thanks
#realJSOP 14-Sep-10 12:08pm    
All of the examples I found on google (you know, that search engine YOU could have used yourself) only showed it being used in a stored proc. You voted a 3 on a correct answer?
Nyoti Rukadikar 17-Sep-10 7:33am    
Thanks. I found the same when I searched on google. But that did not answer my question asked here about how can I call it from enterprise library. That is why I posted my question on code project.
Thanks.
Nyoti Rukadikar 17-Sep-10 7:37am    
BTW, it did not have same effect as calling it before the stored procedure statement was called. So now I implemented my own code block to do this through enterprise library.

Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900