Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
GeneralRe: giving error message according to Sql data Pin
PIEBALDconsult8-Dec-10 14:28
mvePIEBALDconsult8-Dec-10 14:28 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 15:22
mentorNot Active8-Dec-10 15:22 
GeneralRe: giving error message according to Sql data Pin
PIEBALDconsult8-Dec-10 15:39
mvePIEBALDconsult8-Dec-10 15:39 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 16:12
mentorNot Active8-Dec-10 16:12 
GeneralRe: giving error message according to Sql data Pin
Gary Wheeler8-Dec-10 9:38
Gary Wheeler8-Dec-10 9:38 
GeneralRe: giving error message according to Sql data Pin
Keith Barrow8-Dec-10 10:43
professionalKeith Barrow8-Dec-10 10:43 
GeneralRe: giving error message according to Sql data Pin
Gary Wheeler8-Dec-10 10:45
Gary Wheeler8-Dec-10 10:45 
GeneralRe: giving error message according to Sql data Pin
Keith Barrow8-Dec-10 10:59
professionalKeith Barrow8-Dec-10 10:59 
Just being awkward really Smile | :)

As you say, whatever the code, the SQL hit is going to be the worst and swamp everything else. I agree with Mark's initial thoughts, you should avoid raising exceptions in the first place for the most part, but wouldn't vomit at the try/catch either ( I would avoid a re-throw though).
The one thing I don't think should enter the equation is the performance (ironically, given my post), until it is known that it will adversely impact the system. Early optimisation wrecks good clean code. If there are problems, they are likely to involve a small proportion of the code, which should be optimised as fully as possible. That's my hapney'sworth anyway.

GeneralRe: giving error message according to Sql data Pin
PIEBALDconsult8-Dec-10 15:56
mvePIEBALDconsult8-Dec-10 15:56 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 16:18
mentorNot Active8-Dec-10 16:18 
GeneralRe: giving error message according to Sql data PinPopular
Nish Nishant8-Dec-10 9:19
sitebuilderNish Nishant8-Dec-10 9:19 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 9:26
mentorNot Active8-Dec-10 9:26 
GeneralRe: giving error message according to Sql data PinPopular
Nish Nishant8-Dec-10 9:35
sitebuilderNish Nishant8-Dec-10 9:35 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 9:37
mentorNot Active8-Dec-10 9:37 
GeneralRe: giving error message according to Sql data Pin
Nish Nishant8-Dec-10 9:41
sitebuilderNish Nishant8-Dec-10 9:41 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 9:57
mentorNot Active8-Dec-10 9:57 
GeneralRe: giving error message according to Sql data Pin
Nish Nishant8-Dec-10 9:59
sitebuilderNish Nishant8-Dec-10 9:59 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 10:05
mentorNot Active8-Dec-10 10:05 
GeneralRe: giving error message according to Sql data Pin
Nish Nishant9-Dec-10 6:29
sitebuilderNish Nishant9-Dec-10 6:29 
GeneralRe: giving error message according to Sql data Pin
Nagy Vilmos8-Dec-10 9:47
professionalNagy Vilmos8-Dec-10 9:47 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 10:04
mentorNot Active8-Dec-10 10:04 
GeneralRe: giving error message according to Sql data Pin
PIEBALDconsult8-Dec-10 16:12
mvePIEBALDconsult8-Dec-10 16:12 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 16:21
mentorNot Active8-Dec-10 16:21 
GeneralRe: giving error message according to Sql data Pin
Eddy Vluggen8-Dec-10 9:37
professionalEddy Vluggen8-Dec-10 9:37 
GeneralRe: giving error message according to Sql data Pin
Not Active8-Dec-10 9:41
mentorNot Active8-Dec-10 9:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.