Share via


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

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

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