Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using parameterized views
Message
From
26/01/2000 17:55:01
 
 
To
26/01/2000 13:05:19
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00322466
Message ID:
00323240
Views:
22
>While I agree with you in terms of performance, isn't it true that extensive (or exclusive) use of stored procedures conflicts with the notion of separating business logic from the data.

Personally, I believe that you enforce a rule at the lowest tier that is capable of handling it.

BTW, you can solve your problem with just one trip to the server but it will require that the query is bigger. When you submit a "query" to the server, you're really submitting a "batch" and a batch can contain more than one query. So it would be possible to submit the following:
IF EXISTS(SELECT * FROM table WHERE something = something)
  UPDATE table SET something = something WHERE something
ELSE
  INSERT INTO table () VALUES ()
-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform