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

Database

 
GeneralRe: list all sql server running on a network Pin
Gavin Taylor9-Nov-05 2:06
professionalGavin Taylor9-Nov-05 2:06 
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 
Hi there,

I've got the following two tables:
<br />
CREATE TABLE [dbo].[Countries] (<br />
 [ID] [int] IDENTITY (1, 1) NOT NULL <br />
) ON [PRIMARY]<br />
GO<br />
ALTER TABLE [dbo].[Countries] WITH NOCHECK ADD <br />
 CONSTRAINT [PK_Countries] PRIMARY KEY  CLUSTERED <br />
 (<br />
  [ID]<br />
 )  ON [PRIMARY] <br />

and...
<br />
CREATE TABLE [dbo].[Cities] (<br />
 [ID] [int] IDENTITY (1, 1) NOT NULL ,<br />
 [CountryID] [int] NOT NULL <br />
) ON [PRIMARY]<br />
GO<br />
<br />
ALTER TABLE [dbo].[Cities] WITH NOCHECK ADD <br />
 CONSTRAINT [PK_Cities] PRIMARY KEY  CLUSTERED <br />
 (<br />
  [ID]<br />
 )  ON [PRIMARY] <br />


Now I'd like to establish a one to many relationship between them. I guess I know how to do that in the enterprise manager. My questions are as follows:

If I have a relationship between those tables:
- how will I go upon deleting a country record? do I necessarily have to do that within a transaction?
- shall I use the "Force relationship for INSERT and UPDATE(s)?" (roughly translated from the enterprise manager)
- shall I use the CASCADE options?
- and, If I use those options, how will they affect inserting, updating and deleting.

I know that my questions might be a bit vague. I've been trying to google for a primer on this but couldn't come up with something really helpful. I'd appreciated anyone shedding some light here. Thanks in advance!

/matthias


I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]

AnswerRe: A couple of beginner questions Pin
Daniel Santillanes8-Nov-05 13:16
professionalDaniel Santillanes8-Nov-05 13:16 
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 

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.