简体   繁体   English

是否可以从.net代码调试到SQL Server存储过程代码?

[英]Possibility to debug from .net code into SQL Server stored procedure code?

Is there any possibility to directly dive into SQL Server stored procedures from .net code? 是否有可能直接从.net代码深入SQL Server存储过程? So when debugging step by step in .net, I'd like to step into a called stored procedure. 因此,当在.net中逐步调试时,我想进入一个被调用的存储过程。

I know how to debug them individually, but I'd like to join these debug sessions in order to gain some time. 我知道如何单独调试它们,但我想加入这些调试会话以获得一些时间。

I've always found this a little tricky, but it is possible. 我总觉得这有点棘手,但有可能。

First you have to enable T-SQL debugging in the IDE for the project/solution, then you have to set up the database connection as part of the project/solution. 首先,您必须在IDE中为项目/解决方案启用T-SQL调试,然后您必须将数据库连接设置为项目/解决方案的一部分。

Actually stepping into a stored procedure appears to be troublesome, but if you open the stored procedure code and explicitly set a breakpoint in there, it will hit the breakpoint. 实际上,单步执行存储过程似乎很麻烦,但是如果打开存储过程代码并在那里明确设置断点,它将会遇到断点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server UDT和存储过程从.Net代码中修整十进制数字值 - SQL Server UDT and stored procedure trimming decimal digit values from .Net code SQL Server:如果从.net代码中取消,则存储过程中打开的事务的默认操作 - SQL Server: Default action for opened transaction in a stored procedure if cancelled from .net code 无法通过sql server和代码执行存储过程 - Unable to execute stored procedure throught sql server and also from code 从C#代码调用SQL Server存储过程时出错 - Error calling SQL Server stored procedure from C# code 如何使用C#代码为SQL Server创建存储过程? - How To create a stored procedure for SQL Server from C# code? 如何在SQL Server中创建存储过程并通过C#代码使用该过程的一些参数从该过程中调用该过程 - How to create stored procedure in sql server and call that procedure from C# code behind with some parameters to that procedure 从 .net 代码在 Teradata 中创建存储过程 - Create stored procedure in Teradata from .net code C#代码与SQL Server 2008存储过程的性能比较 - C# code and SQL Server 2008 stored procedure performance comparison 如何将空变量从 C#.net 代码传递给 SQL 存储过程 - How to pass a null variable to a SQL Stored Procedure from C#.net code 将C#代码转换为SQL Server存储过程 - Converting C# code to SQL Server stored procedure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM