2. Then run the following SQL query on the Nintex Config DB:
select DB .DatabaseID, DatabaseName, SiteID, ServerName from Databases DB
right join Storage ST on st. DatabaseID = db. DatabaseID
3. This will retrieve all the sites that are mapped to a Nintex Content DB, make a note of the correct Database ID that site should be mapped to.
4 .Finally run the following Stored procedure on the Nintex Config DB, replacing with the DatabaseID (AAA) with the one found in the previous step, and the SiteID (BBB) with the one found in the first step.