Answer Posted / kiran vaidya
There is a separate class provided by .Net framework to
handle sql exceptions (errors).
try
{
.......
//Sql Operations
.......
}
catch(SqlException e)
{
//You can have all details of your sql exception by
//the object e.
}
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is strongly typed in c#?
What is the namespace for the thread class?
Explain the 3 types of properties in c# with an example?
How do you specify a custom attribute for the entire assembly?
What is generic types in c#?
Is null == null c#?
What is difference between yielding and sleeping?
How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?
What I can do with c#?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
Explain how do I convert a string to an int in c#?
What is the use of console readkey ()?
Can you create an instance of a static class?
Explain the difference between abstract class and interface in .net?
What are the extension methods in c#?