rowguid

  • Thread starter Thread starter Victor
  • Start date Start date
V

Victor

hi guys
just want know, if is that rowguid field must be unique in the whole
database? can i get the rowguid from one table then insert into another
table?
 
The unqiueness is generally by table and not by database.
 
If the guids are create via CoCreateGuid or similar algorithm, shouldn't
they be *globally* unique?
 
the guid is generated by the newid() function in the sqlce. and will be used
in the repulication as the rowguid column. in that case, can i still use
this guid as a primary key for another table?

cheers
 
acutally to resolve this problem, i create another column as rowguid, just
feel strange why this happen... want to know whether the rowguid for
replication is unique in the whole database

cheers
 
Victor said:
acutally to resolve this problem, i create another column as rowguid, just
feel strange why this happen... want to know whether the rowguid for
replication is unique in the whole database
I don't see why it shouldn't, but that's my opinion.
 
I believe you confused it with IDENTITY column. But a ROWGUIDCOL from
the definitition is Globally Unique IDentifier and should be unique for
all tables in all databases within the same device.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top