SQL Server 2000 stored procedures, checking the syntax is an interesting phenomenon.

Source: Internet
Author: User

A table named TQ has the following structure:
Tq1, varchar
Tq2, varchar
In the Enterprise Manager, create a stored procedure:
Create procedure inserttq
As
Insert into TQ
(Tq1, tq2, tq3)
Values
('A', 'B', 'C ')
Go
There are no errors in the syntax of Several SQL statements,
However, if you press "Check Syntax", it will report that the column name is invalid in tq3.
And the sameCodeYou get the query analyzer and check the syntax.
The check syntax in the Enterprise Manager is not just a simple check for syntax-level errors,
Check whether this field exists in the table to prevent mistakes and field names.

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.