Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A pseudo SEEK() Function to be used with SPT
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00675579
Message ID:
00675701
Views:
10
Hi Sergey,

>The fastest way to check if record or records exist in Sql Server is to use EXISTS operator.
>
SELECT CASE WHEN EXISTS (
>		SELECT * FROM pubs..authors WHERE au_id = '213-46-8915') THEN 1
>	ELSE 0 END
The problem is, he wants to have a solution that can be used with most DB servers. AFAIK "CASE" is not supported on some (or many?) systems (Ingres for example).

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform