Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use variables in SQL 'FROM' and 'INTO' clauses
Message
From
06/06/2005 02:42:25
James Chan
Objectmastery Pty Ltd
Hawthorn, Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Use variables in SQL 'FROM' and 'INTO' clauses
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01020387
Message ID:
01020387
Views:
124
In VFP, I can use a variable/parameter in an SQL 'FROM' and clause, e.g.
local AliasName, OutputName 

AliasName = 'MyInputTable'
OutputName = 'MyOutputCursor'

select IT.* into cursor (OutputName) from (MyInputTable) IT order by IT.RefId
Can I do something similar in SQLServer stored procedures? How?

Thanks in advance
James Chan
ObjectMastery Pty Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform