how to handle errors in sqlserver
Answer / 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 |
What is a static property. Give an example?
What are Sealed Classes in C#?
What?s the difference between an interface and abstract class?
What is parallel foreach in c#?
Can Any body send C Sharp latest interview questions to my mail id: alim.mtech@gmail.com.
List the difference between interface and abstract class?
What do you mean by directing?
i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?
How do I create a delegate/multicastdelegate?
What is the difference between struct and class in c#?
What is the use of "default" and "Using" keyword?
What is singleordefault?