|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello
I want to reset the indentity columns in a number of tables. They tables contain data and FK's. I have set updates to cascade to related tables. The DBCC CHECKIDENT ([table name], reseed, 1) does not seem to work. Is this because I have data in the tables or because of the FK constraints? Thanks in advance |
|
#2
|
||||
|
||||
|
I'm no DB2 expert, but I expect it's because you have records in the table.
wdn2k |
|
#3
|
|||
|
|||
|
indentity columns
hi,
Try the alter table tabname alter colname restart with somenum Regards, Ashish Vijaywargiya Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > Resetting an Auto-Increment Column |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|