Debugging stored procedures in SQL Server

Source: Internet
Author: User
Tags sql server driver odbc sql server driver
Debugging:

In SQL query-Object Browser-stored procedure-select the stored procedure to be debugged-right-click-select debug) -input parameters-> -- after setting your parameter values-click to execute, a floating toolbar is displayed with single-step execution and breakpoint settings.

--- Tracking:

Start->Program-> MS sqlserver-> SQL profiler> File> New> trace .. Then the database call status will be displayed.

FAQ:
Server: Message 514, level 16, status 1, process sp_sdidebug, line 1
[Microsoft] [odbc SQL Server Driver] [SQL Server] cannot contact the debugging program on gisworld \ gisqland (error = 0x80070005 ). Debugging for connection 54 is disabled.

Suddenly remember to log in with a "Local SYSTEM account", while SQL server runs as a service and cannot debug the stored procedure. The solution is as follows:
Control Panel-> Administrative Tools-> services-> MSSQL (default ID)-> properties-> login-> select a Windows Account and enter the password, restart SQL Server 2000 to debug the stored procedure.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.