in reply to Re^4: last_insert_id() in sybase
in thread last_insert_id() in sybase

What are the error messages you get when you execute that script? And what is the code using do that works?

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.