Quantcast
Channel: Microsoft Dynamics GP Forum - Recent Threads
Viewing all articles
Browse latest Browse all 32807

Moving Servers and View for SSRS reports

$
0
0

If you move your GP databases to a new server or create a test company based on an existing company, you will find many of the SSRS reports or Business Analyzer return no data. This is because the SQL views behind these reports have the sql server instance and database name embedded in them. You can use this script to create another script that will correct this. You will need to go into SSMS and run this script and then File->Save Results As. When you pull up this script you then need to change all occurrences of CREATE VIEW to ALTER VIEW.

SELECT  REPLACE(OBJECT_DEFINITION(object_id),'Old_Server_Name','New_Server_Name')+CHAR(13)+CHAR(10)+'GO'

FROM

sys.views

WHERE

CHARINDEX('Old_Server_Name',OBJECT_DEFINITION(object_id))> 0

 


Viewing all articles
Browse latest Browse all 32807

Trending Articles