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 71047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:49:35+00:00 2026-05-10T19:49:35+00:00

When debugging web sites that I’m working on, I tend to use Attach to

  • 0

When debugging web sites that I’m working on, I tend to use Attach to Process rather than F5 to start debugging (since the site’s already on in Firefox). However, occasionally when doing so, I’ll get the following error:

EXECUTE permission denied on object ‘sp_sdidebug’, database ‘master’, owner ‘dbo’.

I know this is caused by attaching the debugger for T-SQL, rather than just managed code (see this blog post for further explanation on that issue).

I’m hoping that it’s possible to set somewhere to avoid attaching to T-SQL in the first place, rather than having to remember to go reset that setting each time I attach.

So, here’s the real question: Does anyone know how I can change the default behavior of Visual Studio 2008, so that when attaching to a process through the debug menu, it does not automatically attach to T-SQL, but only to managed code? That is, how can Studio be set to remember not to attach to anything other than managed code?

FYI, if there are project-specific settings, I’m using a C# Web Application project.

  • 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. 2026-05-10T19:49:36+00:00Added an answer on May 10, 2026 at 7:49 pm

    You can change the debugging engines used to attach to a process by clicking on the ‘select…’ button on the ‘attach to:’ line in the attach dialog.

    Choose the ‘Debug these code types’ option instead of the automatic one, and make sure the T-SQL option is cleared.

    I don’t know how to set this as a default, hopefully Visual Studio will just remember it.

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

Sidebar

Ask A Question

Stats

  • Questions 64k
  • Answers 64k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Managed to get everything working, with the help of an… May 11, 2026 at 10:57 am
  • added an answer No you don't have to use a union. If I… May 11, 2026 at 10:57 am
  • added an answer The official response from OSIsoft is: this cannot be done.… May 11, 2026 at 10:57 am

Related Questions

When debugging web sites that I'm working on, I tend to use Attach to
I get this error when debugging my ASP.NET web application after I trigger an
I have several web application projects in one solution. When I start debugging one
When debugging an application in Visual Studio, there are 2 options for breaking on
When debugging JavaScript in Visual Studio 2008 and I use the ? command in
When debugging in Internet Explorer, I first get an alert box with extremely limited
When debugging, a trick I do whenever I want to exit the current method
When debugging in PHP, I frequently find it useful to simply stick a var_dump()
When debugging I always want Delphi to open my application in the second monitor
When debugging the following code NSString *var1 = @blaa; NSString *var2 = @blaaaaa; NSString*

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.