Re: Generate Random Primary Key
From: David Portas (REMOVE_BEFORE_REPLYING_dportas_at_acm.org)
Date: 06/04/04
- Next message: Wayne Snyder: "Re: Help on Query Force..."
- Previous message: Roji. P. Thomas: "Re: Newbie: Need quick education on how my SP is working..or not!"
- In reply to: R. Paardekam: "Generate Random Primary Key"
- Next in thread: R. Paardekam: "Re: Generate Random Primary Key"
- Reply: R. Paardekam: "Re: Generate Random Primary Key"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Jun 2004 13:36:02 +0100
If the values exceed the maximum for the column then you can widen the
column by making it a BIGINT or NUMERIC. If the column has a Primary Key
constraint then you'll need to drop it first and redeclare it afterwards.
That should be easier than trying to generate random keys.
-- David Portas SQL Server MVP --
- Next message: Wayne Snyder: "Re: Help on Query Force..."
- Previous message: Roji. P. Thomas: "Re: Newbie: Need quick education on how my SP is working..or not!"
- In reply to: R. Paardekam: "Generate Random Primary Key"
- Next in thread: R. Paardekam: "Re: Generate Random Primary Key"
- Reply: R. Paardekam: "Re: Generate Random Primary Key"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|