<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to move the FEP Databases and the CM Site Database</title><link>http://blogs.technet.com/b/clientsecurity/archive/2011/07/14/how-to-move-the-fep-databases-and-the-cm-site-database.aspx</link><description>by Jeramy Skidmore You can move the Configuration Manager site database and associated Forefront Endpoint Protection (FEP) databases after setup has completed to a different SQL Server computer system by: Backing up the FEP data warehouse (FEPDW_&amp;lt;s</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to move the FEP Databases and the CM Site Database</title><link>http://blogs.technet.com/b/clientsecurity/archive/2011/07/14/how-to-move-the-fep-databases-and-the-cm-site-database.aspx#3546588</link><pubDate>Fri, 18 Jan 2013 02:15:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3546588</guid><dc:creator>Kriss Milne</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I recently ran into this issue when migrating the FEP database and it wasn&amp;#39;t acceptable to loose the historical data.&lt;/p&gt;
&lt;p&gt;I isolated and identified the root cause of the problem and have managed to successfully migrate the FEP database and all of my FEP reports are successfully working.&lt;/p&gt;
&lt;p&gt;I wanted to share here the solution for others that run into this issue:&lt;/p&gt;
&lt;p&gt;The problem is that some of the views in the FEPDW database reference the local SQL server by a linkedserver instead of the actual servername, this is by design to provide the felxibility of changing servers etc...&lt;/p&gt;
&lt;p&gt;The problem is that when running the ServerSetup.exe and using an existing database (the migrated one) it doesn&amp;#39;t create the linkedserver references and as such the views in the FEPDW database do not work.&lt;/p&gt;
&lt;p&gt;You can use the following SQL query to view the linkedserver entries:&lt;/p&gt;
&lt;p&gt;select *&lt;/p&gt;
&lt;p&gt;from sys.servers&lt;/p&gt;
&lt;p&gt;The two entries that are required by the FEP database are:&lt;/p&gt;
&lt;p&gt;SelfLinkedServer&lt;/p&gt;
&lt;p&gt;FEPDW_ORG_FEPDW_ORG_OLAPProvider_FEP&lt;/p&gt;
&lt;p&gt;on the new SQL Server that you are migrating to you must create these linkedserver entries, the following queries can be used to do this:&lt;/p&gt;
&lt;p&gt;for SelfLinkedServer:&lt;/p&gt;
&lt;p&gt;Exec sp_addlinkedserver&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @server = &amp;#39;SelfLinkedServer&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @srvproduct = &amp;#39;&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @provider = &amp;#39;SQLNCLI&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @datasrc = &amp;#39;SQLSERVERNAME\INSTANCE&amp;#39;&lt;/p&gt;
&lt;p&gt;NOTE: - SQLSERVERNAME\INSTANCE is the servername and instancename of your sql server&lt;/p&gt;
&lt;p&gt;for FEPDW_ORG_FEPDW_ORG_OLAPProvider_FEP:&lt;/p&gt;
&lt;p&gt;Exec sp_addlinkedserver&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @server = &amp;#39;FEPDW_ORG_FEPDW_ORG_OLAPProvider_FEP&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @srvproduct = &amp;#39;&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @provider = &amp;#39;MSOLAP&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @datasrc = &amp;#39;SQLSERVERNAME\INSTANCE&amp;#39;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; @catalog = &amp;#39;FEPDW_SITECODE&amp;#39;&lt;/p&gt;
&lt;p&gt;NOTE: - FEPDW_SITECODE is the name of your FEPDW database&lt;/p&gt;
&lt;p&gt;After performing these actions you should be able to successfully migrate the FEP database using the FEP ServerSetup.exe&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3546588" width="1" height="1"&gt;</description></item></channel></rss>