Debug stored procedures and oracle debug stored procedures

Source: Internet
Author: User

Debug stored procedures and oracle debug stored procedures
Problem background


N lines of code are written in the stored procedure. As soon as the result is run, an error is reported in the database. So how can we immediately test the village crude process after writing the stored procedure?

Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------

Difficulties

1, do not write T-SQL to correctly execute the Stored Procedure

Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------

Proposed Solution


When you want to debug the stored procedure, Microsoft must have already thought of and done it. Microsoft must have developed a "silly" tool for those who do not have good database programming skills. We should look at the stored procedure with two more eyes. We can certainly find them.

Bytes ------------------------------------------------------------------------------------------------------


Practice Process


The following prompt box is displayed:

Then confirm the execution and automatically generate the T-SQL to execute the stored procedure.


The following is a one-step debugging in the T-SQL Statement by F11.

Note that the output window shows the real-time value of each variable.

Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------

Summary

1. The software designer has come up with and developed it. Such a software development team is more powerful.

2. When you encounter difficulties, you may have to look at the difficulties. The answer may be something you didn't think.

3. This method is suitable for junior developers. A more efficient method is to master T-SQL.



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.