sql server - login timeout expired error on first sql query -


i'm running sql server 2005 , using iis asp scripts.

i have problem sql when run sql query (exp : http://[host name] localhost [host name]) @ first time (like when start windows) or when session times out due being idle long, error happens :

login timeout expired

but after when refresh page, ok , works should be.

it looks takes long time run sproc "first" time, on takes less sec execute sproc.  

sql server generate execution plan stored procedure when runs first time, cause long duration. next times sql can reuse exection plan duration becomes shorter. duration of 46secs abnormal, can try create clustered index on table, in order speed query.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -