Temporary tables vs. table variables1
Normal tables = physical tables
Local Temp tables - available to the session that created them. #LOCALTEMP
CREATE TABLE #TibetanYaks( YakID int, YakName char(30) )
Global Temp tables - available to all users and sessions. Rarely used.
CREATE TABLE ##TibetanYaks( YakID int, YakName char(30) )
Table variables - stored part memory, part disk. Access time faster than a temp table
DECLARE @TibetanYaks TABLE ( YakID int, YakName char(30) )
Which command using Query Analyzer will give you the version of SQL Server and Operating System?
@@VERSION
Returns version, processor architecture, build date, and operating system for the current installation of SQL Server.3