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

  • Home
  • SEARCH
  • 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 3338362
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:21:59+00:00 2026-05-18T00:21:59+00:00

SQL 2008. I am running sproc from SQL Studio and when I try to

  • 0

SQL 2008. I am running sproc from SQL Studio and when I try to get Actual Execution Plan it blows up the tempdb.

I narrowed the problem down to call to a row scalar function which is used on 700K rows table.

I deduced that SQL is trying to create 700K exec plans for that function and writes all the data to tempdb which has 3Gb free space..

I dont really need to see the plan for that function.

Can I explicitely exclude a statement from generation of exec plan?

  • 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-05-18T00:21:59+00:00Added an answer on May 18, 2026 at 12:21 am

    You can’t exclude it from a execution plan, other than removing the call from the query.

    It does however, sound like a prime candidate to switch from a scalar UDF to an inline table UDF. Scalar UDFs can be a big cause of poor performance due to be run once per row in a query.

    Have a read through this article which contains an example to demonstrate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running SQL Server 2008 Express on Windows XP on a VirtualPC instance inside
How do I properly convert two columns from SQL (2008) using Linq into a
Why does SQL 2008 all of a sudden want to drop my tables when
Our database server is a SQL 2008 server. My colleagues all have XP service
I am trying to use the new DATETIMEOFFSET data type in SQL 2008 but
I have a couple of tables in a SQL 2008 server that I need
I am trying to configure Reporting Services 2005SP2 on a machine with SQL 2008
I'm using a hosting service which allows me to backup my SQL 2008 database
SQL Server 2008 has new geo data types. One thing I am wondering though
Does SQL Server 2008 ship with the .NET 3.5 CLR, so that stored procedures

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.