Click here to Skip to main content
15,919,245 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 
Hi. A general question I wanted to ask someone. Thought here would be a good place.

For Stored Procedures (SP's) in a SQL Server Database would you consider it acceptable to leave any error handling to the calling code (i.e. caught in an exception handler in the .Net code), and just check the number of records affected in the .Net code too, for extra validation.

Rather than, handling errors in the SP's and returning a value indicating things like no. of records affected and whether an error occurred whilst trying to execute the procedure.

I'd like to keep the SP's as simple as possible, and handle problems at the code end as it seems easier to do that. But not sure if we're missing a trick with any error handling by the SP's?

Hope I've made myself clear.

Thoughts?

Thanks

J
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 
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.