Identity/Seed Values
From: Joe Williams (joe_at_anywhere.com)
Date: 02/21/05
- Next message: Andrew J. Kelly: "Re: Getdate"
- Previous message: Bernie Beattie: "RE: Error 242 select with date conditions now failing"
- Next in thread: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: Mike Epprecht (SQL MVP): "RE: Identity/Seed Values"
- Reply: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: David Portas: "RE: Identity/Seed Values"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Feb 2005 09:48:15 -0500
I have a question regarding using the Identity/Seed values. I have migrated
a number of tables form Access to SQL. In Access the identity/seed values
were called autonumbers.
The big problem with autonumbers in Access was that they could change at any
time on you, getting renumbered or sometimes even becoming negative values,
etc.
Now, in my application I have need for a unique number as the primary key AS
LONG AS THE NUMBER WILL NOT CHANGE IN THE FUTURE. I do not need it to be
formatted a special way, I do not need it to be sequential, etc. But I do
need it to stay the same after it has been entered.
So, my question is this: I know in Access i could not rely on the autonumber
to stay the same. Does the identity/seed value propoerties of a SQL table
have this same issue? Or can I plan on this value staying the same over
time?
Thanks
Joe
- Next message: Andrew J. Kelly: "Re: Getdate"
- Previous message: Bernie Beattie: "RE: Error 242 select with date conditions now failing"
- Next in thread: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: Mike Epprecht (SQL MVP): "RE: Identity/Seed Values"
- Reply: JohnnyAppleseed: "Re: Identity/Seed Values"
- Reply: David Portas: "RE: Identity/Seed Values"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|