Setting identity gap with select into  Displaying table-specific identity gap information

Chapter 8: Creating Databases and Tables

Changing the table-specific identity gap

To change the identity gap for a specific table, use sp_chgattribute:

sp_chgattribute "table_name", "identity_gap", set_number

where:

For example:

sp_chgattribute "mytable", "identity_gap", 20

To change mytable to use the identity burning set factor setting instead of the identity_gap setting, set identity_gap to 0:

sp_chgattribute "mytable", "identity_gap", 0




Copyright © 2005. Sybase Inc. All rights reserved. Displaying table-specific identity gap information

View this book as PDF