Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Design Question Pin
Mycroft Holmes10-Jul-13 17:16
professionalMycroft Holmes10-Jul-13 17:16 
GeneralRe: Design Question Pin
Kevin Marois10-Jul-13 17:31
professionalKevin Marois10-Jul-13 17:31 
GeneralRe: Design Question Pin
Mycroft Holmes10-Jul-13 18:22
professionalMycroft Holmes10-Jul-13 18:22 
GeneralRe: Design Question Pin
Kevin Marois10-Jul-13 18:58
professionalKevin Marois10-Jul-13 18:58 
GeneralRe: Design Question Pin
Mycroft Holmes10-Jul-13 19:34
professionalMycroft Holmes10-Jul-13 19:34 
GeneralRe: Design Question Pin
Kevin Marois10-Jul-13 19:57
professionalKevin Marois10-Jul-13 19:57 
GeneralRe: Design Question Pin
Freak3010-Jul-13 21:23
Freak3010-Jul-13 21:23 
GeneralRe: Design Question Pin
jschell11-Jul-13 8:47
jschell11-Jul-13 8:47 
Mycroft Holmes wrote:
Here is one reason I ALWAYS use a stored proc, the delete procedure check the FK


Then you must work in an unusual environment.

Normally the applications that are in use (the code external to the database) should present the requests that even allow that situation.

Thus checking the FK first every time is a waste of bandwidth and adds nothing but complexity.
And allowing the exception in such cases is quite appropriate.


Mycroft Holmes wrote:
and only deletes the record if there is no constraint.


But presumably it does in fact still throw an error. If the caller is attempting to delete something and it does not in fact get deleted but still exists then the caller must be told that it did not get deleted. It cannot appear as though it did.
GeneralRe: Design Question Pin
Mycroft Holmes11-Jul-13 12:50
professionalMycroft Holmes11-Jul-13 12:50 
AnswerRe: Design Question Pin
Keith Barrow10-Jul-13 22:38
professionalKeith Barrow10-Jul-13 22:38 
AnswerRe: Design Question Pin
Pete O'Hanlon10-Jul-13 23:51
mvePete O'Hanlon10-Jul-13 23:51 
GeneralRe: Design Question Pin
Keith Barrow11-Jul-13 1:45
professionalKeith Barrow11-Jul-13 1:45 
AnswerRe: Design Question Pin
Shameel11-Jul-13 1:06
professionalShameel11-Jul-13 1:06 
AnswerRe: Design Question Pin
jschell11-Jul-13 8:52
jschell11-Jul-13 8:52 
QuestionUSB drive detection for client-server in C#... Pin
Shibbi10-Jul-13 6:25
Shibbi10-Jul-13 6:25 
AnswerRe: USB drive detection for client-server in C#... PinPopular
NotPolitcallyCorrect10-Jul-13 6:43
NotPolitcallyCorrect10-Jul-13 6:43 
QuestionUSB drive detection for client-server in C# Pin
Shibbi10-Jul-13 6:23
Shibbi10-Jul-13 6:23 
Question.Net Mobile Computing Pin
sijimann10-Jul-13 0:58
sijimann10-Jul-13 0:58 
AnswerRe: .Net Mobile Computing Pin
eddieangel10-Jul-13 10:09
eddieangel10-Jul-13 10:09 
QuestionSqlCe setup issue in C# wpf Pin
McLux9-Jul-13 21:18
McLux9-Jul-13 21:18 
AnswerRe: SqlCe setup issue in C# wpf Pin
Mycroft Holmes9-Jul-13 22:52
professionalMycroft Holmes9-Jul-13 22:52 
GeneralRe: SqlCe setup issue in C# wpf Pin
McLux9-Jul-13 23:00
McLux9-Jul-13 23:00 
GeneralRe: SqlCe setup issue in C# wpf Pin
Mycroft Holmes9-Jul-13 23:04
professionalMycroft Holmes9-Jul-13 23:04 
QuestionSynchronization csv file to SQL Server 2008 R2 Database Pin
Uyen Nguyen Dinh9-Jul-13 18:42
Uyen Nguyen Dinh9-Jul-13 18:42 
AnswerRe: Synchronization csv file to SQL Server 2008 R2 Database Pin
Richard MacCutchan9-Jul-13 21:34
mveRichard MacCutchan9-Jul-13 21:34 

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.