Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Query to run in TEMPDB or Stored Procedure

$
0
0
Two questions:* Why is it quicker to create a TEMPDB - select into that tempdb then query it than it is to just query the DB???* Can I create the table in a temp stored procedure, will this be quicker and is it possible as the only way I know to populate temp tables in stored procedures is by hard coding them - not by doing a select into. Any thoughts greatly appreciatedThanks

Viewing all articles
Browse latest Browse all 3145

Trending Articles