Click here to Skip to main content
15,914,289 members
Home / Discussions / Database
   

Database

 
GeneralRe: How i can write query return the douplicate record with deffrint IDs ?! [modified] Pin
Blue_Boy7-Dec-09 2:43
Blue_Boy7-Dec-09 2:43 
AnswerRe: How i can write query return the douplicate record with deffrint IDs ?! Pin
Niladri_Biswas7-Dec-09 17:33
Niladri_Biswas7-Dec-09 17:33 
QuestionValidation Rule In SQL Server 2005 Pin
hussain.attiya6-Dec-09 21:09
hussain.attiya6-Dec-09 21:09 
AnswerRe: Validation Rule In SQL Server 2005 Pin
dan!sh 6-Dec-09 21:50
professional dan!sh 6-Dec-09 21:50 
GeneralRe: Validation Rule In SQL Server 2005 Pin
hussain.attiya6-Dec-09 21:59
hussain.attiya6-Dec-09 21:59 
AnswerRe: Validation Rule In SQL Server 2005 Pin
Mycroft Holmes6-Dec-09 22:36
professionalMycroft Holmes6-Dec-09 22:36 
GeneralRe: Validation Rule In SQL Server 2005 Pin
hussain.attiya6-Dec-09 23:02
hussain.attiya6-Dec-09 23:02 
GeneralRe: Validation Rule In SQL Server 2005 Pin
Mycroft Holmes6-Dec-09 23:50
professionalMycroft Holmes6-Dec-09 23:50 
Yah, I opened my (big mouth) reply before you had replied, got delayed and posted after you.

What you are doing is correct and is the reason constraints are in the database, if you were doing this as the primary validation my argument would apply. The additional elements you raise are all valid and should be used for a well designed database, what you cannot do is expect and error.

With a FK if you decided to try and write the record and trap the error for a FK violation as the primary validation it would be wrong. Having the FK to enforce data integrity is absolutely valid.

Never underestimate the power of human stupidity
RAH

AnswerRe: Validation Rule In SQL Server 2005 Pin
puri keemti7-Dec-09 1:04
puri keemti7-Dec-09 1:04 
AnswerRe: Validation Rule In SQL Server 2005 Pin
Niladri_Biswas7-Dec-09 17:42
Niladri_Biswas7-Dec-09 17:42 
QuestionCustom sort in SQL Server Pin
Ma tju6-Dec-09 18:36
Ma tju6-Dec-09 18:36 
AnswerRe: Custom sort in SQL Server Pin
Mycroft Holmes6-Dec-09 18:42
professionalMycroft Holmes6-Dec-09 18:42 
GeneralRe: Custom sort in SQL Server Pin
Ma tju6-Dec-09 18:48
Ma tju6-Dec-09 18:48 
AnswerRe: Custom sort in SQL Server Pin
Shameel6-Dec-09 23:37
professionalShameel6-Dec-09 23:37 
GeneralRe: Custom sort in SQL Server Pin
Mycroft Holmes7-Dec-09 0:07
professionalMycroft Holmes7-Dec-09 0:07 
GeneralRe: Custom sort in SQL Server Pin
Shameel7-Dec-09 6:57
professionalShameel7-Dec-09 6:57 
GeneralRe: Custom sort in SQL Server Pin
Ma tju7-Dec-09 14:31
Ma tju7-Dec-09 14:31 
AnswerRe: Custom sort in SQL Server Pin
Niladri_Biswas7-Dec-09 17:51
Niladri_Biswas7-Dec-09 17:51 
QuestionImport data from Xml to Sql in vs2003 Pin
<<Tash18>>6-Dec-09 17:12
<<Tash18>>6-Dec-09 17:12 
AnswerRe: Import data from Xml to Sql in vs2003 Pin
Mycroft Holmes6-Dec-09 18:39
professionalMycroft Holmes6-Dec-09 18:39 
GeneralRe: Import data from Xml to Sql in vs2003 Pin
<<Tash18>>6-Dec-09 18:45
<<Tash18>>6-Dec-09 18:45 
GeneralRe: Import data from Xml to Sql in vs2003 Pin
Mycroft Holmes7-Dec-09 0:11
professionalMycroft Holmes7-Dec-09 0:11 
GeneralRe: Import data from Xml to Sql in vs2003 Pin
<<Tash18>>7-Dec-09 1:15
<<Tash18>>7-Dec-09 1:15 
GeneralRe: Import data from Xml to Sql in vs2003 Pin
Mycroft Holmes7-Dec-09 13:16
professionalMycroft Holmes7-Dec-09 13:16 
Question(Reporting Services) windows services Pin
Jassim Rahma5-Dec-09 20:59
Jassim Rahma5-Dec-09 20:59 

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.