Use SQL Server Management studio to create a view

Source: Internet
Author: User

When I use SQL Server Management studio of SQL Server 2005 to create a view, it seems that there are the following problems: I use it to create a view of the database under SQL Server 2000:

In the view, use select * From sometable to create a view, add a field to sometable, and then select this view. This field is not displayed, unless you re-run the view creation script. View with sp_helptextCodeIt is estimated that * is expanded internally into all fields.

If * is used when creating the view of the SQL Server 2005 database, it seems that after the creation is successful, it will expand * into all fields, you can see the expanded field when you open the view source code again. I remember it.

Although it may be more efficient to expand * into all fields, if it is not for the benefit of * (all fields in a table can be obtained anytime, anywhere, regardless of how the table is changed ), I won't use * either *.

I don't know how to solve this problem ......

Use the query analyzer to create a view.

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.