hi steve, i'm using for this question, follow the code
SELECT IDENT_CURRENT('table_name') as last_id
id is autoincrement field
i hope to help u
Steve <[EMAIL PROTECTED]> wrote:
When I use MSSQL and I want to get the next auto number, I use some lines of
code, this will save my record and tell me what the auto record number is
and then I can use this to save into other records.
Steve
Ercan Erdoðan
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/