Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2005, 10:32 AM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Looping through a record to populate stored proced

I come from classic asp and am newer to the .net community. I want to use a query to return a recordset and use the results of this recordset to programmatically loop trough it, populate, and execute a stored procedure. Since asp.net does not use a recordset with cursor control per say how does one do this? Code examples are much appreciated!!!

Thanks for the help.

 
Old May 16th, 2005, 03:55 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

ADO.NET does not use RecordSets but it does have several classes that perform similar functionality. Look into the SqlDataReader class. This is the closest to a cursor type object (like the recordset).

-Peter
 
Old May 16th, 2005, 04:01 PM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does the DataReader allow steping through the records with an equivalent "movenext", "movefirst", etc?

Thanks for the reply!

 
Old May 16th, 2005, 04:36 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://msdn.microsoft.com/library/en...datareader.asp





Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping record from database khempire C# 4 January 10th, 2008 10:37 PM
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
add new record to ADO recordset via stored proc tbullard Access 0 January 20th, 2006 02:35 PM
Record locking - user needs the next queued record cbtoolkit SQL Server 2000 0 December 6th, 2004 08:29 AM
Returning record in stored function with ADO nmbarbillo Oracle 0 June 15th, 2004 12:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.