Hi everyone,
I have a quick question regarding a PowerShell script I wrote to update a list on one of our site collections in SharePoint Foundation 2013. We recently migrated our SharePoint and SQL server over to a new server and I noticed that now one of my PowerShell scripts will not run. I ensured that all content databases were moved over and that each site collection was placed in the proper content database. However I am receiving the following error when running my PowerShell script:
Exception calling "Update" with "0" argument(s): "An error occurred on Write-Back operation 'Update': An error occurred while retrieving data from the data source.
Your provider / driver responded:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
This error seems to occur on lists that were created when on the old SharePoint/SQL servers. Any new lists that I create and run this PowerShell script on work fine. I believe that somehow pre-existing lists are still looking for the SQL server instance of our old server. If anyone has an idea of how to get this PowerShell script to work on existing lists could you please assist.
Thank you very much in advanced,
Brandon