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 the difference between a constant and a static readonly field?
Why are local variables stored in stack?
Do unused Namespaces in c# affect run-time performance?
Can we have 2 main methods in c#?
wipro interview question on 28-Apr-10 1.what type of authentication used in web service, 2.what are type of multithreding ? 3.diff bet delegate and multithreading? 4.how to write update query trigger in stored procedure. 5. if you are so sharp then what happens when you click .net appln exe in system,who CLR get loaded. 6.how to use work flown in application. 7.what is main purpose of script manager. 8.how u handle cretical transaction. 9.how you syncronize the method from no of user, 10.how change name of shared assambly
Can we return two values from a function?
What is the difference between early binding and late binding in c#?
Any exceptions are there which are not caught by any catch blocks? what are they?
If you define integer variable and a object variable and a structure then how those will be plotted in memory ?
Is a dll an assembly?
What is a dbml?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?