SQL Server do declare statements in a loop cause significant speed issues and if so how can I resolve? -


i have function called many times. function has several declare statements in body of it.

i'm wondering impact of if function called say, 100,000 times, , if there way make declaration global such same variable re-used each time rather being allocated/deallocated constantly.

i might thinking regular programmer in way sql works, need streamline as possible improve performance it's shockingly bad.

sql server performance impact of declare minimal. unmeasurable. things affect performance in sql data access paths (ie. indexes) , execution plans. post exact ddl schema (including indexes), statement run , captured execution plan.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -