Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection Handle and View Parameters Qs
Message
From
18/09/2004 14:47:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/09/2004 21:35:44
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00943679
Message ID:
00943764
Views:
17
>Hi all,
>
>I have few Qs on the above. In our development environment, we are using VFP8 and ODBC to connect SQLServer 2K. We use views for screens and in some of the processing codes we resort to SQLPassThrough.
>
>My 1st Q is for the SQLPassThrough, do we always establish the connection handle when we start our app or when we want to use it, we create and close the handle? Or is it we can use the view connection to do this?
>
>My 2nd Q is in view parameters, I use a lot of LIKE but 1 of my colleague said we should use >= which perform faster. Is it true?
>
>Thanks in advance.

1) You can open and close or you can use view's connection handle.
2)I don't see a correlation between like and >=. Maybe you meant = and like. It wouldn't matter much IMHO. myField like 'A%' is partially optimizable and myField = 'A' is fully optimizable(ANSI is off - having same result). I prefer = too whenever I can.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform