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

SQLSTATE=24501 in a query on a linked server.

Status
Not open for further replies.

is47501

Programmer
Nov 15, 2001
9
US
Hi all,

I am receiving this error

"SQL0501N The cursor specified in a FETCH or CLOSE statement is not open. SQLSTATE=24501"

when running a query against a linked server in Sql Server 7.0. The linked server is an UDB (DB2) database linked with the OLE DB provider for ODBC. I do not get this error on every table I attempt to query.

Any ideas on how to correct this problem?
 
I found that an OPENQUERY(DW,'SELECT...') worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top