get id number from sql table

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default get id number from sql table

    I have a asp page that updates a sql table. after the table receives
    the update a id number is auto generated. How do I pass that number
    to the second page. I was trying to use @@identity but I'm not sure
    how to use it or ever were. Do I call the @@identity on the second
    page? Please help
    PJ Guest

  2. Similar Questions and Discussions

    1. sql performance with a large number of rows in a table.
      hi, I am currently using MySQL 5.0.16 on a dual pentium 4-2G system with 9G of ram. I have a number of machines that connect to the MySQL server,...
    2. How to display limited number of rows of table indatabase
      I have built some CF pages to display my huge collection of DVDs and I would like to have a limited number of rows displayed at a time. Then there...
    3. Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
      We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could...
    4. Max number table in the union statement
      According to BOL the maximum number of tables per SELECT statement is 256. I don't think there's any other limit specific to UNION statements. --...
    5. Selecting Certain Number of Characters from Table -- Simple SQL Question
      How can I select a certain number of characters from a string, without selecting the whole string? For example, I want the first 50 characters of...
  3. #2

    Default Re: get id number from sql table

    You mean insert, not update, right?

    [url]http://www.aspfaq.com/show.asp?id=2174[/url]



    "PJ" <shows@hillstax.org> wrote in message
    news:d9b04e79.0312291255.199d83d5@posting.google.c om...
    > I have a asp page that updates a sql table. after the table receives
    > the update a id number is auto generated. How do I pass that number
    > to the second page. I was trying to use @@identity but I'm not sure
    > how to use it or ever were. Do I call the @@identity on the second
    > page? Please help

    Foo Man Chew Guest

  4. #3

    Default Re: get id number from sql table

    Hello PJ,

    Take a look at this page:

    [url]http://www.aspfaq.com/show.asp?id=2174[/url]

    Ray at work



    "PJ" <shows@hillstax.org> wrote in message
    news:d9b04e79.0312291255.199d83d5@posting.google.c om...
    > I have a asp page that updates a sql table. after the table receives
    > the update a id number is auto generated. How do I pass that number
    > to the second page. I was trying to use @@identity but I'm not sure
    > how to use it or ever were. Do I call the @@identity on the second
    > page? Please help

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139