Expression Based Connection String Failing on Report Manager

Hello,
i have this report, where i want it the language selection to be dynamic. And so implemented the below expression, to my surprise everything works fine on BIDS but when i deploy to report Manager it errors out! (report manager language is en-US)
="Data Source=localhost;Initial Catalog=" & CHR(34) &"AdventureWorks
DW SSAS" &CHR(34)&";Locale Identifier=" & switch(User!Language="en-US","1033")
Any help would be greatly appreciated.
Thanks,
naveej

Hi naveej,
As per my understanding, connect string with “Locale Identifier” is used to select the language to make dataset return any translations we have present in the cube. The connect string which you posted is used to make the report with English language appears
to the user. After testing the connect string in my environment, it works well. Even when the report manager use other language (not en-US), the report also work well. So I’m curious about what error you received, could you post it more detail?
The following document about how language versions are used throughout a Reporting Services installation is for your reference:
http://msdn.microsoft.com/en-us/library/ms156493.aspx
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Linq2sql Connection string for crystal report. Report requires logon

    If I take out the connection string info the report runs fine from my machine but any other user it asks for logon information so I am trying to add the connection info. The line that is not compiling is `cr1.SetDatabaseLogon(connection, cr1);`
    What am I doing wrong? Any help would be appreciated!
        private void launchReport(int pKReport)
            using (DataClasses1DataContext db = new DataClasses1DataContext())
                var query = (from s in db.expenseHdrs
                             join d in db.expenseDtls on s.rptNo equals d.rptNo
                             where s.rptNo == pKReport
                             from g in db.employees
                             join r in db.expenseHdrs on g.pk equals r.empPk
                             select new
                                 s.period,
                                 s.description,
                                 s.department,
                                 s.rptNo,
                                 s.reimbursement, g.name,
                                 d.expDate,
                                 d.expType,
                                 d.expDesc
                CrystalReport1 cr1 = new CrystalReport1();
                ConnectionInfo connection = new ConnectionInfo();
                connection.DatabaseName = "intranet";
                connection.UserID = "sa";
                connection.Password = "*****";
                cr1.SetDatabaseLogon(connection, cr1);
                cr1.SetDataSource(query);
                crystalReportViewer1.ReportSource = cr1;
    I also tried changing the code after my query to below but I still have the exact same problem as before when I didnt have the connection string credentials. On every user but myself I get the same sql server login screen and no matter what I enter it fails. I think it is due to there being no database name which it will not allow me to manually enter.
         CrystalReport1 cr1 = new CrystalReport1();
                    cr1.FileName = @"C:\Intranet\CrystalReport1.rpt";
                    ConnectionInfo connectionInfo = new ConnectionInfo();
                    connectionInfo.ServerName = "svr-sql";
                    connectionInfo.DatabaseName = "intranet";
                    connectionInfo.UserID = "sa";
                    connectionInfo.Password = "*****";
                    SetDBLogonForReport(connectionInfo, cr1);
                    cr1.SetDataSource(query);
                    crystalReportViewer1.ReportSource = cr1;
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, CrystalReport reportDocument)
                Tables tables = reportDocument.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                    tableLogonInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogonInfo);

    The code I use is as follows:
    Dim crDatabase As Database
    Dim crTables As Tables
    Dim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo
    Dim crReportDocument As ReportDocument
    CrConnectionInfo = New ConnectionInfo
    With crConnectionInfo
    .ServerName = "dbconn1"
    .DatabaseName = "Pubs"
    .UserID = "vantech"
    .Password = "vantech"
    crDatabase = crReportDocument.Database
    crTables = crDatabase.Tables
    End With
    crDatabase = crReportDocument.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    This assumes that there are no subreports (or at least that if there are subreports, they use identical db connection info).
    My recommendation would be to test the above code with a simple test report (one table, one field). If you have subreports, you may need to set the logon for those also - depends on how the subreports are implemented. Subreport logon code would be something like this:
    Dim crSubreportDocument As ReportDocument
    crSubreportDocument = crReportDocument.OpenSubreport("Ron")
    crConnectionInfo = New ConnectionInfo
    With crConnectionInfo
    .ServerName = "Rcon1"
    .DatabaseName = "Northwind"
    .UserID = "vantech"
    .Password = "vantech"
    End With
    crDatabase = crSubreportDocument.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    Alternatively, you could download the db logon writing utility that is attached to this KB and implement that.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Connection String with Crystal Report XI R2

    Hello,
    I am having an issue with Crystal Reports XI R2 and figured this would be a good place to start and post my question.
    I created a report in Crystal Reports XI and am now trying to pass the user id and password so that the user can just run the report. I attempted to use the Crystal Report connection string setup but receive an Microsoft ODBC error when trying to use that.
    My question is how can you pass a userid and password to crystal report XI so that when you open the report it runs without prompting the user? I do not have access to .NET. Can this be done using Crystal Reports XI only?
    Thanks in advance for your help
    Shaun

    Hi Shawn,
    Standalone CR can only do that if using a URL to open a report in BOE.
    For CR Designer itself the only option is to turn on Trusted Authentication in your Server, used Mixed mode and then import all of your users into SQL Server. Refer to MS's Help file on how to.
    Now when the user runs the reports CR will simply pass the local user info to SQL Server and no prompting will be required. We still respect DB security so if the user is not allowed to access the table then CR respects that.
    Thank you
    Don

  • Connection string fails in CS3

    Please tell me how to correct the following connection string
    to my database found at
    www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb.
    The sting I'm using is
    "Provider=Microsoft.Jet.OLEDB.4.0;data
    source=www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb"
    I'm using Dreamweaver CS3.
    Cliff

    This works in an IIS server:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot\001145\ylac611b\HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    1. Type part exactly, including the double quote :
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot
    2. Get this part from your ISP:
    \001145\ylac611b
    the first six numbers are the host computer
    the second six characters replace your domain
    3. The last part is the path after your domain name:
    \HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    Include the double quote.
    Ask your ISP if your are in an IIS system.

  • SQL connection string failed for $ password

    Hi Team,
    I am not able to connect to SQL DB when password contains $ symbol. Please help me to open connection for this scenenrio.
    $sqlconstr = "Data Source=Server1;Initial Catalog=DB;User ID=User;pwd='$$XXXXX0';"
    $sqlconn = New-Object system.Data.SqlClient.SqlConnection
    $sqlconn.connectionstring = $sqlconstr
    $sqlconn.open()

    Thanks I tried below string & it worked
    $sqlconstr = 'Data Source=Server1;Initial Catalog=DB;User ID=User;pwd=$$XXXXX0;'

  • Report Designer odbc connection string for data source using a parameter

    I am using stand alone report designer 3 for the present and have a question/problem regarding the odbc connection string for MySQL when setting up the data-source
    I need to be able to enter a parameter which is the database name i.e. BOE-201401 or say BOE-201312 etc  from a list of databases the user can choose from.
    at present the odbc connection string points to BOE-201402
    the connection string is at present  Dsn=Development Server for MYsql;description=MYSQL;server=ldndw01;database=BOE-201402;port=3306
    my parameter has the name BOE_DATABASE
    and in an expression it is  as such
    =Parameters!BOE_DATABASE.Value
    I want to point the datasource for the report to the parameter value before the user sees the report.

    Hi Leslie,
    Based on your description, we want to design a report with a dynamic DataSource connection string. There are the basic steps below for your reference:
    Create report with static database.
    Change data source to report parameter.
    Send new database connection string as a report parameter. 
    More detail information, please refer to the following blog: Dynamic Database in SSRS 2008.
    http://haseebmukhtar.wordpress.com/2011/11/09/dynamic-database-in-ssrs-2008/
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Report model dynamic connection string

    hi 
    I'm trying to build a report model,which has to connect to different database 
    For ex:
    I've 10 different customers, and i need to connect the selected customer database, 
    Any thoughts how to proceed in this 
    Thanks
    Chezhian 

    Hi Chezhian,
    As per my understanding, I would try the two methods to achieve your requirement: create one report model which contains those databases or create 10 report model, the data source can connect to the corresponding model based on the user. In Reporting Services,
    a report model can only map to a database. So the first method doesn’t work. If we want to connect to a report model, we should browse to a report server or SharePoint site and select a published model. We don’t need a connection string to use a report model
    as a data source. So the second method still doesn’t work.
    To work around the issue, I think we can create 10 report model, each report model corresponding each user’s database and named the user name. Then set Item-Level Permissions of each report model based on the user on report manager. Each user can only see
    his own report model on the report server.
    Or we can create a data source with dynamic connection string, the blog below is for your reference:
    http://blogs.msdn.com/b/bimusings/archive/2006/07/20/673051.aspx
    References:
    Report Model Connection (SSRS)
    Setting Item-Level Permissions on a Report Server
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Find Connection String used by SQL Server Management Studio

    I am having problems getting my VS C# .NET application to connect to a SQL Server Database, even though I can connect to it (on the same machine) using SQL Server Management Studio.
    Is there any way I can find the connection string that SQL Server Management Studio generates when it connects?

    Hi,
    As you have Visual Studio on your machine, I think we can also use the Visual Database Tools of Visual Studio to generate the connection string.
    Please:
    1. Create a new data connection to the SQL Server database in the
    Server Explorer of Visual Studio
    2. After the connection is established, right-click on the connection name and select
    Properties. There is an item called Connection String in the
    Properties window.
    Reference:
    How to: Add New Data Connections in Server Explorer/Database Explorer 
    http://msdn.microsoft.com/en-us/library/3d1wkhas.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • Invalid Object Name When Executing from Report Manager

    I ran some code to create a modified view of ExecutionLog3 on a SQL Server 2012 instance.  The ReportServer and ReportServerTempDB were transferred from a 2005 instance and are still on that compatibility level. After creating the new view, I 
    created a report in SSDT and it runs fine.  I deployed the dataset followed by the report.  I went to Report Manager to test it and the report fails with the following:
    An error has occurred during report processing. (rsProcessingAborted)
    The execution failed for the shared data set
    'ExecutionLog'. (rsDataSetExecutionError)
    Query execution failed for dataset ''. (rsErrorExecutingCommand)
    Invalid object name 'ExecutionLog3_Modified'.
    The code for the view is below and it came from MSSQLTips.  Why does the report run fine from SSDT and fail in Report Manager?
    USE [ReportServer]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE VIEW [dbo].[ExecutionLog3_Modified]
    AS
    SELECT
    EL.InstanceName,
    COALESCE(C.Path, 'Unknown') AS ItemPath,
    EL.UserName,
    EL.ExecutionId,
    CASE(EL.RequestType)
    WHEN 0 THEN 'Interactive'
    WHEN 1 THEN 'Subscription'
    WHEN 2 THEN 'Refresh Cache'
    ELSE 'Unknown'
    END AS RequestType,
    -- SubscriptionId,
    EL.Format,
    Parameters,
    CASE(EL.ReportAction)
    WHEN 1 THEN 'Render'
    WHEN 2 THEN 'BookmarkNavigation'
    WHEN 3 THEN 'DocumentMapNavigation'
    WHEN 4 THEN 'DrillThrough'
    WHEN 5 THEN 'FindString'
    WHEN 6 THEN 'GetDocumentMap'
    WHEN 7 THEN 'Toggle'
    WHEN 8 THEN 'Sort'
    WHEN 9 THEN 'Execute'
    ELSE 'Unknown'
    END AS ItemAction,
    EL.TimeStart,
    YEAR(EL.TimeStart) AS Start_Year,
    MONTH(EL.TimeStart) AS Start_Month,
    DATENAME(MONTH,EL.TimeStart) AS Start_Month_Name,
    DATENAME(DW,EL.TimeStart) AS Start_Day_Of_Week,
    DATEPART(WEEKDAY,EL.TimeStart) AS Start_Day_Number_of_Week,
    EL.TimeEnd,
    EL.TimeDataRetrieval,
    EL.TimeProcessing,
    EL.TimeRendering,
    CASE(EL.Source)
    WHEN 1 THEN 'Live'
    WHEN 2 THEN 'Cache'
    WHEN 3 THEN 'Snapshot'
    WHEN 4 THEN 'History'
    WHEN 5 THEN 'AdHoc'
    WHEN 6 THEN 'Session'
    WHEN 7 THEN 'Rdce'
    ELSE 'Unknown'
    END AS Source,
    EL.Status,
    EL.ByteCount,
    EL.[RowCount],
    EL.AdditionalInfo,
    C.Name,
    C.CreatedByID,
    C.ModifiedByID,
    C.Description,
    C.CreationDate,
    C.ModifiedDate,
    CASE
    WHEN C.TYPE=1 THEN 'Folder'
    WHEN C.TYPE=2 THEN 'Report'
    WHEN C.TYPE=3 THEN 'XML'
    WHEN C.TYPE=4 THEN 'Linked Report'
    WHEN C.TYPE=5 THEN 'Data Source'
    WHEN C.TYPE=6 THEN 'Model'
    WHEN C.TYPE=8 THEN 'Shared Dataset'
    WHEN C.TYPE=9 THEN 'Report Part'
    END AS Type_Description
    FROM
    ExecutionLogStorage AS EL
    LEFT OUTER JOIN Catalog AS C ON (EL.ReportID = C.ItemID)
    GO
    Lee Markum

    Hi Lee,
    According to your description, you can't process the dataset when viewing the report on report server. Right?
    In this scenario, as you can see the dataset name in error message is empty, and it says "Invalid Object Name". Because you have already created a view in your database. When you run this report again, this query be executed again so that you can
    not create another view with same name. So you just need to query the view directly when creating dataset. 
    Select * from ExecutionLog3_Modify
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Setting up connection using a single connection string.

    Post Author: DubbleOh7
    CA Forum: Data Connectivity and SQL
    I know about the ConnectionInfo object in for .NET crystal reports, but for security purposes we don't have access to a password of any kind, nor do we pass them around our web pages, they are used for login access only. So how can I just set a connection string for the report to access a SQL Server database? I prefer NOT to do the Dataset work around. Its a busy server and the report could contain up to 20,000 records with lots of fields. Not efficient. I also know I could make an object fill it with data from a data reader, but not sure thats as efficient as just having the report execute the stored procedure I have. I also don't want the report to pop up that login page automatically for the users since they have already logged into the website. I'm looking forward to any ideas or suggestions. Thanks in advance for any info or suggestions you may have!
    Summary:
    I don't want to use datasets due to inefficiency and overhead of several thousand records.
    I just want to be able to use a connection string using windows authentication enabled for the report connection to a SQL Server database.
    This is for SQL 2K5..calling a stored procedure
    Crystal reports for ASP.NET (VB language solutions preferred)
    Basically I'd like to use a trusted connection and
    ReportConnection.ServerName = "SERVER"
    ReportConnection.DatabaseName = "DATABASE"
    ReportConnection.IntegratedSecurity = True
    doesn't get me there.

    If your Internet Service Provider is DSL follow this link

  • "Software Usage Metrics initialize failed" error when open Report Manager, after moving ReportServer from SSRS 2008 to SSRS 2012 (Native Mode)

    I've asked this question in SQL Server Upgrade forume, I'm asking here as well:
    Your help is highly appreciated!
    After migrating ReportServer db from 2008 to 2012, when access Report Manager throughhttp://myserver:80/Reports, I got the error below:
    ui!ReportManager_0-3!11d8!02/04/2013-15:19:12:: e ERROR: Software Usage Metrics initialize failed
    The process is below:
    •I successfully installed SQL Server 2012 (64-bit) Enterprise as a Native Mode on a server who runs Windows 7 Enterprise SP1 (64-bit).
    •I restored "ReportServer2008To2012" and "ReportServer2008To2012TempDB" in SSRS 2012 from the db files backed up in SQL 2008. In SSRS 2008, I have SSRS Model, ad-hoc reports based on model, and I also have canned reports built through BIDS
    report server project.
    •I reconfigured both databases' Compatibility level to SQL Server 2012(110) from SQL Server 2008(100).
    •I configured SSRS through Reporting Services Configuration Manager as below:
      > I chosen "Use built-in account:" as Service Account
    > In "Database" tab, I selected "Choose an existing report server database" and choose "ReportServer2008To2012" db, I used "Windows Authentication" (my login has the System Administrator priviledge). I got all 4 parts
    success: Verifying database sku = Success; Generating rights scripts = Success; Applying connection rights = Success; Setting DSN = Success.
    > I went to "Scale-out Deployment" to check if the initializing succeed, I found nothing there.
    Here are what I did from different approaches:
    A •I went to "Encryption Keys" and restored the key I backed up from SSRS 2008, after retoring, I got two initialized instances: One is on my current server (SSRS 2012), the other one is from the old server (SSRS 2008).
       I deleted the old one(SSRS 2008) through "Remove Server" action and kept the one on my current server(SSRS 2012).
       After I restart SSRS service, and tried to connect Report Manager, I got "An internal error occurred on the report server. See the error log for more details."
       I checked the log file, the error is actually "ERROR: Software Usage Metrics initialize failed"
    B •I also tried to "Delete Encrypted Content" and did see the SSRS was initialized through checking it on "Scale-out Deployment", however when I tried to open Report Manager, I got the same error.
    Anyone had the same issue? Any solution? Thanks in advance!

    Your help is highly appreciated!
    After migrating ReportServer db from 2008 to 2012, when access Report Manager through
    http://myserver:80/Reports, I got the error below:
    ui!ReportManager_0-3!11d8!02/04/2013-15:19:12:: e ERROR: Software Usage Metrics initialize failed
    The process is below:
    •I successfully installed SQL Server 2012 (64-bit) Enterprise as a Native Mode on a server who runs Windows 7 Enterprise SP1 (64-bit).
    •I restored "ReportServer2008To2012" and "ReportServer2008To2012TempDB" in SSRS 2012 from the db files backed up in SQL 2008. In SSRS 2008, I have SSRS Model, ad-hoc reports based on model, and I also have canned reports built through BIDS
    report server project.
    •I reconfigured both databases' Compatibility level to SQL Server 2012(110) from SQL Server 2008(100).
    •I configured SSRS through Reporting Services Configuration Manager as below:
     > I chosen "Use built-in account:" as Service Account
     > In "Database" tab, I selected "Choose an existing report server database" and choose "ReportServer2008To2012" db, I used "Windows Authentication" (my login has the System Administrator priviledge). I got all
    4 parts success: Verifying database sku = Success; Generating rights scripts = Success; Applying connection rights = Success; Setting DSN = Success.
     > I went to "Scale-out Deployment" to check if the initializing succeed, I found nothing there.
    Here are what I did from different approaches:
    A •I went to "Encryption Keys" and restored the key I backed up from SSRS 2008, after retoring, I got two initialized instances: One is on my current server (SSRS 2012), the other one is from the old server (SSRS 2008).
       I deleted the old one(SSRS 2008) through "Remove Server" action and kept the one on my current server(SSRS 2012).
       After I restart SSRS service, and tried to connect Report Manager, I got "An internal error occurred on the report server. See the error log for more details."
       I checked the log file, the error is actually "ERROR: Software Usage Metrics initialize failed"
    B •I also tried to "Delete Encrypted Content" and did see the SSRS was initialized through checking it on "Scale-out Deployment", however when I tried to open Report Manager, I got the same error.
    Anyone had the same issue? Any solution? Thanks in advance!

  • Getting Error:Failed to open the connection while calling crystal report

    I am getting the below error while calling the crystal report from dot net app. I am using OLEDB to connect to database. It is working perfectly in our DEV environment but as soon as I move it to production information after changing the logon information in the report it start giving the below error.
    Failed to open the connection.C:\WINDOWS\TEMP{C2FD97D9-2ADE-41BB-88FF-23A4DF20BC6F}.rpt
    Details: [Database Vendor Code: 17 ]

    Are you able to connect to the database from the production machine using a UDL file?
    If you haven't tried this, here's how to do it. Take these steps on the machine that is hosting the application. Create a new text file on the desktop. Change the file extension to ".udl" (without the quotes). Double-click on this to bring up the OLEDB connection test: start on the Provider tab and select the appropriate provider. Click "Next" and on the following tab enter your connection information. Click the "Test Connection" button to test the connection. Does it connect  to the database successfully?
    If you click on "OK" to close the dialog and then open the UDL file with Notepad, you should see an OLEDB connection string. In this string should be the same property values for server, database, user id and password which you are providing through your application. If they are not the same, modify your application to use these values.
    If testing your connection information with the UDL file works but your application is still failing when using the same credentials, try profiling or tracing the database. Do you see connection attempts from the application? Are there any errors?
    If you're impersonating, have you set up windows authentication correctly for both the application and the database?

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • Users Cannot Connect to Report Manager

    Hello all,
    I've done some searching and tried a few things, but nothing has worked.
    I recently started working with SSRS and created two reports.  I deployed them to the server, but when I type in http://servername/reports in a browser, I get the home page, but it says 'Error - Unable to Connect to the Remote Server'
    Here is what is in the log file after the <HEADER> section:
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing ReportBuilderTrustLevel to '0' as specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing MaxScheduleWait to default value of '1' second(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing DatabaseQueryTimeout to default value of '30' second(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing ProcessRecycleOptions to default value of '0' because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing RunningRequestsScavengerCycle to default value of '30' second(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing RunningRequestsDbCycle to default value of '30' second(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing RunningRequestsAge to default value of '30' second(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing CleanupCycleMinutes to default value of '10' minute(s) because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing WatsonFlags to default value of '1064' because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing WatsonDumpOnExceptions to default value of 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to default value of 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing SecureConnectionLevel to default value of '1' because it was not specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
    w3wp!library!1!7/17/2008-07:45:32:: i INFO: Initializing WebServiceUseFileShareStorage to default value of 'False' because it was not specified in Configuration file.
    w3wp!ui!6!7/17/2008-07:45:47:: e ERROR: Unable to connect to the remote server
    w3wp!ui!6!7/17/2008-07:45:48:: e ERROR: HTTP status code --> 500
    -------Details--------
    System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:80
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---
    at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()
    at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetSecureMethods()
    at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)
    at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()
    at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel level)
    at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Web.UI.Control.OnInit(EventArgs e)
    at System.Web.UI.Page.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    w3wp!ui!6!7/17/2008-07:45:50:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.
    at System.Threading.Thread.AbortInternal()
    at System.Threading.Thread.Abort(Object stateInfo)
    at System.Web.HttpResponse.End()
    at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
    at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at at System.Threading.Thread.AbortInternal()
    at System.Threading.Thread.Abort(Object stateInfo)
    at System.Web.HttpResponse.End()
    at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
    at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    Server Setup:
    Windows Server 2003 R2
    SQL Server 2005 (trial version) SP2
    IIS 6
    ASP.Net 2.0.50727
    AVG Antivirus
    The report server is on the same server as SQL Server
    Settings under 'Configure Report Server' in Reporting Services: Configuration:
    Server Status = Check
    Report Server VD = Check
    Report Manager VD = Check
    Windows Service Identity = Check
    Web Service Identity = Check
    Database Setup = Check
    SharePoint Integration = Optional Configuration
    Encryption Keys = Optional Configuration
    Email Settings = Recommended configuration
    Execution Account = Recommended configuration
    Things I've Tried:
    On the server:
    Using Localhost or 127.0.0.1 /reports - 'Internet Explorer cannot display the webpage
    Turning off Windows Firewall - still nothing
    Checked the ReportManager RSWebApplication.config and ReportServer rsreportserver.config files and they seem fine.
    Other than trying to reinstall IIS and ASP components, I would really appreciate any help.
    Thanks very much!
    JB

    Well, I found something that worked for me.
    I found a blog post by Ryan Nielsen and it included these instructions:
    Original Post
    Article Text:
    Reporting Services - Unable to Connect to Remote Server Error After a restart reporting services, you may come up with Unable to Connect to Remote Server Error when navigating to the web access. Typically an issue like this occurs in the RSWebApplication.config. This file is located in the ReportManager Folder (Example: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager) I checked the <reportserverurl> and <reportservervirtualdirectory> tags were the same as before.
    <ReportServerUrl></ReportServerUrl>
    <ReportServerVirtualDirectory>ReportServer</ReportServerVirtualDirectory>
    <ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
    After changing the ReportServerUrl tag to contain both the server URL and the virtual directory, it could then connect to the remote server.
    <ReportServerUrl>http://Server/ReportServer/</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    <ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
    No IP addresses were added or was any IIS settings that I could tell. Leaving the ReportServerUrl tag blank should allow for it to find the server locally.
    End Article Text
    I did this and restarted the Reporting Services service and it now works without a problem.
    I hope this helps someone.
    JB

  • Cannot upload report to report manager 2008R2 : The underlying connection was closed: An unexpected error occurred on a receive

    Hi all,
    I cannot upload a report to our report manager. The message returned in report manager is: The underlying connection was closed: An unexpected error occurred on a receive
    I have checked the report server log file and found the below...
    Any assistance greatly appreciated.
    Thanks, Clay
    -------Details--------
    System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --->
    System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
       --- End of inner exception stack trace ---
       at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
       at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.SqlServer.ReportingServices2005.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
       at Microsoft.ReportingServices.UI.ImportPageCtrl.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at Microsoft.ReportingServices.UI.ScriptButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Hi clay,
    Per my understanding that you got some error when you upload reports in the report manager, right?
    I have checked the log and the issue can be caused by many factors.
    It can be caused by the size of the report is too big which will sent the request in its entirety and got a TCP ACK-FIN or RST from server to close the connection, without a response from server when uploading the reports. We can follow these steps
    to increase the request size to resolve the issue:
    Add the following registry key with the following value:
     Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
     Value: DWORD "MaxRequestBytes"  set it to a value of 5242880 (5MB). (This number is alterable).
    Stop the SRS Windows Service.
    From a cmd prompt run "net stop http" then "net start http".
    Try and upload your report.
    Details information please reference to this similar thread:
    http://stackoverflow.com/questions/2238494/cant-deploy-or-upload-large-ssrs-2008-report-from-vs-or-ie
    If the above didn't help, please also check below information: 
    configure the rsreportserver.config file and make the SecureConnectionLevel value set to 0 to solve the problem. By default, the file is under the path:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer
    You can refer to the code below:
    < Add Key="SecureConnectionLevel" Value="0"/>
    The SecureConnectionLevel property allows values of 0,1,2,3, with 0 indicating that Secure Socket Layer is not required for any of the Web service methods. And a positive integer indicates Secure Socket Layer is required for all the Web service methods.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • How do I stop my MacBook sleeping without a display

    Hi all, I have a MacBook Pro 13 joined up (alongside my PS3) to an Apple 24" LED Display (they are on a switcher - HD620). However, when I flip over to the HDMI input from the PS3, and therefore the MacBook Pro ceases to be using the 1920x1200 input

  • Edited photos pixelated in cover flow preview...

    I recently bought a Nikon D90. The images are pristine, but I like to correct the color of every picture I shoot using Photoshop CS4 and then import the corrected image into Aperture. My problem is that when I correct the color using AutoLevels in Ph

  • Sales Order Book issue

    Hi experts, I have to sales order of 1000 qty today from customer ABC , now I have 200 qty production capacity  in each plant  so I have to dispatch qty from 5 plants. So how I can reserve the stock for this sales order ,because another person  can b

  • How to add a dynamic menu to the Portal?

    Dear all, I am restructuring the company's Intranet on which I plan to put a left-side vertical menu. On the menu, most links are accessible to all Intranet users except some KPI (key performance indicators) links which are only accessible to manager

  • TS1702 Help, please !  my IPad has no sound !

    Help, please. My FB on my iPad crashedseveral times today, afterhich Ihave nosound on my iPad. Have tried all the options I know, such as reinstalling FB, andYou Tube.but still no sound. Can someone tell me what to do ? Many thanks.