在SQL 2008中使用OPENROWSET命令访问受密码保护的Microsoft Access数据库文件中的表 [英] Using OPENROWSET Command in SQL 2008 to access a table in a password protected Microsoft Access Database file

查看:57
本文介绍了在SQL 2008中使用OPENROWSET命令访问受密码保护的Microsoft Access数据库文件中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Microsoft SQL 2008中



我正在尝试使用OPENROWSET命令访问受密码保护的Microsoft Access数据库文件中的表,但它'''不工作。



这是我的代码:

  INSERT   INTO  Table01(Col1,col2,col3)
SELECT col1, col2,col3
FROM OPENROWSET ' Microsoft.Jet.OLEDB.4.0'' c:\dbfile.mdb'; ' Admin'; ' myPassword',Table03)



这是一个错误执行此查询后的消息:



OLE DB提供程序Microsoft.Jet.OL EDB.4.0用于链接服务器(null)返回消息无法启动您的应用程序。工作组信息文件丢失或由另一个用户独占打开。。



我需要通知,如果我删除了Access数据库密码,这个查询将正常工作(使用(null)密码当然!)



请有人可以帮助我吗?



我将非常感激。

解决方案

查看此博客文章



OLE DB提供程序Microsoft.Jet.OLEDB.4.0用于链接服务器[链接服务器]返回消息无法启动您的应用程序。工作组信息文件丢失或由其他用户独占打开。 [ ^ ]

In Microsoft SQL 2008

I''m trying to access a table in a password protected Microsoft Access database file, by using OPENROWSET command, but it''s not working.

here is my code:

INSERT INTO Table01 (Col1,col2,col3)
SELECT col1,col2,col3
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','c:\dbfile.mdb';'Admin';'myPassword',Table03)


and this is a error message after I execute this query:


"OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user.".


I need to notify that, if I remove the Access database password, this query will work properly (with a (null) password of-course!)

Please somebody can help me?

I will appreciate that so much.

解决方案

Check this blog post

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "[linked server]" returned message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user."[^]


这篇关于在SQL 2008中使用OPENROWSET命令访问受密码保护的Microsoft Access数据库文件中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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