Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Just SqlExec() or SqlPrepare() + SqlExec()?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00597110
Message ID:
00597298
Views:
20
This message has been marked as the solution to the initial question of the thread.
Correct. Really, SQLPrepare is supposed to run a large queries and code. THere is no need to pre-compile such littel query as you shown in your message. This is because compiling time for such query on SQL Server is very short, so there are no big benefit from using SQLPrepare here. SQLPrepare is useful for really large queries.


>Hi Vlad!
>
>>Probably because you use a parameter in the query. Parametrised query could not be prepared at the server side, as far as I know. This is only for static queries.
>
>But... Can you show me one sample Static Query? and, what is the point of it?
>
>... Maybe... I can use in a static form: "List of members currently logged"
>
>In the Form.Init:
>SqlPrepare(x,"Select * From Users Where Login = 'OK'")
>
>and repeat SQLEXec() each 10 seconds... (Timer Object)
>
>[]'s!
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform