Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Random Primary Keys

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-27 : 08:45:30
QBoid writes "Hi,

I am currently changing my database from Access 2000 to SQL 2000 but need to know how to have a primary key column that inserts random numbers rather than an increment of 1"

JustinBigelow
SQL Gigolo

1157 Posts

Posted - 2001-11-27 : 09:25:51
You can use the uniqueidentifier data type to insert a GUID (globally unique identifier) see BOL for more info.

Justin

Go to Top of Page
   

- Advertisement -