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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

could not find stored procedure

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
I have a stored procedure that runs the following code but it gives me an error stating it can't find the stored procedure and displays the select statement with the correct variables. If I run the select in a query window hard coding the variables it works fine. Is this a permissions thing with the "exec" command?

set @select = 'select * into '+'test'+' from openrowset('+ ''''+'VFPOLEDB'+''''+','+''''+@path+''''+'; '+''' '''+'; '+''' '''+','+''''+'select * from '+@filename+''''+@paren

exec @select
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top