Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized Views?
Message
 
To
08/12/2000 10:06:10
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00450647
Message ID:
00452116
Views:
33
>>Does MSSQL have VFP's equivalent to pViews or do I use Prepared SQL Statements with parameter markers or should I just execute dynamic-SQL?
>
>The closest equivelent would be a stored procedure...
>
>CREATE STORED PROCEDURE
>
>(@startdate datetime
>,@enddate datetime
>)
>
>AS
>
>SELECT * from MyTable where invoicedate is between @startdate and @enddate
>
>RETURN
>*******
>Then you can call this will SPT in VFP and it will return a result set.
>
>BOb
But I can not use this SP as function in SQL query? Or I can?
For example:
SELECT ;
ID,
MySP(Date) AS kkk
FROM Table

Giedrius
Giedrius
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform