A bug in SQL Server

Source: Internet
Author: User

The SQL enterprise manager script generation function is used to generate some view generation scripts to the client the other day.

However, there is a view named [Print _ sender information]

The "Print _" is automatically removed from the statement for generating the script to create the view. Other statements with the "Print _ XXXX" view are no problem.

The automatically generated script is as follows:

If exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [Print _ sender information] ') and objectproperty (ID, N 'isview') = 1)
Drop view [DBO]. [Print _ sender information]
Go

Set quoted_identifier on
Go
Set ansi_nulls on
Go

Create view DBO. Sender Information
As
Select ccname as sender name, printcfullname as sender's organization, ctel as sender's phone number,
Caccounts as sender account, caddress as sender address, cCity as sender city,
Cpostcode as sender zip code
From DBO. ctype

Go
Set quoted_identifier off
Go
Set ansi_nulls on
Go

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.