Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized views?
Message
From
09/04/2003 15:22:01
 
 
To
09/04/2003 11:59:55
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00775562
Message ID:
00775708
Views:
13
James,

look into user-defined functions in SQL Server in SQL Server 2000, they can function as parameterized views. You should be able to create a function that accepts a parameter and returns a table containing results selected from the view, using the parameter in the WHERE clause.

Roman


>I am creating a report in Visual Foxpro 6.0 based on an SQL 2000 view. I would like the view to ask the user for a sales order number and then run the view for just that sales number. Can an SQL view do this?
>
>Thanks
>Jim
Roman Rehak, MCSD, MCDBA, MCSA
Competitive Computing
354 Mountain View Drive
Colchester, VT 05446-5824
802-764-1729
Previous
Reply
Map
View

Click here to load this message in the networking platform