Question:
How to copy the contents from one table to another table and how to delete the source table in ado.net?
Answer:
May be there is a better way, but you can generating a datatable from source and load it to destination if the process is successful, execute the drop table query. Source: CoolInterview.com
In sql we can copy data from one table to anouther by sqlbulckcopy object but the destination table have same schema if the process is successful, execute the drop table query. Source: CoolInterview.com
Answered by: rahilmohd | Date: 4/6/2009
| Contact rahilmohd
To Copy Content From One table to other bother structure should be same so we first fetch the schmea using clone method and then add/import the row in the datatable
source table cane be delete using Drop Table Query
Source: CoolInterview.com
Answered by: Ashok | Date: 6/16/2009
| Contact Ashok
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|