[英]how can i insert data into MS Access from Sqlserver 2008 database table in C#
I am using this query for insert data into MS Access from Sql server 2008 database using C# 我正在使用此查询从SQL Server 2008数据库使用C#将数据插入MS Access
INSERT INTO
Table1([sno],[DataOfCreation],[Time],[IdentityType],[Description],[SpenderName],[Amount],[VoucherNo],[Session],[Mid],[Type])select
[sno],[DataOfCreation],[Time],[IdentityType],[Description],[SpenderName],[Amount],[VoucherNo],[Session],[Mid],[Type]
from
[OLEDB;Provider=SQLNCLI10;Server=CMACHINE-PC\\SQLEXPRESS;Database=Voucher;].Voucher_Details";
But I found an Error : 但是我发现一个错误 :
"Could not found installable ISAM" .
Can Anyone help me to solve this problem 谁能帮我解决这个问题
ISAM drivers are used by Access to update file formats other than its own. Access使用ISAM驱动程序来更新其自身以外的文件格式。 If the path of the ISAM driver in your Windows Registry is not valid, or if the ISAM driver does not exist, the problem may occur.
如果Windows注册表中ISAM驱动程序的路径无效,或者ISAM驱动程序不存在,则可能会出现问题。
This error will also be generated when the syntax of the connection string is incorrect. 如果连接字符串的语法不正确,也会产生此错误。 This commonly occurs when using multiple Extended Properties parameters.
使用多个扩展属性参数时,通常会发生这种情况。 Below is an example:
下面是一个示例:
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\DB.mdb;Extended Properties=""Access 8.0;HDR=NO;IMEX=1"""
See your datasource is quoted or not. 查看您的数据源是否被引用。 This must be a problem in connection string.
连接字符串中一定有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.