rutgermons
asked on
nextval in sql server
folks
the function nextval,is it from oracle and what does it do? what is it in sql server?
rutger
the function nextval,is it from oracle and what does it do? what is it in sql server?
rutger
ASKER
anees
so with this example as you attached I now have a field called LocationsID with I want to populate the keys during my insert
what do I use
i.e insert into work(locationsID)values(?? ?????)
what must I call this field?
so with this example as you attached I now have a field called LocationsID with I want to populate the keys during my insert
what do I use
i.e insert into work(locationsID)values(??
what must I call this field?
f you need that colun to be automaticlly incremented, then modify that column as identity
ALTER TABLE Work
ALTER COLUMN LocationsID int IDENTITY
ALTER TABLE Work
ALTER COLUMN LocationsID int IDENTITY
ASKER
anees,
see i have to do an insert of 100's of records
could you help me with this solution please in the form of a working example with the table work
all help will be highly regarded
r
see i have to do an insert of 100's of records
could you help me with this solution please in the form of a working example with the table work
all help will be highly regarded
r
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
read this
http://jamesthornton.com/software/coldfusion/nextval.html