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

C#

 
GeneralRe: giving error message according to Sql data Pin
T M Gray8-Dec-10 9:00
T M Gray8-Dec-10 9:00 
GeneralRe: giving error message according to Sql data Pin
Dave Kreskowiak8-Dec-10 10:56
mveDave Kreskowiak8-Dec-10 10:56 
GeneralRe: giving error message according to Sql data Pin
AspDotNetDev8-Dec-10 11:58
protectorAspDotNetDev8-Dec-10 11:58 
GeneralRe: giving error message according to Sql data Pin
Dave Kreskowiak9-Dec-10 2:01
mveDave Kreskowiak9-Dec-10 2:01 
GeneralRe: giving error message according to Sql data PinPopular
Eddy Vluggen8-Dec-10 9:32
professionalEddy Vluggen8-Dec-10 9:32 
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 
Mark Nischalke wrote:
Not slowing it down.


Yes, slowing it down.

<Whoops, I hit post prematurely>

GUI.DoesTheKeyAlreadyExist?
BL.DoesTheKeyAlreadyExist?
API.DoesTheKeyAlreadyExist?
DAL.DoesTheKeyAlreadyExist?
SP.DoesTheKeyAlreadyExist?
DB.DoesTheKeyAlreadyExist?

How many times are you going to check the same darn thing when no problem exists? A duplicate key is an exceptional situation, whether you can test it or not.

Consider database round-trips to be very expensive.


</Whoops, I hit post prematurely>


Mark Nischalke wrote:
If the key already exists return something like false


How do I know false means duplicate rather than timeout or a referential integrity violation?
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 
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 

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.