Click to See Complete Forum and Search --> : auto increment


vin
July 19th, 2000, 02:26 AM
Hi,
Can anyone tell me how can I set autoincrement field via SQL Statement or ADO.

Thanks

Lothar Haensler
July 19th, 2000, 02:33 AM
in SQL server, you can use the
SET IDENTITY_INSERT tablename ON|OFF
statement.
It allows explicit values to be inserted into an indentity column.

vin
July 19th, 2000, 03:39 AM
Thanks Lothar!

You keep these forums alive.

July 20th, 2000, 09:03 AM
if you are using oracle then all you need to do is create a sequence and say in you sequel insert statement to geta an auto incremented value each time you insert a data in the columm...

July 20th, 2000, 09:05 AM
if you are using oracle then all you need to do is create a sequence and say<> in you sequel insert statement to geta an auto incremented value each time you insert a data in the columm...