Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance - my SP needs some
Message
From
30/09/2002 19:50:49
 
 
To
30/09/2002 14:08:58
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00705044
Message ID:
00706178
Views:
21
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")
>
>
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform