目前sql 2005不能使用opendatasouce這個函數?有人說是版本問題:
我裝的是sql 2005版本信息如下:
Microsoft SQL Server Management Studio 9.00.1399.00
Microsoft Analysis Services Client Tools 2005.090.1399.00
Microsoft Data Access Components (MDAC) 2000.085.1117.00 (xpsp_sp2_rtm.040803-2158)
Microsoft MSXML 2.6 3.0 5.0 6.0
Microsoft Internet Explorer 6.0.2900.2180
Microsoft .NET Framework 2.0.50727.42
Operating System 5.1.2600請問該如何升級能使用這個函數?
謝謝!!
我裝的是sql 2005版本信息如下:
Microsoft SQL Server Management Studio 9.00.1399.00
Microsoft Analysis Services Client Tools 2005.090.1399.00
Microsoft Data Access Components (MDAC) 2000.085.1117.00 (xpsp_sp2_rtm.040803-2158)
Microsoft MSXML 2.6 3.0 5.0 6.0
Microsoft Internet Explorer 6.0.2900.2180
Microsoft .NET Framework 2.0.50727.42
Operating System 5.1.2600請問該如何升級能使用這個函數?
謝謝!!
解决方案 »
- 高手们来帮帮忙!!!!!
- 如何使用JS给TreeView添加节点
- 新手求助实现一个简单的功能,急!
- [100 分] 请教 .NET 中的进度条技术
- Trust 接口和DMZ 接口都是什么意思?
- 为什么明明是我得了分,确加不进我的总分,??
- 注册ActiveXLibrary,提示失败,找不到指定的模块,请问错误原因是什么,谢谢!
- 如何获得当前选中Textbox的ID(句柄)?
- 请问DataGrid控件显示的数据内容都是一行显示,如何让他按列宽自动换行显示?
- Mono 0.12 is out!!!
- 聪明的.net程序员工具 CoolClass 1.2 将免费进行到底 无任何限制版
- 求从Excel表将数据导入到SQLserver2000中的(C#)的操作代码 用于网页的模式(B/S)
SELECT * FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0',
'Data Source="D:\hands\HAL3031707152.xls";Extended
properties=Excel 5.0')...Sheet1$ 提示:
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 server 的数据库链接功能吧 你要先在sql server 中链接好才能通过这句话来查询sql server 2000种好用的2005中没有用过
sp_configure 'Ad Hoc Distributed Queries',1
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO然后再用opendatasouce