Click here to Skip to main content
16,011,508 members
Home / Discussions / Database
   

Database

 
GeneralStored Procedures Pin
SamirSood4-Oct-02 5:21
SamirSood4-Oct-02 5:21 
GeneralRe: Stored Procedures Pin
Paul Watson4-Oct-02 12:30
sitebuilderPaul Watson4-Oct-02 12:30 
GeneralSQL WHERE Clause in MS Access and SQL Server Pin
Hannover Fist3-Oct-02 3:07
Hannover Fist3-Oct-02 3:07 
GeneralRe: SQL WHERE Clause in MS Access and SQL Server Pin
Marc Clifton3-Oct-02 5:04
mvaMarc Clifton3-Oct-02 5:04 
GeneralRe: SQL WHERE Clause in MS Access and SQL Server Pin
David Salter4-Oct-02 1:03
David Salter4-Oct-02 1:03 
GeneralRe: SQL WHERE Clause in MS Access and SQL Server Pin
Hannover Fist4-Oct-02 6:21
Hannover Fist4-Oct-02 6:21 
GeneralSQL Delete problem Pin
Perica Zivkovic1-Oct-02 22:56
Perica Zivkovic1-Oct-02 22:56 
GeneralRe: SQL Delete problem Pin
Marc Clifton2-Oct-02 1:26
mvaMarc Clifton2-Oct-02 1:26 
You need to set up a foreign key with cascading deletes. t1_id is the primary key, t2_t1_id is a foriegn key referencing table t1, field t1_id. In the foreign key you can tell it that whenever you delete rows in t1, to "cascade" those deletes to any rows in t2 that reference the deleted rows in t1. Then, all you do is "delete from t1 where...".

Hope that helps! BTW, this is why it's nice to use an abstract key like an ID, instead of a meaningful field, say, a part number. Assume your primary key was a part number. If the user wants to change the part number, you'd have to go through a lot of consternation when the foreign key association breaks. This is why there's now something called "cascade updates" too! (us old timers, ha, ha, ha) didn't have that capability in older databases.

Marc

GeneralMSADO15.DLL (Minimal setup) Pin
ssirisha1-Oct-02 9:43
ssirisha1-Oct-02 9:43 
GeneralRe: MSADO15.DLL (Minimal setup) Pin
Jon Hulatt1-Oct-02 22:05
Jon Hulatt1-Oct-02 22:05 
GeneralBulk Copy (Suggestions Please ?) Pin
ssirisha30-Sep-02 10:43
ssirisha30-Sep-02 10:43 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
Ed Gadziemski1-Oct-02 3:54
professionalEd Gadziemski1-Oct-02 3:54 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
ssirisha1-Oct-02 4:39
ssirisha1-Oct-02 4:39 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
Ed Gadziemski2-Oct-02 5:24
professionalEd Gadziemski2-Oct-02 5:24 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
Jon Hulatt2-Oct-02 5:27
Jon Hulatt2-Oct-02 5:27 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
Paul Riley2-Oct-02 5:54
Paul Riley2-Oct-02 5:54 
GeneralRe: Bulk Copy (Suggestions Please ?) Pin
Ed Gadziemski3-Oct-02 3:43
professionalEd Gadziemski3-Oct-02 3:43 
QuestionpRecordSet->PutMaxRecords(10); Doesnot work ? Pin
ssirisha30-Sep-02 1:58
ssirisha30-Sep-02 1:58 
AnswerRe: pRecordSet->PutMaxRecords(10); Doesnot work ? Pin
Nick Parker30-Sep-02 7:39
protectorNick Parker30-Sep-02 7:39 
GeneralRe: pRecordSet->PutMaxRecords(10); Doesnot work ? Pin
ssirisha30-Sep-02 9:40
ssirisha30-Sep-02 9:40 
Questionwhich DB option? Pin
bryce29-Sep-02 23:48
bryce29-Sep-02 23:48 
GeneralRemove Transaction Log in SQL Server Pin
fat88829-Sep-02 3:26
fat88829-Sep-02 3:26 
GeneralRe: Remove Transaction Log in SQL Server Pin
Juergen Froehlich29-Sep-02 8:11
Juergen Froehlich29-Sep-02 8:11 
GeneralRe: Remove Transaction Log in SQL Server Pin
Daniel Turini30-Sep-02 2:39
Daniel Turini30-Sep-02 2:39 
GeneralDateTime casting Pin
Majid Shahabfar29-Sep-02 1:38
Majid Shahabfar29-Sep-02 1:38 

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.