When developers working with SQL Server “Denali”, MS SQL Server 2008 R2 and MS SQL Server 2005 want to rename a query, they should follow the next steps:
1. From the View menu, choose Solution Explorer.
2. In Solution Explorer, right-click the query they want to rename and click Rename in the shortcut menu that appears.
3. Type a new name for the query and then press Enter.