>I have SQL statement (local database) that runs slow when in runtime but fast when executing from Command window.
>
>What can be a problem?
Check SET DELETED, SET ANSI in Command Window and in the program.
If it's not broken, fix it until it is.
My Blog