Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can OPENDATASOURCE accept variables?

Status
Not open for further replies.

stevesaved

Programmer
Jul 29, 2003
11
0
0
GB
Greetings,

Is it possible to use OPENDATASOURCE with variables?

Something along the lines of ...

declare @strProvider varchar(100), @strParams varchar(100)

select *
from opendatasource( @strProvider, @strParams )..<file name>

Any ideas? Thanks for your help
 
From BOL: OPENDATASOURCE does not accept variables for its arguments.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Thanks for all your help.

I decided to use the OPENDATASOUCE cammonad to access and update the dBASE files.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top