Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Variables

Status
Not open for further replies.

jonwolds

Programmer
Aug 6, 2002
194
GB
What would happen if you tried to populate a table variable which requires more memory than is currently installed on the server? How would SQL Server deal with this?
 
If your table is so large that it will gobble up all your memory, you may want to consider using a tempdb table (#TableName).
 
What would happen if you open too many applications in a system equipped with low memory ???

Good Luck
Gopala Krishna Kakani

 
Gopala,

Would the swap file come into use?

Answering a question with a question isn't that helpful.

Jon
 
I think SQL Server just freezes if you try and do more with it than you have physical memory for. It'll probably bring the entire OS to its knees.

First, look at redoing your query that is populating your table datatype. Second, remove any unnecessary programs / services from your machine. Third, buy more memory for your machine if you haven't already maxed it out.

Fourth, buy a new server with better RAM and more processors so it can handle parallelism (Hyperthreading).

Fifth, take off for the rest of the day, have a beer and call it work well done. @=)



Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top