|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
updating a field with an auto-seed
Hello
I have a table with 300 records in it. I have a field called Loc_ID that will be my primary key. There are other fields in the table that have data in them. Since my table is already in alpha order, is there a way I can update my Loc_ID field with the auto numbers? sanctos |
|
#2
|
||||
|
||||
|
try changing the Loc_ID field to an identity data type.
|
|
#3
|
|||
|
|||
|
I wasn't clear so I apologize. I am using SQL Server, so which datatype would it be? I can't use the UniqueIdentifier datatype.
|
|
#4
|
||||
|
||||
|
Sorry, It's an int data type, and set the Identity property to Yes.
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > updating a field with an auto-seed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|