How to copy you production SharePoint database to development environment. I had my production environment as SharePoint 2013 SQL Server 2012 and I want to move the instance to another environment , which is freshly installed and different environment and different KBs Share Point 2013 SQL Server 2016 How to migrate SharePoint 2013 , SQL Server 2012 Content Database to SharePoint 2013 SQL Server 2016. Method 1. This is a general method, which is used for upgrading your content database. 1 . Get the back up of the current Content Database 2. Copy SQL backup to new environment 3. Restore the SQL Back Up in to the new environment 4. Go to the Security Login section and grant permission to content database for existing SharePoint Users. 5. You need to select the User mapping and DBO for the content database. 6 Then, execute below PS in SharePoint PowerShell. Make sure you executed as Run as Administrator 7 Firstly, You need to Update the content database. 8. then, mount the usi...
Comments
I have used code similar to this and I found that it doesn't work if your SQL database uses the "User Instance = true" parameter in the connection string.
What happens is SQL Server 2005 throws an exception with the following message: "Could not locate entry in sysdatabases for database ‘database name'. No entry found with that name. Make sure that the name is entered correctly".
That makes this backup mechanism infeasible for embedded SQL applications that run locally in single-user mode.
I am currently investigating backing up this database to an XML file instead.
Any ideas would be appreciated.