HighTechTalks DotNet Forums  

How to get the ID of an item inserted into a database right after it has been inserted

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss How to get the ID of an item inserted into a database right after it has been inserted in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dino M. Buljubasic
 
Posts: n/a

Default How to get the ID of an item inserted into a database right after it has been inserted - 12-03-2003 , 05:59 PM







I am inserting rown into my data table and would like to be able to
retriever id of the row inserted immediatelly after it has been inserted.
How can I do that?

Regards, Dino
--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com




Reply With Quote
  #2  
Old   
RA
 
Posts: n/a

Default Re: How to get the ID of an item inserted into a database right after it has been inserted - 12-03-2003 , 07:41 PM






Look at SCOPE_IDENTITY ()

Ronen

"Dino M. Buljubasic" <dino.buljubasic (AT) rivusglobal (DOT) com> wrote

Quote:
I am inserting rown into my data table and would like to be able to
retriever id of the row inserted immediatelly after it has been inserted.
How can I do that?

Regards, Dino
--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com






Reply With Quote
  #3  
Old   
Greg
 
Posts: n/a

Default Re: How to get the ID of an item inserted into a database right after it has been inserted - 12-04-2003 , 06:46 AM



If you are using an sproc, simply use an output parameter.

"Dino M. Buljubasic" <dino.buljubasic (AT) rivusglobal (DOT) com> wrote

Quote:
I am inserting rown into my data table and would like to be able to
retriever id of the row inserted immediatelly after it has been inserted.
How can I do that?

Regards, Dino
--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com






Reply With Quote
  #4  
Old   
Paul Clement
 
Posts: n/a

Default Re: How to get the ID of an item inserted into a database right after it has been inserted - 12-04-2003 , 08:38 AM



On Wed, 03 Dec 2003 23:59:19 GMT, "Dino M. Buljubasic" <dino.buljubasic (AT) rivusglobal (DOT) com> wrote:

¤
¤ I am inserting rown into my data table and would like to be able to
¤ retriever id of the row inserted immediatelly after it has been inserted.
¤ How can I do that?

This feature is dependent upon support from the database and driver - what type of database are you
working with?


Paul ~~~ pclement (AT) ameritech (DOT) net
Microsoft MVP (Visual Basic)

Reply With Quote
  #5  
Old   
wow gold
 
Posts: n/a

Default wow gold - 10-23-2009 , 07:59 PM



http://www.inwowgold.com/
http://www.inwowgold.com/power-leveling/

http://www.sopgame.com/
http://www.sopgame.com/power-leveling/


From http://www.google.cn/search?hl=zh-CN&num=100&newwindow=1&q=Spam+Filter+*+inurl:Post. aspx?ID=&btnG=Google+??&aq=f&oq=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/

Reply With Quote
  #6  
Old   
Replica Watches
 
Posts: n/a

Default RE:replica watches - 11-20-2009 , 08:28 PM



Replica Watches
http://www.prettyreplica.com
Replica Handbags, Very Nice Bag
http://www.verynicebag.com
Fashion Watches
http://www.watchesbroker.com
Very Nice Watch
http://www.buynicewatch.com
Discount Watches
http://www.prettyreplica.com/specials.html
Best Watches
http://www.watchesbroker.com
Special Watches
http://www.watchesbroker.com/specials.html
Fashion Bags
http://www.hotpopbag.com

Reply With Quote
  #7  
Old   
switrm
 
Posts: n/a

Default RE:replica watches - 01-07-2010 , 07:44 AM



http://www.dogbreedss.org/puppy-names.htm
structural diseases health disorders of dogs - causes, symptoms and possible
treatment.
http://www.dogbreedss.org/dog-diseases.htm

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.