Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Anders Altberg
  Where is Anders Altberg?
 Uppsala
 Sweden
 Anders Altberg
 To: Dan Ward
  Where is Dan Ward?
 Ithaca
 New York - United States
 Dan Ward
Subject: RE: SQLEXEC with a Local Cursor
Thread ID: 192449 Message ID: 192565 # Views: 4 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: ODBC, ADO and OLEDB
Date: Wednesday, September 3, 2008 8:03:56 PM         
   



> I Hope this is an easy question, I am using SQLEXEC to run a query on a MSSQL database. I am using a sub query of a cursor I create in the step before this query. Does SQLEXEC support this type of select statement?
>
> ~Dan


LOCAL lo AS OBJECT
SELECT localcursor
SCAN 
 SCATTER NAME lo
 TEXT TO lcSQL NOSHOW 
SELECT * FROM Ss_table 
 WHERE custno = ?lo.custid
 ENDTEXT 
 SQLEXEC(lnHandle, lcSQL , 'crs1')
 INSERT INTO sometable SELECT * FROM crs1
ENDSCAN 


-Anders

ENTIRE THREAD

SQLEXEC with a Local Cursor Posted by Dan Ward @ 9/2/2008 9:37:22 PM
RE: SQLEXEC with a Local Cursor Posted by Cetin Basoz @ 9/3/2008 12:30:01 AM
RE: SQLEXEC with a Local Cursor Posted by Christian Tabligan @ 9/3/2008 6:42:28 PM
RE: SQLEXEC with a Local Cursor Posted by Anders Altberg @ 9/3/2008 8:03:56 PM
RE: SQLEXEC with a Local Cursor Posted by Dan Ward @ 9/3/2008 8:27:06 PM
RE: SQLEXEC with a Local Cursor Posted by Dan Ward @ 9/3/2008 10:00:50 PM
RE: SQLEXEC with a Local Cursor Posted by Brad Schulz @ 9/3/2008 10:17:18 PM
RE: SQLEXEC with a Local Cursor Posted by Cetin Basoz @ 9/3/2008 11:21:33 PM
RE: SQLEXEC with a Local Cursor Posted by Brad Schulz @ 9/3/2008 11:33:04 PM
RE: SQLEXEC with a Local Cursor Posted by Cetin Basoz @ 9/4/2008 12:00:52 AM
RE: SQLEXEC with a Local Cursor Posted by Brad Schulz @ 9/4/2008 1:49:00 AM
RE: SQLEXEC with a Local Cursor Posted by Cetin Basoz @ 9/4/2008 12:08:15 PM
RE: SQLEXEC with a Local Cursor Posted by Olaf Doschke @ 9/4/2008 10:48:33 PM
RE: SQLEXEC with a Local Cursor Posted by Dan Ward @ 9/4/2008 2:44:27 PM
RE: SQLEXEC with a Local Cursor Posted by Anders Altberg @ 9/4/2008 3:05:21 PM