Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure

Status
Not open for further replies.

Barrow66

Programmer
Sep 3, 2002
37
0
0
US
When is it necessary to use a table variable, a temp table and a derived table in a stored procedure? Does it depend on the total number of records. Lets say the Stored Procedure1 returned 10,000;
Stored Procedure2 returned 100,000 and stored procedure3 returned 1,000,000,000 rows.
When creating the stored procedures above when should on implement TABLE variable, TEMP tables with an index and DERIVED table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top