RSS
热门关键字:
当前位置 :| 主页>Database Development>

SQL Server database guides derive data means is compared

来源: 作者:Stand originally 时间:2008-12-21 Tag: 点击:


SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0' ,

'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=abc.mdb;Persist Security

Info=False') . . .

Table1

OPENROWSET is equivalent to volume of a record, can will regard as directly a watch or view are used.

Inquire through OPENROWSETE in SQL Server the Table1 in Access database Abc.mdb is expressed

SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0' , 'abc.mdb';

'admin';'' , 'SELECT * FROM Table1' )

(2) nimbleness is different.

OPENDATASOURCE can open the watch in corresponding database or view only, if need to filter, can undertake handling in SQL Server only. And OPENROWSET can be in open a database while undertake filtering to its, be like the example above, SELECT * FROM Table1 can be used to undertake inquiring to the data table in Abc.mdb in OPENROWSET, and OPENDATASOURCE can cite only Table1, and cannot inquire Table1. Accordingly, OPENROWSET compares OPENDATASOURCE more agile.



最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表
热点关注
相关文章