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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:34:14+00:00 2026-05-28T21:34:14+00:00

I need to step through and debug an assembly uploaded to SQL Server. The

  • 0

I need to step through and debug an assembly uploaded to SQL Server.

The developer who created this project was kind enough to make the comments in the script:

-- Use the following line of code to create the assembly from a file when making frequent changes to the assembly during debugging.
CREATE ASSEMBLY asm_MY_NAME FROM 'C:\myDir\myDLL.dll'

-- Use the following line of code in order to debug CLR methods in this assembly.
ALTER ASSEMBLY asm_MY_NAME
ADD FILE FROM 'C:\myDir\myDLL.pdb'

I successfully run the following two statements on a freshly compiled DLL, but I have yet to figure out how to step through the code.

This article indicates all I have to do is attach

to any client application that opens a database connection to SQL
Server

My project is a Web Applicaton. I’ve tried attaching through chrome.exe to see if the debugger catches my breakpoint.

I also tried attaching to sqlservr.exe and that did not work either.

What could I be missing to be able to step through code?

EDIT: Also tried aspnet_state.exe; no luck.

  • 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-28T21:34:15+00:00Added an answer on May 28, 2026 at 9:34 pm

    Are you sure you allow SQL CLR Debugging on your server? and note that debugging sqlclr stops ALL managed threads on sql server. (so don’t do this on production)

    The following steps are required:

    • Set the option Allow SQLClr Debugging in the Visual Studio Server browser
    • Assure that the .pdb files are uploaded on the SQL Server
    • Run Visual Studio as Administrator
    • Attach to the process sqlserver.exe
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to step through the Qt code to help solve a bug in
I need to step through a .gif image and determine the RGB value of
I have an MVC 3 web application. I need to step through the controller
I have a longer running multi-step process using BackgroundWorker and C#. I need to
Need some help about with Memcache. I have created a class and want to
I need the actual debug symbols from the released version of ASP.NET MVC 2
I have a requirement that I need to run the tests through commandline as
I would like to use VBA in Excel 2007 to step through about 500
For a project I'm tangentially working on, I need a way to compile JavaScript
I've checked this question and it seems to be related to what I need,

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.