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

Distributed ado query problem

Status
Not open for further replies.

LucieLastic

Programmer
May 9, 2001
1,694
GB
hi

Trying to run a distributed sql query in an TADOQuery. I'm using Delphi 7 and SQL Server 2000. The sql is using OPENROWSET. The query runs perfectly from within Query Analyser but when run from within Delphi I get the following error message:

'Deferred prepare could not be completed'

I have the Prepared property set to TRUE. Does anyone know what's causing this and how I can fix it?

Many thanks in advance,
lou

www.radbmx.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top