how to handle sql exceptions?
Answers were Sorted based on User's Feedback
Answer / gomathi
Sql exception can be handled through try,catch and finally
block.
| Is This Answer Correct ? | 35 Yes | 2 No |
Answer / minhajul islam
using try block we can trap the error as follows
try
{
//Datanase coding
}
catch(SQLException e1)
{
//Here you will get SQL Error message in e1 instance
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashish maurya
1)Using TRy,catch,finally block.
2)using @@Error just after DML statements.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many types of file extensions for razor views in ASP.Net MVC?
Explain the main differences between asp and asp.net?
What is data caching?
Explain file-based dependency and key-based dependency.
.Net Doesn't offer Deterministic Distruction ? a) True b) False
Difference between ASP & ASP.NET Session State
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????
difference between caching objects in session objects?
what are webservices?In which circumstances we can go for webservices?
What is the use of web.config file?
Types of authentications in ASP.NET ?
9 Answers Accenture, Roland, Shriram,
why many web.config files are used in are project
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)