>si en el formulario tarda mucho más la consulta como 10 seg. en el servidor y 40 en los terminales
¿Has medido que se trata específicamente del comando SQL - SELECT?
Si es que sí, hay que averiguar qué otras cosas podrían variar; por ejemplo, algún comando SET. El más relevante me parece SET DELETED, pero podría haber alguno más que varía, y que podría afectar los resultados, tales como SET EXACT o SET ANSI.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)