Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:12:59+00:00 2026-06-13T00:12:59+00:00

The BI project I’m currently working on receives it’s data from a complex processes

  • 0

The BI project I’m currently working on receives it’s data from a complex processes based in SPs that use (too) many temp tables. This is something we do not have control over (or I would’ve changed it).
Our part in this project is mainly based on SSIS.

The processes run fine but the tempdb fills up relatively fast and then we start getting errors.

I’m looking for 2 things:

  1. How to prevent the tempdb from “overflowing” (or at least slow it down)?
  2. How to clean up the tempdb when it does overflow? (preferably using SSIS)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:13:00+00:00Added an answer on June 13, 2026 at 12:13 am

    The first question is why tempdb is filling but you’ve already identified the source of the fill as most likely due to excessive temporary table usage. It sounds as if reworking the stored procedures to be use fewer resources is not an option (correct me if I am wrong).

    The next thing I would look at is adding more space for tempdb but that’s a bandage and one I’m sure you’ve already tried.

    Something you can do is look at how your tempdb is defined. What is your initial size and what is the growth pattern? Right click on tempdb and select properties or have a DBA perform this. Every time the SQL Server service restarts, tempdb is dropped and recreated and the defaults for sizing and growth are not sane values for a production box. If you see 8 MB data and 1MB log with 10% growth pattern, you have an excellent opportunity to improve performance for everyone using the instance. I won’t go into the details but this leads to lots of little file growth which is bad all around for performance. Maximizing TempDB performance by correct initial sizing and msdn on Optimizing tempdb Performance. Fixing tempdb growth won’t magically make your problems go away but if you’re tinkering with things, it won’t hurt.

    The one thing you can control is SSIS. I assume SSIS is calling these stored procs and such for each of the tables you’re loading? You could look at serializing them, assuming you have multiple packages and/or dataflows running in parallel. This will increase your total run time but should spread your tempdb cost out over a longer period of time.

    Another option is to look at your Isolation level in your packages. I’m weak in this area but my understanding is that different isolation levels have different impacts on tempdb usage. My, probably flawed, understanding is Snapshot basically makes a copy of the table you are updating in tempdb to allow others to continue accessing the table and only when you are done does it push those changes back into the real table. This would cost more tempdb space than a different isolation level. There is no freebie though, so if you switch it to to the default of Serializable it might lower tempdb usage but at the cost of higher blocking/less concurrent access.

    References

    • Optimizing tempdb (pdf)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My project use Web API MVC 4 that it don't support complex type in
The project that I am working on (Node.js) implies lots of operations with the
The project currently has a UIviewController called Dashboard that acts as the main view
our project uses HttpRuntime.Cache.Get and HttpRuntime.Cache.Insert for storing and retrieving data from the cache.
My project is creating a font (or something that I can use somewhat like
Project#1 has some interfaces and classes that project#2 references. Now I want to use
My project has a need to cache on the iOS device data retrieved from
Project: I am having a button that toggles the column length from 3 to
My project consists of an app that links to two static libraries. Each of
This project was coped almost exacatly from the example on the admob page but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.