2011-10-24 11 views
8

मशीन को अपग्रेड करते समय, हमने विजुअल स्टूडियो प्रोजेक्ट खो दिया जिसका उपयोग एसएसआरएस रिपोर्ट बनाने के लिए किया गया था। डेटा स्रोत और रिपोर्ट अभी भी सर्वर पर मौजूद हैं। क्या SQL सर्वर पर इसका उपयोग करके वीएस प्रोजेक्ट को फिर से बनाने का कोई तरीका है? क्या कोई नई रिपोर्टिंग सेवा प्रोजेक्ट बनाने और मौजूदा डेटा स्रोतों और रिपोर्टों को आयात करने का कोई तरीका है?क्या विजुअल स्टूडियो में मौजूदा एसएसआरएस रिपोर्ट आयात करना संभव है?

मेरा मानना ​​है कि रिपोर्ट मूल रूप से वी.एस. 2005

उत्तर

9

तुम बहुत नहीं खोया का उपयोग कर बनाया गया था।

डेटा स्रोत अधिक नहीं हैं: डेटाबेस के लिए कनेक्शन स्ट्रिंग, और संभवतः कैशिंग और प्रमाणीकरण के लिए सेटिंग्स। इन्हें आसानी से पुनर्निर्मित किया जाना चाहिए।

प्रत्येक रिपोर्ट प्रकार के लिए रिपोर्ट परिभाषाएं (.rdl फ़ाइलें) डाउनलोड की जा सकती हैं, और एक नई रिपोर्टिंग सेवा प्रोजेक्ट में जोड़ा जा सकता है। उन्हें नए पुनर्निर्मित डेटा स्रोतों पर ध्यान देने की आवश्यकता होगी, लेकिन फिर ठीक होना चाहिए।

रिपोर्ट फ़ाइलों को डाउनलोड करने के लिए, रिपोर्टिंग सेवा रिपोर्ट प्रबंधक (वेबसाइट।) पर जाएं डिफ़ॉल्ट स्थापना विकल्पों के साथ SQL के डिफ़ॉल्ट उदाहरण के लिए यह http://servername/reports/ है यदि आपके पास व्यवस्थापकीय अनुमतियां हैं, तो आप रिपोर्ट के माध्यम से ब्राउज़ कर सकते हैं। किसी दिए गए रिपोर्ट के गुणों पर जाएं और संपादित करें ... बटन पर क्लिक करें। यह आपके ब्राउज़र के माध्यम से .rdl डाउनलोड करेगा। (एसएसआरएस 2008 में, संपादन बटन को "डाउनलोड करें ..." में बदल दिया गया था)

आपको यह पता लगाना होगा कि आप किस एसएसआरएस का संस्करण चला रहे हैं: बिजनेस इंटेलिजेंस डेवलपर स्टूडियो के विभिन्न संस्करण (बीआईडीएस, एसएसएएस और विजुअल स्टूडियो का एसएसआरएस संस्करण) एसएसआरएस के विशिष्ट संस्करणों के लिए रिपोर्ट बनाते हैं। रिपोर्ट को अपग्रेड किया जा सकता है, लेकिन एसएसआरएस के पुराने संस्करण में डाउनग्रेड या तैनात नहीं किया जा सकता है।

+0

धन्यवाद, यह उपयोगी है। हम माइक्रोसॉफ्ट एसक्यूएल सर्वर रिपोर्टिंग सेवा संस्करण 9.00.4053.00 का उपयोग कर रहे हैं। मैं अभी भी यह पता लगाने की कोशिश कर रहा हूं कि इन .rdl फ़ाइलों को कैसे डाउनलोड करें। मैंने कई महीनों तक रिपोर्टिंग सेवाओं का उपयोग नहीं किया है, और मैं अभी भी याद रखने की कोशिश कर रहा हूं कि मैंने इसे एक साल पहले कैसे सेट किया था ... –

+0

@Jamie_F धन्यवाद! इससे मुझे बहुत मदद मिली, और मैं समाधान का पुनर्निर्माण करने में सक्षम था। :-) –

+1

कृपया उत्तर में डेटा डाउनलोड/जोड़ने के लिए टिप्पणी के ब्योरे को ले जाने पर विचार करें। यह आईएमएचओ के जवाब का सबसे मूल्यवान हिस्सा था। – Glenn

-1

SSRS आप 1 बार में एक रिपोर्ट फ़ोल्डर से सभी रिपोर्ट डाउनलोड करने की अनुमति नहीं ...

हालांकि मैंने पाया और मैं शुद्ध जो हम पर बहुत अच्छा प्रभाव के लिए उपयोग पर पाया एसक्यूएल का एक सरल टुकड़ा बदलाव हमारी प्रणाली ...

यह है: -

/* 
People working on SSRS are well aware that “Report Manager” does not support downloading all the report files (.rdl files) at one go out-of-box. 
However take this script, alter the xxx parameters to your bits. Its works great. 
If you get a HOST Error - you need to set full permission to the SQL Server Group on your DOS Dir. 
on [Our_Prod_Server], this is: SQLServerMSSQLUser$NS226758$MSSQLSERVER 

NOTE: You will find a RETURN; statement below, comment it out once you have altered the parameters. 
*/ 

--Replace NULL with keywords of the ReportManager's Report Path, 
--if reports from any specific path are to be downloaded 
--select * from [ReportServer].[dbo].[Catalog] CL -- this gives you an idea of the Report Directories. 
DECLARE @FilterReportPath AS VARCHAR(500) = 'xxx' 

--Replace NULL with the keyword matching the Report File Name, 
--if any specific reports are to be downloaded 
DECLARE @FilterReportName AS VARCHAR(500) = '' 

--Replace this path with the Server Location where you want the 
--reports to be downloaded.. 
DECLARE @OutputPath AS VARCHAR(500) = 'C:\Users\[uuuuu]\Documents\Visual Studio 2012\Projects\Report Skeleton\[Report DIR Name]\' 

--Used to prepare the dynamic query 
DECLARE @TSQL AS NVARCHAR(MAX) 

RETURN; 

--Reset the OutputPath separator. 
SET @OutputPath = REPLACE(@OutputPath,'\','/') 

--Simple validation of OutputPath; this can be changed as per ones need. 
IF LTRIM(RTRIM(ISNULL(@OutputPath,''))) = '' 
BEGIN 
    SELECT 'Invalid Output Path' 
END 
ELSE 
BEGIN 
    --Prepare the query for download. 
    /* 
    Please note the following points - 
    1. The BCP command could be modified as per ones need. E.g. Providing UserName/Password, etc. 
    2. Please update the SSRS Report Database name. Currently, it is set to default - [ReportServer] 
    3. The BCP does not create missing Directories. So, additional logic could be implemented to handle that. 
    4. SSRS stores the XML items (Report RDL and Data Source definitions) using the UTF-8 encoding. 
     It just so happens that UTF-8 Unicode strings do not NEED to have a BOM and in fact ideally would not have one. 
     However, you will see some report items in your SSRS that begin with a specific sequence of bytes (0xEFBBBF). 
     That sequence is the UTF-8 Byte Order Mark. It’s character representation is the following three characters, “”. 
     While it is supported, it can cause problems with the conversion to XML, so it is removed. 
    */ 
    SET @TSQL = STUFF((SELECT 
         ';EXEC master..xp_cmdshell ''bcp " ' + 
         ' SELECT ' + 
         ' CONVERT(VARCHAR(MAX), ' + 
         '  CASE ' + 
         '   WHEN LEFT(C.Content,3) = 0xEFBBBF THEN STUFF(C.Content,1,3,'''''''') '+ 
         '   ELSE C.Content '+ 
         '  END) ' + 
         ' FROM ' + 
         ' [ReportServer].[dbo].[Catalog] CL ' + 
         ' CROSS APPLY (SELECT CONVERT(VARBINARY(MAX),CL.Content) Content) C ' + 
         ' WHERE ' + 
         ' CL.ItemID = ''''' + CONVERT(VARCHAR(MAX), CL.ItemID) + ''''' " queryout "' + @OutputPath + '' + CL.Name + '.rdl" ' + '-T -c -x''' 
        FROM 
         [ReportServer].[dbo].[Catalog] CL 
        WHERE 
         CL.[Type] = 2 --Report 
         AND '/' + CL.[Path] + '/' LIKE COALESCE('%/%' + @FilterReportPath + '%/%', '/' + CL.[Path] + '/') 
         AND CL.Name LIKE COALESCE('%' + @FilterReportName + '%', CL.Name) 
        FOR XML PATH('')), 1,1,'') 

    --SELECT @TSQL 

    --Execute the Dynamic Query 
    EXEC SP_EXECUTESQL @TSQL 
END 
संबंधित मुद्दे