How to get the free temporary memory available in a server
For example:- I am running one SSIS package to upload data to tables. First it will move all the data to temporary table and then it will upload to actual Tables. So before executing this package is there any way to get the available remaining temporary memory size? including SQL Server ( Because there are some parallel jobs are running by SQL Server 2005 and using the temporary space). So if I can get the remaining memory size I can decide whether I can run the package or not. Please help me.
Best Answer
There is no such a thing in sql server as temporary memory. Temp tables and table variables created in
tempdb
and may use shared buffer pool of sql server as any other objects doBut
if you still insist on knowing everything about server memory use the following script: