使用c#在ms acess中复制表 [英] copy table in ms acess using c#

查看:77
本文介绍了使用c#在ms acess中复制表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要复制同一mdb文件中的现有表格

任何人都可以建议解决方案???

解决方案
1。检查复制表是否存在,如果存在,请将其删除

2. http: //technet.microsoft.com/en-us/magazine/dd401720.aspx [ ^ ]



用户插入查询以将一个表的内容复制到另一个表中。



3.对于删除表,你可以编写用于删除操作的相同c#代码并适当地替换查询。



4.用于查找表是否存在可以使用SP_HELP table_name


Hey
I need to copyy the existing table in same mdb file
Can any one suggest 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


这篇关于使用c#在ms acess中复制表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆