I need to find a T-SQL query in SQL Server 2008 that will tell me how much disk space will be needed for a given dataset in tempdb BEFORE I actually run a select into statement with a given query in order to create a new table.
Example:
select *
into newtable
from bighugetablewithlotsofjoins
So I need to know how much space will be needed by the data returned from bighugetablewithlotsofjoins
before I create newtable