Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitefinitysteve/2868535 to your computer and use it in GitHub Desktop.
Save sitefinitysteve/2868535 to your computer and use it in GitHub Desktop.
Sitefinity Rename Forms Database Table
-- the old name of the form
declare @oldName nvarchar(30) = 'sf_table_name';
-- the new name of the form
declare @newName nvarchar(30) = 'sf_table_name';
-- rename the table with form entries
exec sp_rename @oldName, @newName;
-- change the form name in the forms description
update [sf_form_description]
set [nme] = @newName
where [nme] = @oldName;
-- change the type name of the form in the meta types
update [sf_meta_types]
set [class_name] = @newName
where [class_name] = @oldName;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment