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
Thanks for the post!
Yeh. Though users are readonly they are still users in the site. In Alternatively you can use EnsureUser method by parsing userlogin
This is getting all the users in the site including user in groups but if you have LoginName it is better to use EnsureUser("domain\Loginname")
Yeah you can get the logged on user detail by accessing spcontext.current user