Hi,I use SQL Express 2014. I have a table with approx 45.000 rows.I use a Stored Procedure to select (with filter) from this table.When I execute the SP from my VB.Net app, it's execution time is approx 13 seconds.Then I execute the SP from SQL SERVER Management System , and the first time, the execution time is approx. the same. When I run the SP again from my VB.Net app, now the execution time is only like 2 seconds, but when I close the SQL SERVER Management System, it goes up again to 13 seconds.I thought that Stored Procedures were compiled and saved in the cache, but it seems this is not True.Please help?Thanks,Freddy Mellaerts
↧