How to save a query in SQL server

When developers working with SQL Server “Denali”, MS SQL Server 2008 R2 and MS SQL Server 2005 want to save a query, they should follow the next steps:

1. Create their query.

2. From the File menu, click Save <query_name>. A newly created query will be given a system name. To choose their own name for the query choose Save <query_name> As.

3. The query will be saved in the Query folder of the project in Solution Explorer.