'conn指ADO的Connection对象
conn.Execute "SELECT a.* FROM OPENROWSET('SQLOLEDB','seattle1';'sa';'MyPassWord','SELECT * FROM pubs.dbo.authors ORDER BY au_lname, au_fname') AS a"
或者
conn.Execute "SELECT a.* FROM OPENROWSET('MSDASQL','DRIVER={SQL Server};SERVER=seattle1;UID=sa;PWD=MyPass',pubs.dbo.authors) AS a ORDER BY a.au_lname, a.au_fname"
或者
conn.Execute "SELECT a.* FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','c:\MSOffice\Access\Samples\northwind.mdb';'admin';'mypwd', Orders) AS a"