TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Andile Choko
NA
53
54.2k
How to save a foreign key to another table
Jun 27 2011 5:55 AM
Dear programmers;
I have the follwing:
Create table CHILD
(
UNIQUEIDENTIFIER CID PRIMARY KEY,
fNAME VARCHAR(25),
LNAME VARCHAR(50),
)
Create table Parent
(
UNIQUEIDENTIFIER PARID PRIMARY KEY,
fNAME VARCHAR(25),
LNAME VARCHAR(50),
UNIQUEIDENTIFIER CID FOREIGN KEY REFERENCES(cHILD) CID
)
i have details of a parent and that of the parent's child.
need to save the PK of the child table into the parent table.
the input( details) come from a windows form application
How do i achieve this USING STORED PROCEDURES ?
Reply
Answers (
2
)
How to add different user with different permission for the Database
Sql server 2008 R2 Automatically stopped