0
SELECT nextval('AWARD_ID')

I am getting nextval as not built in function name in MS SQL Server. Kindly give any alternative if there is any.

2 Answers 2

2

It seems you are looking for SELECT NEXT VALUE FOR award_id.

Sign up to request clarification or add additional context in comments.

Comments

-1

Do you mean something like IDENT_CURRENT():

select IDENT_CURRENT('FOO') + IDENT_INCR('FOO')

1 Comment

This calculates the next value but wouldn't advance the sequence (unlike Postgres' nextval())

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.