Office数据库升迁Access导入SQL Server。许多人使用SQL Server导入导出数据,但精简版SQL Server缺少该功能,因此需要通过SQL语句来导入数据。例如:Insert into Tables SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Data Source="E:Access.mdb";')。通常,这一方法可以实现数据导入,但如果收到提示: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. 表明Ad Hoc Distributed Queries被禁用。