Click here to Skip to main content
16,005,236 members
Home / Discussions / Database
   

Database

 
GeneralDataSet 2 Xml - element order problem Pin
Xabatcha29-Nov-04 3:18
Xabatcha29-Nov-04 3:18 
QuestionOREIGN KEY REFERENCES? Pin
HahnTech28-Nov-04 12:42
HahnTech28-Nov-04 12:42 
AnswerRe: OREIGN KEY REFERENCES? Pin
Christian Graus28-Nov-04 13:46
protectorChristian Graus28-Nov-04 13:46 
GeneralRe: OREIGN KEY REFERENCES? Pin
HahnTech28-Nov-04 14:54
HahnTech28-Nov-04 14:54 
GeneralRe: OREIGN KEY REFERENCES? Pin
Christian Graus28-Nov-04 18:13
protectorChristian Graus28-Nov-04 18:13 
GeneralRe: OREIGN KEY REFERENCES? Pin
Edbert P28-Nov-04 18:44
Edbert P28-Nov-04 18:44 
GeneralRe: OREIGN KEY REFERENCES? Pin
HahnTech28-Nov-04 23:23
HahnTech28-Nov-04 23:23 
AnswerRe: OREIGN KEY REFERENCES? Pin
Mike Dimmick29-Nov-04 1:00
Mike Dimmick29-Nov-04 1:00 
Instead of stating FOREIGN KEY after the column, you must state it as a separate constraint at the end. You need to say:
CREATE TABLE ThatTable
(
   Field_A varchar(25) not null,
   Field_B varchar(25) not null,
   Field_C varchar(25) not null,
   MoreFields varchar(25)
   CONSTRAINT FK_ThatTable_ThisTable
   FOREIGN KEY (Field_A, Field_B, Field_C) 
     REFERENCES ThisTable (Field_A, Field_B, Field_C)
   /* any ON UPDATE, ON DELETE clauses here */
)
In the parentheses after FOREIGN KEY, state the columns in this table that make up the foreign key. After REFERENCES, put the table containing the corresponding key data and inside the parentheses the fields in that table that make up the referenced key data.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: OREIGN KEY REFERENCES? Pin
HahnTech29-Nov-04 12:00
HahnTech29-Nov-04 12:00 
AnswerRe: OREIGN KEY REFERENCES? Pin
Chris Meech29-Nov-04 7:16
Chris Meech29-Nov-04 7:16 
GeneralUpdate Statement Pin
jlawren728-Nov-04 12:28
jlawren728-Nov-04 12:28 
GeneralRe: Update Statement Pin
Christian Graus28-Nov-04 13:48
protectorChristian Graus28-Nov-04 13:48 
GeneralRe: Update Statement Pin
Edbert P28-Nov-04 18:39
Edbert P28-Nov-04 18:39 
GeneralRe: Update Statement Pin
jlawren729-Nov-04 1:39
jlawren729-Nov-04 1:39 
GeneralRe: Update Statement Pin
Luis Alonso Ramos29-Nov-04 10:03
Luis Alonso Ramos29-Nov-04 10:03 
GeneralOleDB and Excel !! Pin
fadee28-Nov-04 9:53
fadee28-Nov-04 9:53 
GeneralRecords are applied double Pin
realmontanakid27-Nov-04 1:39
realmontanakid27-Nov-04 1:39 
GeneralRe: Records are applied double Pin
Colin Angus Mackay27-Nov-04 14:49
Colin Angus Mackay27-Nov-04 14:49 
GeneralRe: Records are applied double Pin
realmontanakid29-Nov-04 11:07
realmontanakid29-Nov-04 11:07 
GeneralModifying a Column Pin
si_6926-Nov-04 4:09
si_6926-Nov-04 4:09 
GeneralRe: Modifying a Column Pin
Mike Dimmick26-Nov-04 4:43
Mike Dimmick26-Nov-04 4:43 
GeneralRe: Modifying a Column Pin
si_6926-Nov-04 4:56
si_6926-Nov-04 4:56 
QuestionCan anyone help me Pin
EshaKarthikeyan26-Nov-04 3:20
EshaKarthikeyan26-Nov-04 3:20 
AnswerRe: Can anyone help me Pin
David Salter26-Nov-04 4:50
David Salter26-Nov-04 4:50 
GeneralContents of TextBoxes assign to sqlString Pin
realmontanakid25-Nov-04 23:27
realmontanakid25-Nov-04 23:27 

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.