Click here to Skip to main content
15,887,349 members
Home / Discussions / Database
   

Database

 
AnswerRe: list all sql server running on a network Pin
abhinish11-Nov-05 21:23
abhinish11-Nov-05 21:23 
Questionsql back up advise Pin
Goodway8-Nov-05 4:36
Goodway8-Nov-05 4:36 
AnswerRe: sql back up advise Pin
Jon Sagara8-Nov-05 4:45
Jon Sagara8-Nov-05 4:45 
AnswerRe: sql back up advise Pin
Scott Serl9-Nov-05 6:14
Scott Serl9-Nov-05 6:14 
QuestionSQL & NaN's Pin
Gilad Kapelushnik8-Nov-05 2:52
Gilad Kapelushnik8-Nov-05 2:52 
QuestionReading records in Chunk Urgent Pin
behi20007-Nov-05 15:52
behi20007-Nov-05 15:52 
QuestionA couple of beginner questions Pin
matthias s.7-Nov-05 3:04
matthias s.7-Nov-05 3:04 
AnswerRe: A couple of beginner questions Pin
Daniel Santillanes8-Nov-05 13:16
professionalDaniel Santillanes8-Nov-05 13:16 
matthias s. wrote:
how will I go upon deleting a country record? do I necessarily have to do that within a transaction?


I can't answer this one Sigh | :sigh: .

matthias s. wrote:
shall I use the "Force relationship for INSERT and UPDATE(s)?" (roughly translated from the enterprise manager)


Well, you need a country to exist or not? if you do need the country to exist then...


matthias s. wrote:
shall I use the CASCADE options?


Most certainly, countries won't be disappearing anytime soon (I hope Dead | X| ) but in terms of programming, how important is it that you delete 50 cities if you try to delete a country? I think it's probably more important that you keep those cities. Imagine 400 records related to those cities being deleted as well Sigh | :sigh: .

matthias s. wrote:
and, If I use those options, how will they affect inserting, updating and deleting.


Well, using enforcement of relationship will ensure inserts and updates have valid values for countryID. Deleting a country can have a serious impact on the infromation, as I stated above, is it ok for you to delete 50 cities because you delete a country? is that a good idea? you need to ask that yourself.

I think it's good practice to define relationships (the most important being enforce relationship for inserts and updates) because this makes programming easier. Cascade Delete... be very careful with this one, think if it's appropiate or not to remove information with this. Cascade Update doesn't affect much, specially if you use identity fields or GUID keys, you won't be needing this.

I just hope I don't make it more confusing OMG | :OMG: .

daniero

-- modified at 19:19 Tuesday 8th November, 2005
Questionhow can i connect MsAccess Pin
sheerprogrammer6-Nov-05 21:17
sheerprogrammer6-Nov-05 21:17 
Questionfull-text search help Pin
rockmouse6-Nov-05 17:27
rockmouse6-Nov-05 17:27 
QuestionHow to transform 3 Tables?? Pin
tbrake6-Nov-05 0:03
tbrake6-Nov-05 0:03 
QuestionTrain free @Microsoft Pin
vikas amin4-Nov-05 23:35
vikas amin4-Nov-05 23:35 
AnswerGet a life Pin
Rob Graham5-Nov-05 15:38
Rob Graham5-Nov-05 15:38 
GeneralRe: Get a life Pin
toxcct6-Nov-05 0:36
toxcct6-Nov-05 0:36 
Questionmetadata Pin
kittubond_0094-Nov-05 21:25
kittubond_0094-Nov-05 21:25 
AnswerRe: metadata Pin
André Ziegler4-Nov-05 23:53
André Ziegler4-Nov-05 23:53 
GeneralRe: metadata Pin
kittubond_0095-Nov-05 15:33
kittubond_0095-Nov-05 15:33 
QuestionSql Connection Pin
NormBohana4-Nov-05 14:04
NormBohana4-Nov-05 14:04 
AnswerRe: Sql Connection Pin
Rob Graham4-Nov-05 14:56
Rob Graham4-Nov-05 14:56 
GeneralRe: Sql Connection Pin
NormBohana4-Nov-05 15:03
NormBohana4-Nov-05 15:03 
Questionaccess to MSsql pubs data from vc6.0 Pin
markoot4-Nov-05 8:31
markoot4-Nov-05 8:31 
AnswerRe: access to MSsql pubs data from vc6.0 Pin
markoot4-Nov-05 10:55
markoot4-Nov-05 10:55 
Questionsp procedure Help!!! Pin
Petdav4-Nov-05 4:24
Petdav4-Nov-05 4:24 
AnswerRe: sp procedure Help!!! Pin
Rob Graham4-Nov-05 15:10
Rob Graham4-Nov-05 15:10 
Questionsp Help!!! Pin
Petdav4-Nov-05 4:20
Petdav4-Nov-05 4:20 

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.