Because of Linked Server is not easy to send openrowset query I connect to remote Sql Server directly via SQLCMD mode. But this is Ok using Query Analyzer. When I put code to stored procedure I cannot even save it:
:Connect x.x.x.x -U sa -P password
select *
from openrowset('VFPOLEDB','\\share\db\s_object.dbf';'';
'','SELECT * FROM s_object where i_class=21 order by 1')
Incorrect syntax near ':'.