Click here to Skip to main content
15,890,932 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionSQL Server to .Net error handling Pin
julian@giant4-Sep-14 0:15
julian@giant4-Sep-14 0:15 
AnswerRe: SQL Server to .Net error handling Pin
Eddy Vluggen4-Sep-14 0:33
professionalEddy Vluggen4-Sep-14 0:33 
GeneralRe: SQL Server to .Net error handling Pin
julian@giant4-Sep-14 0:36
julian@giant4-Sep-14 0:36 
GeneralRe: SQL Server to .Net error handling Pin
Eddy Vluggen4-Sep-14 9:56
professionalEddy Vluggen4-Sep-14 9:56 
GeneralRe: SQL Server to .Net error handling Pin
julian@giant4-Sep-14 23:11
julian@giant4-Sep-14 23:11 
AnswerRe: SQL Server to .Net error handling Pin
Richard Deeming4-Sep-14 1:29
mveRichard Deeming4-Sep-14 1:29 
GeneralRe: SQL Server to .Net error handling Pin
julian@giant4-Sep-14 2:21
julian@giant4-Sep-14 2:21 
AnswerRe: SQL Server to .Net error handling Pin
jschell5-Sep-14 10:19
jschell5-Sep-14 10:19 
julian@giant wrote:
acceptable to leave any error handling to the calling code


No. Not in anything non-trivial.

I always write database layers. That layer should handle 'sql' errors. That layer should also be constructed in such a way that it is mindful of potential system errors. For example a user client application might want to tell the user that the server 'was down' by catching appropriate SQL Exceptions and determining that. For certain errors it should log information and then tell the user to 'contact an administrator'.

This layer would also be unit tested independent from the rest of the application (regardless what sort of app it is.)
GeneralRe: SQL Server to .Net error handling Pin
julian@giant7-Sep-14 22:46
julian@giant7-Sep-14 22:46 
QuestionDisaster Recovery for web services Pin
low19886-Aug-14 6:16
low19886-Aug-14 6:16 
AnswerRe: Disaster Recovery for web services Pin
jschell10-Aug-14 7:26
jschell10-Aug-14 7:26 
AnswerRe: Disaster Recovery for web services Pin
Swinkaran10-Aug-14 23:25
professionalSwinkaran10-Aug-14 23:25 
AnswerRe: Disaster Recovery for web services Pin
Duncan Edwards Jones26-Aug-14 23:16
professionalDuncan Edwards Jones26-Aug-14 23:16 
QuestionWhat is the goal of Entity Framework? Pin
Bastien Vandamme31-Jul-14 17:25
Bastien Vandamme31-Jul-14 17:25 
AnswerRe: What is the goal of Entity Framework? Pin
Pete O'Hanlon31-Jul-14 20:16
mvePete O'Hanlon31-Jul-14 20:16 
AnswerRe: What is the goal of Entity Framework? Pin
Rowdy Raider6-Aug-14 7:09
Rowdy Raider6-Aug-14 7:09 
AnswerRe: What is the goal of Entity Framework? PinPopular
Duncan Edwards Jones26-Aug-14 1:18
professionalDuncan Edwards Jones26-Aug-14 1:18 
GeneralRe: What is the goal of Entity Framework? Pin
Eddy Vluggen26-Aug-14 3:01
professionalEddy Vluggen26-Aug-14 3:01 
GeneralRe: What is the goal of Entity Framework? Pin
Duncan Edwards Jones26-Aug-14 3:06
professionalDuncan Edwards Jones26-Aug-14 3:06 
QuestionDirectory Monitor -> Launch a Script/Program Design Question? Pin
Kirk 1038982130-Jul-14 4:19
Kirk 1038982130-Jul-14 4:19 
AnswerRe: Directory Monitor -> Launch a Script/Program Design Question? Pin
Bernhard Hiller30-Jul-14 20:47
Bernhard Hiller30-Jul-14 20:47 
GeneralRe: Directory Monitor -> Launch a Script/Program Design Question? Pin
Kirk 1038982131-Jul-14 6:59
Kirk 1038982131-Jul-14 6:59 
AnswerRe: Directory Monitor -> Launch a Script/Program Design Question? Pin
Richard Andrew x6431-Jul-14 8:47
professionalRichard Andrew x6431-Jul-14 8:47 
AnswerRe: Directory Monitor -> Launch a Script/Program Design Question? Pin
jschell31-Jul-14 9:40
jschell31-Jul-14 9:40 
Questionwhat is actual in business layer ? Pin
Dj@y29-Jul-14 20:58
professionalDj@y29-Jul-14 20:58 

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.