Compartir a través de


How to: Rename Scripts

You can rename scripts. The renamed script is added to your project, but the old script is not removed. If you wish to only have the newly renamed script in your project, you must remove the old script manually.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Customizing Development Settings in Visual Studio.

To rename a script

  1. Right-click the script in Solution Explorer and from the shortcut menu click Rename.

    -or-

    Open the script you want to rename in Solution Explorer.

  2. From the File menu, choose Save <name> As, where <name> is the name of your script.

  3. In the Save File As dialog box, type a new name for your script.

Scripts must have unique names. If the name is already assigned to another database object, a message prompts you to choose another name.

See Also

Other Resources

Working with Scripts