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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:07:31+00:00 2026-05-17T17:07:31+00:00

I’ve recently put Windows 7 on my development PC, and I have Visual Studio

  • 0

I’ve recently put Windows 7 on my development PC, and I have Visual Studio 2008 Team System Development Edition, and SQL Server Management Studio 2008, and for some reason I can’t seem to step in to any SQL code for debugging in SSMS.

Before I formatted in favour of Windows 7, I was able to debug on the same two SQL servers I’m trying now with the same software, so I’m guessing it’s something to do with client configurations. Regardless, I tried all the steps I could find to enable SQL remote debugging but nothing has worked.

When I attempt to debug or step into the active query window, the debugger simply runs the code without stopping at the start or any breakpoints.

If I try use Visual Studio (running as Administrator) I get the following error:

T-SQL execution ended without
debugging. You may not have sufficient
permissions to debug.

Anyone got a clue what to do here?

EDIT

I’m still having this problem. I re-installed the latest SQL Server Management Studio from MSDN’s latest SQL Server 2008 download available, and patched it with SP1, but this same problem still happens. Other people in my office are able to debug code with the same version client, and same permissions (set using group permissions) so I’m at a loss as to what is causing this.

FINAL EDIT

Solved! The issue was simply a domain authentication issue. See my answer for a larger explanation.

  • 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-17T17:07:32+00:00Added an answer on May 17, 2026 at 5:07 pm

    Today, I finally solved this.

    I was writing an ASP.NET application that included the line:

    User.IsInRole("DOMAIN\\Administrators");
    

    And this was throwing the following exception:

    The trust relationship between this
    workstation and the primary domain
    failed

    I wasted a little time applying the KB976494 hotfix, which I soon discovered didn’t work. During my developer rage I looked in my local “Administrators” account and noticed it listed almost all members by their S-ID, so figured there may have been a domain problem.

    Then it came to me… I remembered I joined the domain with my personal (non-administrator) account, instead of using the domain administrator account.

    These were the ultimate steps to fix this issue:

    1. Leave your domain (and join an arbitrary workgroup, such as “WORK”)
    2. Reboot.
    3. Join your domain with your “DOMAIN\Administrator” account

    User.IsInRole() now worked, so out of curiosity I checked this problem, and it was also fixed.

    This is a great Friday so far!

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

Sidebar

Related Questions

No related questions found

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.