Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Table Variable or Tempdb

$
0
0

Hi

I have to optimize my Stored Procedure code.The Sp was earlier using Cursors in it.

Now I have to replace Cursor with while loop but I am confused which is better to use temp table or table variable in loop to store data , from performance point of view.

Please help me out.

Thanks in advance!!!!!!



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>