Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joining a #table created on the SP with a existant one
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01305959
Message ID:
01306182
Views:
5
>What is 79 in your select statement and does it absolutely need to be executed using EXECUTE?
>
>>>
>>>SET @lcsqlcmd = '
>>>	select #treport.*, apvadr.cphone as cBphone, apvadr.ccontact as cBcontact,
>>>		apvadr.ccompany as cBcompany, apvadr.caddr1 as cBaddr1, apvadr.caddr2 as cBaddr2,
>>>		apvadr.ccity as cBcity, apvadr.cstate as cBstate, apvadr.czip as cBzip,
>>>		apvadr.ccountry as cBcountry
>>>	from #treport JOIN apvadr ON #treport.cvendno = apvadr.cvendno
>>>	where apvadr.cvendno = ''Z_SKIPS'' and apvadr.ctype=''O'' and apvadr.caddrno = ''MIA''
>>>	order by 79
>>>	,' + @lcsortno
>>>
>>>
>>>>The relation between them should be a field name cvendno, both tables have it
>>>>
>>>>>What's releationship between #treport an apvadr ?
>>
>>
>>thanks,I am polishing it now

79, the main column order
.......
DO WHILE .T.
      ME.Work()
ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform