Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create SQL temporary table using parameterised SP
Message
From
28/01/2004 06:56:28
 
 
To
27/01/2004 20:54:00
James Chan
Objectmastery Pty Ltd
Hawthorn, Australia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00871235
Message ID:
00871305
Views:
17
Hello,

Sergey has provided why the temporary cursor isn't usable after the parameterized query ..

so why don't just build the select statement statically .. e.g.:

TitleName = "Owner"
lcSQL = "SELECT * INTO #TempCustNew FROM Customers WHERE RTRIM(ContactTitle) = '" + ALLTRIM(TitleName) + "'"

? SQLExec(hConn,lcSQL)
? SQLExec(hConn, "select * from #TempCustNew where rtrim(City) = 'Nantes'") && now should return 1

Regards

Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform