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
roy himanshu
NA
126
0
How to generate same uniqueidentifier for two deffrent tables?
Aug 29 2009 1:42 AM
Hi,
How to generate same uniqueidentifier for two deffrent tables?is it possible?it is primary key column.i paste my syntax here.plz give me correct syntax.plz.
CREATE
TABLE
Persons
(
ID
UNIQUEIDENTIFIER
DEFAULT
NEWID
()
PRIMARY
KEY
,
lastname
varchar
(
10
)
not
null,
firstname
varchar
(
10
),
)
GO
insert
into
Persons
values
(
newid
(),
'ravi'
,
'kumar'
)
Reply
Answers (
1
)
What is GUID in SQL 2005?
same uniqueidentifier