Teach you how to get smart code tips on SQL Server)

Source: Internet
Author: User
Tags sql 2008 import database management studio sql server management sql server management studio

SQL write ratio. netProgramThere is no smart prompt. You need to remember keywords, functions, or constantly copy table field names, user-defined functions, stored procedures, and so on. However, in vs2010, we can use smart prompts, as shown in the following figures:

In the editor, Enter Shift + J (Note: In vs2010 development tool, CTRL + J should actually be SHIFT + J) to automatically open this smart prompt.

This function is also available in SQL Server Management studio in SQL 2008, but SQL 2005 does not. There are also some in vs2010. The following describes how to use this smart prompt in vs2010.

How does this function come out?

Follow the steps below to create and use the SQL server project to get a smart reminder experience.

Create a new SQL server project, as shown in, because I created the SQL Server 2008 database project here. This prompt is also displayed for the project that created SQL Server 2005.

Import the tables, stored procedures, and views of the database from an existing database, as shown in. Select this database project and select import database objects and settings from the context menu ". The database structure of this database will be imported into this project.

On the import Database Wizard Page, select the corresponding item as required, and click Start to import the data.

Here, the import extended properties option can help us to import the comments added by using sp_addextendedproperty.

After importing the database according to the above steps, we will get the smart prompt function shown in the previous figure when writing SQL in vs2010.

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.