how to handle sql exceptions?

Answer Posted / ashish maurya

1)Using TRy,catch,finally block.
2)using @@Error just after DML statements.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What r the asp.net list controls and difference between them?

725


How to retrieve user name in case of Window Authentication?

475


Explain the various authentication mechanisms in asp.net.

697


What is event bubbling?

784


What are the different web pages?

660


What types of data validation events are commonly seen in the client-side form validation?

763


Which data type does the rangevalidator control support?

710


Why cyclomatic complexity is important?

753


Describe the difference between inline and code behind - which is best in?

733


What is the difference between web config and machine config files?

760


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

701


What’s the difference between asp.net web forms and asp.net mvc?

783


What are the asp.net server side objects?

701


How would you turn off cookies on a page of a website?

672


Which protocol is used to call web service?

733