日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > windows >内容正文

windows

访问MS Access 系统表 MSysObjects ,在SQL SERVER 2005中访问

發(fā)布時(shí)間:2025/6/15 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 访问MS Access 系统表 MSysObjects ,在SQL SERVER 2005中访问 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

首先設(shè)置MS Access,給予訪問MSysObjects 的權(quán)限

1. Open Microsoft Access
2. From the Tools menu, select the Options menu option
3. On the View tab, click the System Objects checkbox
4. Click OK to save your changes
5. From the Tools menu, select the Security -> User and Group Permissions menu option
6. Click the Permissions tab
7. Select the Table entry in the Object Type combo box
8. Select the Admin userid in the User/Group Name listbox
9. In the Object Name listbox, select the MSysObjects entry
10. In the Permissions group box, check the Read Data check box
工具-->選項(xiàng)-->視圖-->系統(tǒng)對(duì)象打勾

工具-->安全-->用戶與組權(quán)限-->對(duì)象名稱MSysObjects?,權(quán)限 讀取數(shù)據(jù) 打勾

OK,可以Access中訪問了,如果要在SQL SERVER 2005中訪問,可以在

select * from OPENROWSET('Microsoft.Jet.OLEDB.4.0','d:\SPS_Pool_Export-2007-data.mdb';'admin';'',MSysObjects)

如果出錯(cuò)

Msg 15281, Level 16, State 1, Line 1
SQL Server blocked access to?STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server.?A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure.
?For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL Server Books Online.

SQL Server2005沒有設(shè)置的原因

exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure

轉(zhuǎn)載于:https://www.cnblogs.com/lwl0606/archive/2008/11/04/1326071.html

總結(jié)

以上是生活随笔為你收集整理的访问MS Access 系统表 MSysObjects ,在SQL SERVER 2005中访问的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。