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!

SQL Pass Through

Status
Not open for further replies.

risslsu

Programmer
Jan 13, 2004
18
0
0
US
How do I reference a remote table so that I can use a SELECT statement and put the results into a cursor? I have already established my connection with the server.(SQL Server)

This is my code using a local table:
SELECT TOP 1 * FROM table INTO CURSOR table_cur ;
WHERE ALLTRIM(table.field1) == m.field1 ;
ORDER BY table.field1

Should I use SQLEXEC, SQLPREPARE?

Thank you,
Marissa
 
This is not SQL Server code. Possibly Oracle or FoxPro. Please post to the correct forum. Happy coding.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
This is also a duplicate post of THREAD183-762621.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top