Hi guys
Thank you for your help.
Unfortunately none of it worked but one of the links gave me a hint.
It showed me a small script for viewing the allocated space for tempdb.
This showed me that it was the allocated space i had a problem with.
So I went to database properties for tempdb and allogated less space and kept the allowance for it to grow.
Space has been freed up now.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Reducing size of tempdb
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Reducing size of tempdb"
Collapse
-
Originally posted by NickFitz View PostI hope somebody can offer you more assistance than this. The fact that this is a problem to you, apparently a common problem, the software vendor seems to think that it isn't a problem, and the "community" surrounding said software goes along with the vendor, makes me wonder why people use this proprietary garbage in the first place.
It's not considered a "problem" by the "community" because a large TempDB is a symptom not a problem
Originally posted by lightng View PostAlso look at over-use of temporary tables in your stored procs etc. If you have many users creating creating large user-level temporary tables, tempdb is going to bloat very quickly.
Leave a comment:
-
Also look at over-use of temporary tables in your stored procs etc. If you have many users creating creating large user-level temporary tables, tempdb is going to bloat very quickly.
Leave a comment:
-
Out of curiosity, is it the ldf or mdf file which is considerably larger?
If its the log file, I'd suggest you need to truncate and shrink it. If this was 2005, then you'd want to perform a Backup Log with Truncate only followed by a DBCC ShrinkFile, however 2008 needs a couple of properties set against the database instead. Off the top of my head, I can't remember what they are though a quick google would reveal them.
Leave a comment:
-
Originally posted by ThomasSoerensen View PostHi all
After having worked with large datasets in a MS SQL Server database my tempdb has grown to 36gb.
Even after dropping/deleting that particular database so I only have the standard ones in the Management studio it does not shrink.
I have tried some of the tricks described when googling this poblem - none have worked.
Do you MS SQL server gurus know of a good way to free up some of my harddrive space and reduce the size of tempdb ? I use the standard version of SQL Server 2008.
Thanks for any help
However, that MSDN document might provide some pointers on how to cope with the problem - although the overall tone seems to be "If tempdb growing is a problem, it's your fault for not allowing it to grow!"
There's a thread on another forum that includes the helpful words:
"If you have activities that leads to usage of TempDB, You should consider using bigger drives or move TempDB file to Bigger drive. Yes ,you can find appropriate time and restart MSSQL services which will create fresh new TEMPDB but make sure nothing is using TEMPDB. You can spread TempDB files accross number of cores in your server to reduce I/O contention issues. If you are inserting lots of records to TEMP TABLE,I would suggest create index to save some space.
Hope that explains everything."
I hope somebody can offer you more assistance than this. The fact that this is a problem to you, apparently a common problem, the software vendor seems to think that it isn't a problem, and the "community" surrounding said software goes along with the vendor, makes me wonder why people use this proprietary garbage in the first place.
Ah, there's something linked to from that forum - maybe this advice (work down to the long-term prevention bit) will help.
Apologies if this is just the stuff you already tried that didn't help
I still think SQL Server is a heap of dung for most purposes...
Leave a comment:
-
Reducing size of tempdb
Hi all
After having worked with large datasets in a MS SQL Server database my tempdb has grown to 36gb.
Even after dropping/deleting that particular database so I only have the standard ones in the Management studio it does not shrink.
I have tried some of the tricks described when googling this poblem - none have worked.
Do you MS SQL server gurus know of a good way to free up some of my harddrive space and reduce the size of tempdb ? I use the standard version of SQL Server 2008.
Thanks for any helpTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How to answer at interview, ‘What’s your greatest weakness?’ Nov 14 09:59
- Business Asset Disposal Relief changes in April 2025: Q&A Nov 13 09:37
- How debt transfer rules will hit umbrella companies in 2026 Nov 12 09:28
- IT contractor demand floundering despite Autumn Budget 2024 Nov 11 09:30
- An IR35 bill of £19m for National Resources Wales may be just the tip of its iceberg Nov 7 09:20
- Micro-entity accounts: Overview, and how to file with HMRC Nov 6 09:27
- Will HMRC’s 9% interest rate bully you into submission? Nov 5 09:10
- Business Account with ANNA Money Nov 1 15:51
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 14:11
- How Autumn Budget 2024 affects homes, property and mortgages Oct 31 09:23
Leave a comment: