Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > When you inserting data using SqlCommandBuilder...

Reply
Thread Tools

When you inserting data using SqlCommandBuilder...

 
 
Rico Alexander
Guest
Posts: n/a
 
      10-23-2003
is there a way to retrieve the value of an autoincrement column inserted in
the database?


 
Reply With Quote
 
 
 
 
zPaul
Guest
Posts: n/a
 
      10-23-2003
Select @@Identity right after the insert. You will get the autoincrement
value.


"Rico Alexander" <> wrote in message
news:...
> is there a way to retrieve the value of an autoincrement column inserted

in
> the database?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetching & Inserting Data into a column of TEXT Data type in SQL server 2000 Using ASP.NET Bhavesh ASP .Net 5 07-18-2007 07:39 AM
Fetching & Inserting Data into a column of TEXT Data type in SQL server 2000 Using ASP.NET Bhavesh ASP .Net 1 07-17-2007 09:05 AM
Inserting & Fetching Data into a column of TEXT Data type in SQL server 2000 Using ASP.NET Bhavesh ASP .Net 0 07-16-2007 11:15 AM
Problem when inserting Data using Arabic or Farsi Language Fahad ASP .Net 2 12-27-2003 10:56 AM
Inserting into one table data from 2 tables and some input data. Renie83 ASP General 1 07-10-2003 08:29 PM



Advertisments
 



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