Click here to Skip to main content
15,891,136 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Need help Pin
Eddy Vluggen10-Sep-14 0:23
professionalEddy Vluggen10-Sep-14 0:23 
AnswerRe: Need help Pin
Ganesh KP13-Sep-14 21:48
professionalGanesh KP13-Sep-14 21:48 
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 
An error handler in the calling code is better IMHO. That way, nobody can forget to check the return value to see whether or not the call succeeded.

However, if your SQL code is using a resource that needs to be cleaned up (a cursor, an ActiveX object, a prepared XML document, an app-lock, etc.), then it should include code to clean up after itself before it exits. Unfortunately, SQL's TRY...CATCH block doesn't include a FINALLY clause, so you'll need to duplicate the cleanup code in both blocks.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 

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.