Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From VFP Views to SQL Views
Message
From
09/10/2002 13:10:03
 
 
To
09/10/2002 12:40:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00709354
Message ID:
00709385
Views:
16
SQL Server doesn't support parameterized views in the same fashion that VFP does.

You can get similar functionality using stored procedures, but the result set will not be updatable.

IMO, you should use stored procedures for all of your data access. Call a stored proc to retrieve the data that you need and call another one to update the data when you want to make a change.

-Mike

>Until now, I´ve been using parameterized updatable views to retrieve, edit and update records from some tables.
>
>Let`s say, in a form with a grid, the grid is bounded to a view, so I only have to "requery" the view to retrieve data, and "tableupdate" the view to get records inserted, updated and deleted in the related table(s).
>
>Now, I`m facing my first project using SQL-Server as a data Back end and my question are:
>
>How (if possible) do I get the same functionality described above?
>
>Are SQL-Server views updatable and "parameterizable"?
>
>How do I get the base table(s) of a view updated from changes made to the view?
>
>TIA.
>
>Cristóbal.
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform