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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing sorts to memory instead of tempdb

Status
Not open for further replies.

bloke

Programmer
Apr 23, 2001
9
0
0
AU

Hi There,

Is it possible to have SQL Server try to sort in memory first before looking at tempdb as an option. I have a relatively small database table ( in comparison to RAM) and it hits tempdb with many sorts. I was hoping to be able to have it look at memory as an option similar to say sort_area_size in Oracle.

Many Thanks

Chris
 
For SQL 6.0 and 6.5 run the following sql commands from Query Analyzer: [not sure about 7.0 and 2000]

(where X is the value of tempdb in RAM, in MB)

sp_configure 'tempdb in ram', X
go

reconfigure
go
shutdown
go

Now restart SQL Server normally.

Please read on for more info on possible problems with re-configuring tempdb in RAM:
 
Searched SQL BooksOL and found that the above "tempdb in ram" configuration option is no longer supported in sql2000...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top