From stackoverflow.com:
SELECT SCOPE_IDENTITY();
From ASP docs:
Hope this helps.SELECT CAST(scope_identity() AS int)
Update:
am using the SELECT statement with the filename and temp_date
I would suggest you use something more unique, like big random int or long string composed of random chars. temp_date might not be precise enough in a higher traffic environment.
In reply to Re^3: last_insert_id issue
by arkturuz
in thread last_insert_id issue
by sowais
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |