Remote report processing requires Microsoft SQL Server 2008 reporting Services or later - reportingservices-2005

I have already create a SQL server 2005 report and host it successfully in sql server 2008 server .The report can be viewed in the browser .Now I want to integrate the report in a WPF application.And I used the report viewer control to display the report. I am using .net 4.0 framework and VS 2010.Below is the code for rendering the report.Below is the code that successfully rendering the report in the page when I am using sql server 2008 R2 edition.
try
{
repViewer.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote;
repViewer.ServerReport.ReportServerUrl = new Uri("http://tfs /ReportServer$Sql2005");
repViewer.ServerReport.ReportPath = "/Suman Reports/Report1";
repViewer.RefreshReport();
}
catch (Exception ex)
{
throw ex;
}
give me the message "Remote report processing requires Microsoft SQL Server 2008 reporting Services or later".Is there any option to use it in the wpf application with out changing to sql server 2008.I am new in the field of SSRS & integration .Please guide me on thise.

Related

Unable to connect to Oracle database from SSAS

I am attempting to create a Sql Server Analysis Services Tabular Model and am having trouble accessing an Oracle database for importing data. I am using the following:
OS
-Windows 10 Enterprise (I am administrator of machine)
Tools to create tabluar cube:
-Visual Studio Community 2022 (64 bit) - Current Version 17.2.5
-SQL Server Analysis Services 15.0.2000.5 - Developer Edition (installed on localhost, services running)
Oracle database:
Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 Production Version 21.3.0.0.0 - Developer Edition (installed on localhost), up and running and able to connect with other tools (e.g. Toad, Sqlplus, SqlDeveloper, cx_python, etc..)
I have a 64-Bit System Data Source Name created for ODBC connections, using Oracle Instant Client. This data source works just fine with other tools mentioned in the Oracle databse section above.
When creating a SSAS tabular model in Visual Studio and attemping to import a data source, I try the following:
Models
-TabularProject (my project)
-Data Sources > New Data Source > Oracle Database
At this point I get the following message:
Oracle Database
The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however, it has been deprecated and may not work correctly.
and I click 'OK'.
From here, I enter the connection string of my locally hosted oracle database (localhost:1521/MY_DB.
When prompted for credentials, I select 'Database' and then enter the correct username/password to connect to my locally hosted oracle database.
Then I receive an error stating:
Unable to connect
We encountered an error while trying to connect.
Details: "An error happened while reading data from the provider: 'Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.'"
I've also tried the following method:
Models
-TabularProject (my project)
-Data Sources > New Data Source > ODBC
Then I choose my ODBC datasource for my locally hosted database (which seems to work fine for other apps) and I receive the following error:
Unable to connect
We encountered an error while trying to connect.
Details: "ODBC: ERROR [IM014] The specified DSN contains an architecture mismatch between the Driver (64-bit) and Application (32-bit)"
I have installed various Oracle Drivers including:
-64-bit ODAC: ODAC122010Xcopy_x64.zip
-64-bit instantclient basic: instantclient-basic-windows.x64-21.6.0.0.0dbru.zip
-64-bit instantclient odbc: instantclient-odbc-windows.x64-21.6.0.0.0dbru.zip
-64-bit instantclient sqlplus: instantclient-sqlplus-windows.x64-21.6.0.0.0dbru.zip
I have also tried these same steps for a remote hosted Oracle database (using both ezconnect string and a ODBC DSN) and even though the connections work just fine with other apps, it doesn't work with SSAS for some reason.
Any and all insight advice to get my SSAS tabular model connected to Oracle databases would be very much appreciated.
EDIT:
I have tried following a solution from this similar question and create a dsn, suffixed with _64, using only the 64-bit ODBC manager, yet I get the same results when trying to use that DSN with SSAS.
I have also tried the following steps, per Microsoft:
From https://learn.microsoft.com/en-us/sql/reporting-services/report-data/oracle-connection-type-ssrs?view=sql-server-ver16#64-bit-and-32-bit-drivers-for-power-bi-desktop:
2. Register ODP.NET Unmanaged Client to GAC:
C:\Oracle\odp.net\bin\4\OraProvCfg.exe /action:gac /providerpath:C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll
3. Add ODP.NET Unmanaged Client entries to machine.config:
C:\Oracle\odp.net\bin\4\OraProvCfg.exe /action:config /force /product:odp /frameworkversion:v4.0.30319 /providerpath:C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll
Yet, I still receive all errors shown above.

SQL Server 2017 Connections working in ASP.NET C# Web projects, but not in Windows projects, in Visual Studio 2019

Using the basic SqlConnection code below, I have discovered that, at my workstation, I am unable to connect to our Sql Server 2017 deployment via ASP.NET C# code in any given type of Windows-based project, such as Winforms (.NET Framework or Core) or Console apps. However, this code will run without incident in any Web-based project, such as Web Forms or MVC, either using .NET Framework or Core.
protected void testConnection()
{
string con = "Server=MySqlServer;database=MyDatabase;Integrated Security=true";
using (SqlConnection cnn = new SqlConnection(con))
{
cnn.Open();
cnn.Close();
}
}
In a web project, this code runs. In a Windows project, I get this error:
System.Data.SqlClient.SqlException: '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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)'
In investigating this problem, I have tried the following:
Explicitly declaring the domain on which my SQL server is found (eg. MySqlServer.domain.com). No good.
Explicitly declaring the SQL Server port number, according to the example shown on connectionstrings.com (eg. MySqlServer, 1433). We do use the standard port number, for the record. No good.
Changing the protection level of the test method (protected/private/public). No good.
Connecting to the SQL Server in PowerShell. This connection worked.
Pinging in the SQL Server in a command prompt. The server responded in 1ms consistently.
I have asked other users on this network to test this code in a Winforms project on their workstations. No one is able to reproduce my issue.
Consulted my sysadmin. He is so far not able to find any reason why I should be having this issue.
The only difference I have noticed in all of this is that, when I declare the port number, the Inner Exception returned with the error reads "Win32Exception: A non-recoverable error occurred during a database lookup". Otherwise, it simply reads "Access is Denied."
All of this tells me that the issue is obviously something peculiar to my workstation, but I have no idea what, apart from some firewall or other local security setting that the sysadmin neglected to check. Has anyone encountered this problem?
My VS 2019 installation is only one revision out of date as of this writing, 16.8.3 as opposed to 16.8.4. I am able to connect to and run TSQL code on any database I care to via SSMS. We connect using Windows Authentication. According to the results of "select ##version", our version of SQL Server is 2017, 14.0.3356.20 (x64).
Any insight is appreciated.
We fixed it by forcing Named Pipes to be enabled in SQL Server, as opposed to using the default setting.

SQL Server Compact Database File

I have a SQL Server Compact Database file (.sdf) that I am trying to connect through using Visual Studio 2017. I have installed SQLight / SQL Server Compact ToolBox with NuGetPackage Manager.
I have placed a SqlDataSource on the ASPX page.
I click new "Connection" Select "SQL Server Compact 4.0 (Simple by ErikEJ)"
Put in the Data Source.
Test Connection "Test connection succeeded".
Click OK and I get this error
Exception of type 'Microsoft.VisualStudio.Web.Data.InternalException' was thrown
I have searched google can not find anything about this. I can connect to different SQL Server databases but not to this .sdf.
Any recommendations?
SqlDataSource does not work with SQL Server Compact (or vice versa). Use for example EF Core or ADO.NET for data access instead.

Error during connecting report services thought SSMS

HI i am getting problem to connect report service thought SSMS instance.
ERROR:
Unable to connect to the server at . The specified URL
might not be valid or there might be a problem with the report server
version or configuration. Specify a different URL, or contact your
server administrator to verify that the report server runs SQL Server
2008 or later. Additionally, if you are trying to connect to a
SharePoint-integrated report server, verify that SharePoint is
installed on the server and that the report server uses SharePoint
integrated mode. (Microsoft.SqlServer.Management.UI.RSClient)
i am using sql server 2012 i dont know why this error comes related to sql server 2008.
could any one help me.
Thanks,
Abhijeet D

SQL Azure reports by e-mail?

I am new to Windows Azure and SQL Azure and was wondering if there is a way that I can export the reports (on my reportserver) that I created and e-mail them to for example and administrator automatically like every week?
Kind Regards!
As you are new to both Windows Azure and SQL Azure, I would suggest the following:
SQL Azure Reporting is still in Preview (or CTP) mode so there are limited functionalities available.
SQL Azure reporting preview provides following 3 scenarios:
2.1 Embed Microsoft reports in Web or client applications
2.2 Design, publish, and view reports (.rdl) and report-related items on a SQL Azure Reporting report server.
2.3 Interact with the report server Web service by using SOAP API calls.
So when you are using SQL Azure Reporting Preview you can generate the reports however to send these reports via email you need a front end to take care of job or custom code running on-premise connected to SQL Azure Reporting service.
3.1 This front end could be a Windows Azure Web Role (using 3rd party email provider or online MS Exchange to send email) or your own SQL Azure reporting service sending emails by using custom code.
3.2 You can also write a client application talking to Reporting Service Web Service over SOAP to get reports and then email to required destination.
More information on SQL Azure Reporting Preview is here:
http://msdn.microsoft.com/en-us/library/windowsazure/gg430129.aspx
I assume your reportserver is running on Azure? Azure doesn't have an SMTP server so basically what you will need to do is
1) Use a third-party SMTP server (Gmail is free) to send out the emails. Azure recently have a deal with sendgrid who provide SMTP and email services as well.
2) Write a little application that runs in a worker role and periodically generates the reports and sends them out.

Resources