Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- From: pearcz <pearcz@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 May 2006 00:29:01 -0700
I did this prior to writing this inquiry.
I tried the other way:
in VS 2005 -
Debug - Attach process sqlserver.exe
Open stored procedure in server explorer and set breakpoint
Run the procedure from SQL Server Management Studio
to no avail.
I noticed that when attaching slqserver.exe proces in VS 2005 - Debug -
"Attach to process" window, type column is x86, while there are processes
which have other types such as T-SQL, Managed, Script. Should sqlserver.exe
not have T-SQL type present?
I wonder if anyone is debugging T-SQL this way?
"Eric Moreau" wrote:
In the project properties, under the Debug tab, check "Enable SQL Server.
debugging
--
HTH
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)
http://emoreau.s2i.com/
"pearcz" <pearcz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9F3880D9-3704-425C-BD14-300465FD0F32@xxxxxxxxxxxxxxxx
Hallo,
I have Visual Studio 2005 Team Edition for Software Developers together
with
SQL Server 2005 Developer Edition installed on local PC.
I created a windows project and called stored procedure using
ExecuteNonQuery.
In Server Explorer window I added a reference to SQL 2005 database, opened
a
t-sql procedure and set a breakpoint.
When running code, the breakpoint never gets hit nor can I step into the
stored procedure from .net code.
When I set the breakpoint in t-sql, there is a tooltip saying
"The breakpoint will not currently be hit. Unable to bind SQL breakpoint
at
this time. Object containing the breakpoint not loaded."
I can debug the stored procedure via righclick and Step Into ... (but that
requires setting its parameters manually).
Enabled SQL Server debugging checkbox is checked on the windows project
and
in server explorer Application debugging is checked too.
The stored procedure is pure T-SQL, no CLR.
I tried sql connection strings with both windows (integrated
security=SSPI)
and sql authentication.
What am I doing wrong?
Thanks for answers
Pavel
- References:
- Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- From: Eric Moreau
- Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- Prev by Date: Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- Next by Date: can't debug add-in
- Previous by thread: Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- Next by thread: Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
- Index(es):
Relevant Pages
|