Solved

Copy a row using ADO.Net

Posted on 2011-02-22
4
415 Views
Last Modified: 2012-05-11
I need to duplicate an existing row in a table. Before finishing the Insert of the new row, I need to change a few fields. Also, I do not want to copy the last field in the row as it is an Identity field.
I would like to use a For Next loop so I do not have to write out all the field names.
I would like to ADO.Net to do this.
thanks,
pat
Is there an ADO.net ZONE on Experts Exchange? I looked but could not find it. If there is would you please post the path.
0
Comment
Question by:mpdillon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 34952940
In this part 2: http://www.4guysfromrolla.com/articles/071002-1.2.aspx of a 2 part article what you want is discussed in detail. If you need to know how to set the whole thing up start here: http://www.4guysfromrolla.com/articles/071002-1.aspx
0
 

Author Comment

by:mpdillon
ID: 34953063
RawinnInx9,
I looked at the articles, they seem to focus on datagrids which I am not using. My program does not have any user interaction and does not use datagrids.
0
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 500 total points
ID: 34954952
0
 

Author Closing Comment

by:mpdillon
ID: 34955825
It is the end of the day now and the client is kicking me out. But that looks like it will work. It will be next Monday before I return to test it.
thanks,
pat
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question