Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance - my SP needs some
Message
From
01/10/2002 11:37:36
 
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00705044
Message ID:
00706399
Views:
25
Thanks, I'd missed the separator between lines.

I'm still not getting a cursor on the VFP side. I've played around with some other variations, to no avail. Code fine works in QA.

Any other thoughts, or suggestions on debugging SPT?

TIA,

Jay

>Terminate each line with a semi-colon.
>
>-Mike
>
>>Michael --
>>
>> SQL access is set up through our internal framework.
>>
>> This is a very simple test program. lnResult is 1. But, csrAPItems doesn't appear in the current data session.
>>
>>
>>
>>*     Create SP string with:
>>*     1.  Table variable.
>>
>>lcSQL = "declare @csrAPItem  table (fpokey Char (12) NOT NULL) "
>>
>>*     2.  Insertion of a value into table variable
>>lcSQL = lcSQL + "INSERT INTO @csrAPItem (fpokey) VALUES ('706652 11  0') "
>>
>>*     3.  Join with main table
>>lcSQL = lcSQL + "SELECT a.* from apitem a inner join @csrAPItem b ON a.fPOKey = b.fPOKey"
>>
>>lnResult =  SQLEXEC (lnHandle, lcSQL, "csrAPItems")
>>
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform