Results 1 to 2 of 2

Thread: Auto ID in SQL Server....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Atlanta, GA
    Posts
    80

    Question

    I am inserting into a SQL table with "INSERT INTO...." and the table has an auto-increment ID field.

    Is there any way that I can return that value within the INSERT call to the DB? Or do i have to do my INSERT and then a SELECT?

    Thanks,
    Kevin
    Kevin

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Originally posted by ksutton
    I am inserting into a SQL table with "INSERT INTO...." and the table has an auto-increment ID field.

    Is there any way that I can return that value within the INSERT call to the DB? Or do i have to do my INSERT and then a SELECT?

    Thanks,
    Kevin
    You could create a stored procedure...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width