Skip to main content
Nintex Community Menu Bar
Solved

Rename Forms ConfigDB

  • November 15, 2023
  • 1 reply
  • 46 views

Forum|alt.badge.img+1

Is there a way to rename the Forms Configuration Database?

The easiest way probably would be to “detach” the existing database, rename in SQL the re-attach it. While re-attaching an existing database is possible, it seems I am unable to find any way to detach the current Forms Configuration DB.

Best answer by nils_a

So, what I found was this: 
 

[System.Reflection.Assembly]::LoadWithPartialName("Nintex.Forms.SharePoint")
$nfsettings = [Nintex.Forms.SharePoint.Administration.FormsSettings]::Local
$nfsettings.RemoveDatabase($false)
$nfsettings.Update($true)

after that, and an IISReset, the database is removed from SharePoint, can be renamed and then re-added using the normal `Create-NFDatabase` Cmdlet.

1 reply

Forum|alt.badge.img+1
  • Author
  • Rookie
  • Answer
  • November 16, 2023

So, what I found was this: 
 

[System.Reflection.Assembly]::LoadWithPartialName("Nintex.Forms.SharePoint")
$nfsettings = [Nintex.Forms.SharePoint.Administration.FormsSettings]::Local
$nfsettings.RemoveDatabase($false)
$nfsettings.Update($true)

after that, and an IISReset, the database is removed from SharePoint, can be renamed and then re-added using the normal `Create-NFDatabase` Cmdlet.