Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi..

I need to know in which scenario we should use local,global temp table and table variable in T-Sql.

What I have tried:

I know how to create temp table and table variable but i don't know when to use it ..please tell me with good scenario..
Posted
Updated 15-Apr-16 19:07pm

1 solution

Check this out link[^].
 
Share this answer
 
Comments
Member 11337367 16-Apr-16 1:43am    
Can you tell when we use #table and ##table in tsql?
Peter Leow 16-Apr-16 1:45am    
The link provides a comprehensive discussions. Visit it and read patiently.
Karthik_Mahalingam 16-Apr-16 3:49am    
5
Peter Leow 16-Apr-16 3:53am    
Thank you, Karthik.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900