SQL Server 2008

Find the datatypes of a SQL #temp table

I’m sure you’ve done it a million times like I have: selected a chunk of data into a #temp table for some quick and dirty ad_hoc analysis.

Ever wanted to know what data types were assigned to the temp table?

This will get you there.


Tested on SQL Server versions 2005, 2008 and 2012. Enjoy!

Share on Google Plus


Australian. Sport. Passionate Cricket Fan. Go Pro. Abseiling. Snorkeling. Travel. Golf R. SQL Server Developer. Three sons. One daughter. Last Trip: Tasmania.

Leave a comment

Your email address will not be published. Required fields are marked *