Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey
I need to copyy the existing table in same mdb file
Can any one suggest solution???
Posted
Comments
Jibesh 18-Jan-13 15:17pm    
can you elaborate your question? why do you need a duplicate copy?
Hetal Jariwala 18-Jan-13 23:16pm    
it is just a simple application which stores old data so i need to change the user change to a new table.
can u provide any solution???

1 solution

1. Check if the copy table exists, if exists, drop it
2. http://technet.microsoft.com/en-us/magazine/dd401720.aspx[^]

User Insert into query to copy the contents of one table into another.

3. For dropping a table , you can write same c# code that you use for delete operation and replace the query appropriately.

4. for finding if a table exists you can use SP_HELP table_name
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900