Unable to hit breakpoint Mixed language SQL C# debugging

  • Thread starter Thread starter Ash
  • Start date Start date
A

Ash

Hi all,
I have a C# web application which calls a number of stored procedures.
I wish to step into the stored procedures while debugging i.e "Mix-mode
debugging":

I have completed the following steps:

Configured DCOM
Connected to database via Server Manager (I can see the SQL server and the
stored procedure)
Enabled SQL Debugging in the project properties

The Debugging components are installed and I think they are working because
I can right click the stored procedure from the server manager and "Step
Into Stored procedure" successfully!

The problem is that I set my breakpoint within the stored procedure run the
project then a

?
appears in the breakpoint when I hover over it I get this message:

"The breakpoint will not currently be hit. Unable to bind SQL breakpoint at
this time. Object containing the breakpoint not loaded."

Ive tried everything I can find can you please help me out !

Thanks in advance

Best Regards
Ashley Rajaratnam
 
Have no idea, but maybe you need to add the sql server to debug processes

Under tools->debug processes, highlight SQL server (sqlmangr.exe?) and
click attach
 
Thanks for the reply Morten

However still no luck tried attaching all of the debuggers to

sqldbreg2.exe
sqlmangr.exe
sqlserver.exe

Any other thoughts?

Thanks Ash



Have no idea, but maybe you need to add the sql server to debug processes

Under tools->debug processes, highlight SQL server (sqlmangr.exe?) and
click attach
 
Thanks for the reply Morten

However still no luck tried attaching all of the debuggers to

sqldbreg2.exe
sqlmangr.exe
sqlserver.exe

Any other thoughts?

You need to have your sql server running under your user account to be able
to attach without problems. if it's running under the system account you
won't get permission to attach to that process.
 
Back
Top