Solved

Copy a row using ADO.Net

Posted on 2011-02-22
4
398 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
  • 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
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…

777 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