Showing posts with label connection. Show all posts
Showing posts with label connection. Show all posts

Friday, March 30, 2012

Reporting Services and multiple data sources

I have a group of reports that are the same for 3 different companies, the difference is the data connection. Is there a way I can change the data connection based on a variable passed in at the time of report execution?

thanks

There are several options of how to achieve this on RS 2000:
* Use a custom data processing extension
http://msdn.microsoft.com/library/en-us/RSPROG/htm/rsp_prog_extend_dataproc_5c2q.asp
* Use the SOAP API by calling SetDataSourceContents:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_2ojd.asp
* Use the linked server functionality of SQL Server. Check MSDN for details:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_12_9ooj.asp
* If the databases are on the same server (SQL 2000), use a dynamic query text (i.e. ="select * from " & Parameters!DatabaseName.Value & "..table")
* If you're just toggling between two or three databases, you can publish the same report multiple times with different names using different data sources. Then write a main report that shows/hides the correct subreport based of whatever criteria you want. (Drawback: bad performance)

If you are running RS 2005, you can use the expression-based connection string approach: Finish the design of the datasets with a constant connection string and make sure everything works. Then, go back to the data tab and open the dataset/data source dialog and change the connection string to be an expression. Use string concatenation to plug in the parameter value. Here is an example of how the RDL would look for a parameter-based connection string:
<DataSources>
<DataSource Name="Northwind">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>="data source=" &amp; Parameters!ServerName.Value &amp; ";initial catalog=Northwind;"</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
</DataSources>
<ReportParameters>
<ReportParameter Name="ServerName">
<DataType>String</DataType>
<Prompt>ServerName</Prompt>
</ReportParameter>
</ReportParameters>
You can also check this blog posting: http://blogs.msdn.com/bwelcker/archive/2005/04/29/413343.aspx

-- Robert

|||Are you also able to set credentials for access to the Data Source via this approach?or does it only allow you to modify the Data Source itself|||The credentials can only be changed if you go with the SetDataSourceContents approach or if you have your own custom data extension which controls the credentials for the actual data source access independently.

-- Robert

Monday, March 26, 2012

Reporting Services 2005 : The report server cannot open a connection to the report server databa

Hi,

I am getting the following error whenever I try to open the reportserver 2005 default web page

http://home/reportserver

Reporting Services Error
--
The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable) Get Online Help
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. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)

--
SQL Server Reporting Services


SQL SERVER 2005 DEVELOPER EDITION ERROR LOG
2006-01-24 17:54:52.65 Server The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.

REPORTING SERVICES 2005 ERROR LOG
aspnet_wp!runningjobs!15!1/24/2006-18:41:26:: e ERROR: Error in timer Running Requests DB : Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: 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. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)


SURFACE AREA CONFIGURATION TOOL
SQL Server 2005 -> Reporting Services -> Integrated Security hangs 60 seconds


Next, long error stack trace follows with a message near the beginning ...

The report server can not open a connection to the SQL Server database.


All of my instances are up and running.
All of my instances allow both Windows Authentication and SQL Server Authentication.
Each has an sa password. (They are all the same.) I have tested each and can connect to each instance.
All of my instances allow remote connections. I have up'ed the connection timeout to 60 seconds.


Any ideas?

Any place that I could look to find SQL Server 2005 Reporting Services database connection Troubleshooting documentation?

Thank you very much.

AIMDBA

This error sounds like reporting services cannot communicate to the reportservices database, which is just a standard sql server 2005 database. Are you hosting the database server and reporting services on the same physical machine?|||

JonM,

Yes, I am hosting SQL Server 2005 Developers Edition database edition and SQL Server 2005 Reporting Services Developer Edition reporting server on the same machine. I just went through the regular install.

Any directions to try to start debugging this problem?

AIMDBA

|||The first thing to do is to go the 'Reporting Services Configuration Manager' Please make sure there is a green check mark next to everything (except encryption keys and execution accounts). Many common problems can be diagnosed here. Specifically make sure the 'Database Setup' looks correct.|||

Yes,

The SQL Server 2005 Developer Edition Report Server and the SQL Server 2005 Developer Edition Database Server are on the same machine.

I also did the following ...

Went into Report Server configuration ...

Set and Tested the login creditions to be

SQL Server Credentials

.

SA

password

I used a . for the local database. That all worked fine.

Next, I changed the Execution Account to be .\Administrator.

That seems O.K.

Next, I changes the Reporting Services Service to run under .\Administrator.

I shut down and restarted everything.

When I do : http://localhost/reportserver

Now, I get a new message:

Reporting Services Error

The Report Server Web Service is unable to access secure information in the report server. Please verify that the WebServiceAccount is specified correctly in the report server config file. (rsAccessDeniedToSecureData) Get Online Helpsql

Reporting Services 2005 : The report server cannot open a connection to the report server databa

Hi,

I am getting the following error whenever I try to open the reportserver 2005 default web page

http://home/reportserver

Reporting Services Error
--
The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable) Get Online Help
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. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)

--
SQL Server Reporting Services


SQL SERVER 2005 DEVELOPER EDITION ERROR LOG
2006-01-24 17:54:52.65 Server The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.

REPORTING SERVICES 2005 ERROR LOG
aspnet_wp!runningjobs!15!1/24/2006-18:41:26:: e ERROR: Error in timer Running Requests DB : Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. > System.Data.SqlClient.SqlException: 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. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)


SURFACE AREA CONFIGURATION TOOL
SQL Server 2005 -> Reporting Services -> Integrated Security hangs 60 seconds


Next, long error stack trace follows with a message near the beginning ...

The report server can not open a connection to the SQL Server database.


All of my instances are up and running.
All of my instances allow both Windows Authentication and SQL Server Authentication.
Each has an sa password. (They are all the same.) I have tested each and can connect to each instance.
All of my instances allow remote connections. I have up'ed the connection timeout to 60 seconds.


Any ideas?

Any place that I could look to find SQL Server 2005 Reporting Services database connection Troubleshooting documentation?

Thank you very much.

AIMDBA

This error sounds like reporting services cannot communicate to the reportservices database, which is just a standard sql server 2005 database. Are you hosting the database server and reporting services on the same physical machine?|||

JonM,

Yes, I am hosting SQL Server 2005 Developers Edition database edition and SQL Server 2005 Reporting Services Developer Edition reporting server on the same machine. I just went through the regular install.

Any directions to try to start debugging this problem?

AIMDBA

|||The first thing to do is to go the 'Reporting Services Configuration Manager' Please make sure there is a green check mark next to everything (except encryption keys and execution accounts). Many common problems can be diagnosed here. Specifically make sure the 'Database Setup' looks correct.|||

Yes,

The SQL Server 2005 Developer Edition Report Server and the SQL Server 2005 Developer Edition Database Server are on the same machine.

I also did the following ...

Went into Report Server configuration ...

Set and Tested the login creditions to be

SQL Server Credentials

.

SA

password

I used a . for the local database. That all worked fine.

Next, I changed the Execution Account to be .\Administrator.

That seems O.K.

Next, I changes the Reporting Services Service to run under .\Administrator.

I shut down and restarted everything.

When I do : http://localhost/reportserver

Now, I get a new message:

Reporting Services Error


The Report Server Web Service is unable to access secure information in the report server. Please verify that the WebServiceAccount is specified correctly in the report server config file. (rsAccessDeniedToSecureData) Get Online Help

reporting services 2005 (CTP) and Oracle

I can't create a connection for Oracle (any version). Is this a CTP issue ?Since SQL 2005 is still in beta, you'll want to post this in the Community
Newsgroups:
http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&slcid=us
--
--Brian
(Please reply to the newsgroups only.)
"pn2kt" <pn2kt@.discussions.microsoft.com> wrote in message
news:67DE088B-35C9-4983-992D-19CEA9FBF6EB@.microsoft.com...
>I can't create a connection for Oracle (any version). Is this a CTP issue ?

Friday, March 23, 2012

Reporting Services (newbie)

Dear all,

When I choose 'Reporting Services' as Server Type from Connection Manager there is nothing in the textbox. Why?

My crystal ball is currently unavailable, so please give some more information what you are doing!
Maybe you are talking about MS SQL Server Management Studio and that the dropdown "servername" gehts empty when you change servertype to "reporting services"?
|||

Yes.. I was talking about that from Sql Management Studio dialog when I select in Server Type 'Reporting Services' the textbox Server Name appears empty.

Hope that clairifies my lack of info...(between my poor english and my unknowledge)

|||

If you haven't connected to a Reporting Services server from this copy of Management Studio, the Server Name will be empty. The Server Name list is just a list of servers that you have previously connected to.

Just because you have connected to Database Engine --> SERVERNAME, it will not show up in the list for other Server Type connections.

|||

Well, I obtain the following error:

TITLE: Connect to Server

Cannot connect to SRVDESASQL2005.


ADDITIONAL INFORMATION:

The Report Services WMI Provider is not installed or is misconfigured (Microsoft.SqlServer.Management.UI.RSClient)


BUTTONS:

OK

|||I would try reinstalling SQL Tools on your local PC. Looks like that may be where the problem is.

Wednesday, March 21, 2012

Reporting Services - The underlying connection was closed: The remote name could not be re

Hi, Help, I am having trouble getting SQL Server 2000 Reporting
Services to work on my laptop computer. I have gotten it to work in
office/development environments several times, so it's not just
beginner cluelessness.
Installing onto Windows XP professional, 384 MB RAM, SQL Server 2000
Developer's Edition with SP 3a, ASP.NET 1.1, VS.NET 2003, not connected
to any network or even internet/wireless.
Installation ran fine, no error messages. Designer works fine, I can
select queries from my local NorthWind connecting as "sa". (I know
about not using sa, but this is for simplicity's sake)
Deploy seems to work fine. However, when I hit F5 (Play) or open IE
and navigate to localhost/Reports/Pages/Folder.aspx, I see this...
(X) Error
---
The underlying connection was closed: The remote name could not be
resolved.
Home
--
What can I do to fix this?
Thanks.
Jason
ps - localhost/reportserver?... works just fine. But the Report
Manager doesn't come up.First thing I would do is check my proxy settings in your browser. Ensure
you have selected to bypass the proxy for local request.
Next I would ensure that the machine name of your comptuer is the same as it
was when you intalled report server (the setup uses that value when forming
the URL).
Next, check that in the file rswebapplication.config under the report
manager install folder, you should find the entry reportserverurl. Ensure
the URL references your actual machinename.
If that fails, try to remove the reportserverurl element and replace it with
a reportservervirtualdirectory element and set the value to the path
"/reportserver". This should mean the report manager will look for the
report server on whatever path you access it on (e..g if you type
http://localhost/reports in the address bar, report manager will look at
http://localhost/reportserver to find the URL.
-Lukasz
--
This posting is provided "AS IS" with no warranties, and confers no rights.
<jason_wisdom@.yahoo.com> wrote in message
news:1108157981.898349.110400@.l41g2000cwc.googlegroups.com...
> Hi, Help, I am having trouble getting SQL Server 2000 Reporting
> Services to work on my laptop computer. I have gotten it to work in
> office/development environments several times, so it's not just
> beginner cluelessness.
> Installing onto Windows XP professional, 384 MB RAM, SQL Server 2000
> Developer's Edition with SP 3a, ASP.NET 1.1, VS.NET 2003, not connected
> to any network or even internet/wireless.
> Installation ran fine, no error messages. Designer works fine, I can
> select queries from my local NorthWind connecting as "sa". (I know
> about not using sa, but this is for simplicity's sake)
> Deploy seems to work fine. However, when I hit F5 (Play) or open IE
> and navigate to localhost/Reports/Pages/Folder.aspx, I see this...
>
> (X) Error
> ---
> The underlying connection was closed: The remote name could not be
> resolved.
> Home
> --
>
> What can I do to fix this?
> Thanks.
> Jason
> ps - localhost/reportserver?... works just fine. But the Report
> Manager doesn't come up.
>

Reporting Services -- Connection issues

RS Web Site and database on the same WIN 2003 Server. Visual Studio dev on
a XP Pro.
Installation was no problem ... installed the AdventureWorks sample reports
(via a Command script).
Able to open http://<servername>/reports however when running the sample
reports the following message is received "An error has occurred during
report processing. (rsProcessingAborted) Get Online Help
Cannot create a connection to data source 'AdventureWorks'.
(rsErrorOpeningConnection)"
I have unsuccessfully reset the "Data Source Properties" several ways
(credential are not required and Use Win credentals with Impersonate, and
etc)
Additionally when creating a report with VS all the dataset queries run fine
... the report "Preview" returns the report and no error when doing a
"Build". However when "Deploying" this error message is returned " The
report server cannot open a connection to the report server database. A
connection to the database is required for all requests and processing."
Some sort of successful connection has to exist to return the Web page with
the sample reports listed and the successful "Preview'. So what's the
problem.
Could this be an issue because the SQL Server installation is a 'Named
Instance' .. If so is there a work around?
Thanks in advance
GeneH
I miss posted this question ... I have move it to sqlserver.reportingsvcs
thanks
"GeneH" wrote:

> RS Web Site and database on the same WIN 2003 Server. Visual Studio dev on
> a XP Pro.
> Installation was no problem ... installed the AdventureWorks sample reports
> (via a Command script).
> Able to open http://<servername>/reports however when running the sample
> reports the following message is received "An error has occurred during
> report processing. (rsProcessingAborted) Get Online Help
> Cannot create a connection to data source 'AdventureWorks'.
> (rsErrorOpeningConnection)"
> I have unsuccessfully reset the "Data Source Properties" several ways
> (credential are not required and Use Win credentals with Impersonate, and
> etc)
> Additionally when creating a report with VS all the dataset queries run fine
> ... the report "Preview" returns the report and no error when doing a
> "Build". However when "Deploying" this error message is returned " The
> report server cannot open a connection to the report server database. A
> connection to the database is required for all requests and processing."
>
> Some sort of successful connection has to exist to return the Web page with
> the sample reports listed and the successful "Preview'. So what's the
> problem.
> Could this be an issue because the SQL Server installation is a 'Named
> Instance' .. If so is there a work around?
> --
> Thanks in advance
> GeneH
sql

Tuesday, March 20, 2012

Reporting Services

Dear all,

When I choose 'Reporting Services' as Server Type from Connection Manager there is nothing in the textbox. Why?

"Reporting Services" is not a connection manager type as far as I can see (I right-clicked in "Connection Managers" area and selected "New Connection...".

Where exactly are you choosing that?

-Jamie

|||

Hi Jamie,

Well, just test it nothing else. Up to the moment our "bussiness as usual" doesn't requires its possibilities.

|||

I think you were probably working in Management Studio and selecting Reporting Services from the drop down list when connecting a new Object Explorer. Is that right? In which case you need to enter the name of your local report server - or just "." should do it.

Or may be I have it wrong. I guess we're not clear on where you are seeing this reference to RS. Perhaps a screenshot would help, or step by step repro of how to get to the dialog.

Donald

Friday, March 9, 2012

reporting service doesn't work after I chnage my destop name.

here is the message I got.
Is there any way to fix the problem?
==============================
The report server cannot open a connection to the report server database. A
connection to the database is required for all requests and processing.
(rsReportServerDatabaseUnavailable) Get Online Help
a.. Login failed for user ''. The user is not associated with a trusted
SQL Server connection.In reporting services 2005 you can use the configuration manager to fix this
up. In RS 2000 you have to modify a config file, which unfortunately I don't
remember. I renamed a server but that was for RS 2005 and I could use the
gui tools to fix it.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"MS newsgroup" <klee@.jeromegroup.com> wrote in message
news:%23jgawF6xGHA.3496@.TK2MSFTNGP02.phx.gbl...
> here is the message I got.
> Is there any way to fix the problem?
> ==============================> The report server cannot open a connection to the report server database.
> A connection to the database is required for all requests and processing.
> (rsReportServerDatabaseUnavailable) Get Online Help
> a.. Login failed for user ''. The user is not associated with a trusted
> SQL Server connection.
>

Wednesday, March 7, 2012

Reporting Server vs. Database Server

Hi everyone,
After reading through countless Microsoft pages I'm still very
confused about how to setup a correct datasource connection. I have a
database server where all the data is kept, and a reports server that
I would like to use only to generate and deploy reports to. I have
Visual Studio 2005 installed on my client computer, and I DO NOT want
to create a data source that connects directly to the database
server.
Theoretically, there is a way to load VS and connect to the database
server through the reports server. I don't want any of my client
computers directly touching the database server, but they have to be
able to generate reports from that data. How can I accomplish this?
Anyone who can solve this conundrum gets a batch of my wife's home-
made cookies!Not possible. The computer that is running VS 2005 has to have a datasource
to the data being reported off of. All the users do not need to connect to
the database server but any developer using the report designer has to have
a data source created to hit the server.
I use mixed mode on the database server, create a readonly login that I use
for reporting.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
<nlandis22@.gmail.com> wrote in message
news:1177429176.362218.226390@.t38g2000prd.googlegroups.com...
> Hi everyone,
> After reading through countless Microsoft pages I'm still very
> confused about how to setup a correct datasource connection. I have a
> database server where all the data is kept, and a reports server that
> I would like to use only to generate and deploy reports to. I have
> Visual Studio 2005 installed on my client computer, and I DO NOT want
> to create a data source that connects directly to the database
> server.
> Theoretically, there is a way to load VS and connect to the database
> server through the reports server. I don't want any of my client
> computers directly touching the database server, but they have to be
> able to generate reports from that data. How can I accomplish this?
> Anyone who can solve this conundrum gets a batch of my wife's home-
> made cookies!
>|||On Apr 24, 12:38 pm, "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com>
wrote:
> Not possible. The computer that is running VS 2005 has to have a datasource
> to the data being reported off of. All the users do not need to connect to
> the database server but any developer using the report designer has to have
> a data source created to hit the server.
> I use mixed mode on the database server, create a readonly login that I use
> for reporting.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> <nlandi...@.gmail.com> wrote in message
> news:1177429176.362218.226390@.t38g2000prd.googlegroups.com...
>
> > Hi everyone,
> > After reading through countless Microsoft pages I'm still very
> > confused about how to setup a correct datasource connection. I have a
> > database server where all the data is kept, and a reports server that
> > I would like to use only to generate and deploy reports to. I have
> > Visual Studio 2005 installed on my client computer, and I DO NOT want
> > to create a data source that connects directly to the database
> > server.
> > Theoretically, there is a way to load VS and connect to the database
> > server through the reports server. I don't want any of my client
> > computers directly touching the database server, but they have to be
> > able to generate reports from that data. How can I accomplish this?
> > Anyone who can solve this conundrum gets a batch of my wife's home-
> > made cookies!- Hide quoted text -
> - Show quoted text -
That's for the help. I think having a read-only login is probably a
safe way to go. The only reason I asked was because of this article
that I found earlier. I don't quite understand Report Server Model's
yet... but I get the feeling it's something for Report Builder, and
not for Report Designer (VS).
http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/2aef6082da0ab4a4/8db0b06920500fc2?lnk=gst&q=data+source&rnum=6#8db0b06920500fc2