Showing posts with label datasource. Show all posts
Showing posts with label datasource. Show all posts

Wednesday, March 21, 2012

Reporting Services on AS2005 cube

Hi all,

I'm trying to create a RS report that will use an AS2005 cube as a datasource. I did try to use the query wizard from reporting services to build the mdx statement but I'm having a hard time with it... How could I use the following MDX statement in a reporting services report? Do you have to use the query builder?

Code Snippet

WITH SET [Last 5 Months] AS

{TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(1),

TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(2),

TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(3),

TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(4),

TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(5)}

MEMBER [Date].[Calendar].[AVG 5 months] AS

AVG([Last 5 Months])

MEMBER [Date].[Calendar].[Last Mth Var.] AS

(TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(1) - AVG([Last 5 Months]))

MEMBER [Date].[Calendar].[YTD] AS

AGGREGATE(YTD(TAIL( NONEMPTY( {[Date].[Calendar].[Month].MEMBERS}, {[Measures].[Internet Sales Amount]} ) ,1).ITEM(0).LAG(1)))

SELECT

{[Last 5 Months],[AVG 5 Months],[Last Mth Var.],[YTD]} ON COLUMNS,

NONEMPTY([Product].[Category].Members) ON ROWS

FROM [Adventure Works]

WHERE [Measures].[Internet Sales Amount]

It's probably very simple to acheive but for some reason I can't get this to work properly...

I did a lot of RS against relational DB but reporting out of a cube is new to me.

TIA,

Eric

In the query builder, there's an option at the top for design mode, clicking this will bring you to the mdx.

If you've already been there, sorry for the explanation. Are you receiving any errors?

cheers,

Andrew

|||The SSAS 2005 provider, which the MDX Query Designer uses, requires measures on columns while you request an MDX set. The long story short -- you cannot use this query as it is with the MDX Query Designer. Instead, consider using the Microsoft OLE DB Provider for Analysis Services 9.0. It allows you to send whatever query you want but it doesn't support parameterized queries.|||

Thanks Teo,

I looks like RS is a good reporting tool against Relational DB but it's not so good with complex MDX that you need to parameterized...

|||Please post this to the wish list on connect.microsoft.com.

Wednesday, March 7, 2012

Reporting Services Errors

One or more datasource credentials required to run the report have not been
specified. (rsCredentialsNotSpecified)
When I run a report through our Report Server I npw get the above error. I
cannot find any help files on this error through MSDN or Microsoft.
I ran RSKeyMgmt trying to resolve another issue, any help would be greatly
appreciated.If you ran RSKeyMgmt and deleted encrypted content, you may have deleted
the stored credentials for your report.
Check the report data source properties and make sure they are set
appropriately.
--
| Thread-Topic: Reporting Services Errors
| thread-index: AcVwK9IkFDn5aIhfTdivKQFhEtVjvw==| X-WBNR-Posting-Host: 204.87.106.66
| From: "=?Utf-8?B?V2lsZGxpZmU=?=" <Wildlife@.discussions.microsoft.com>
| Subject: Reporting Services Errors
| Date: Mon, 13 Jun 2005 08:23:16 -0700
| Lines: 8
| Message-ID: <CB0471BF-57FE-481D-A917-B265A4ADB010@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.reportingsvcs
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:45817
| X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
|
| One or more datasource credentials required to run the report have not
been
| specified. (rsCredentialsNotSpecified)
|
| When I run a report through our Report Server I npw get the above error.
I
| cannot find any help files on this error through MSDN or Microsoft.
|
| I ran RSKeyMgmt trying to resolve another issue, any help would be
greatly
| appreciated.
|

Saturday, February 25, 2012

Reporting Services Encryption Key

Does anyone know how often we should backup our reporting services encryption
key, rsdbkey.txt?
Does it need backed up when a datasource is added, security is changed, new
report added, etc'
I backed it up at installation time, but should it be backed once a week or
month?
Also, what exactly does this file restore?
Thanks
WendyReporting Services uses encryption keys to secure credentials and connection
information that is stored in a report server database. In Reporting
Services, encryption keys include a combination of public, private, and
symmetric keys that are used to protect sensitive data. The symmetric key is
created during report server initialization when you install or configure
the report server, and it is used by the report server to encrypt sensitive
data that is stored in the report server. Public and private keys are
created by the operating system, and they are used to protect the symmetric
key. A public and private key pair is created for each report server
instance that stores sensitive data in a report server database.
It is necessary to restore the backup copy of the encryption key when any of
the following events occur:
a.. Changing the Report Server Windows service account name or resetting
the password. When you use the Reporting Services Configuration tool,
backing up the key is part of a service account name change operation.
Note:
Resetting the password is not the same as changing the password. A
password reset requires permission to overwrite account information on the
domain controller. Password resets are performed by a system administrator
when you forget or do not know a particular password. Only password resets
require symmetric key restoration. Periodically changing an account password
does not require you to reset the symmetric key.
b.. Renaming the computer or instance that hosts the report server (a
report server instance is based on a SQL Server instance name).
c.. Migrating a report server installation or configuring a report server
to use a different report server database.
d.. Recovering a report server installation due to hardware failure.
You only need to back up one copy of the symmetric key. There is a
one-to-one correspondence between a report server database and a symmetric
key. Although you only need to back up one copy, you might need to restore
the key multiple times if you are running multiple report servers in a
scale-out deployment model. Each report server instance will need its copy
of the symmetric key to lock and unlock data in the report server database.
Andy Potter
blog : http://sqlreportingservices.spaces.live.com
info@.(NOSPAM)lakeclaireenterprises.com
"Woo" <Woo@.discussions.microsoft.com> wrote in message
news:67AD8BBF-7C34-44C2-969B-0911C63139D9@.microsoft.com...
> Does anyone know how often we should backup our reporting services
> encryption
> key, rsdbkey.txt?
> Does it need backed up when a datasource is added, security is changed,
> new
> report added, etc'
> I backed it up at installation time, but should it be backed once a week
> or
> month?
> Also, what exactly does this file restore?
> Thanks
> Wendy
begin 666 note.gif
M1TE&.#EA"@.`*`+,)`/\$`/]=6L;#QM;3UO_/`(2&A(R.C ```/__SO___P``
M`````````````````````"'Y! $```D`+ `````*``H```0HT,@.Y1 `&Z7T(
AWEIW)!E'C.16G$.2(L-1((5;%D-H@._H+HH>@.,.B*```[
`
end|||If the key stores connection information, then if I create a new datasource
for a Report would I not need to backup the key again to make sure any
restores include this new connection information?
"Andy Potter" wrote:
> Reporting Services uses encryption keys to secure credentials and connection
> information that is stored in a report server database. In Reporting
> Services, encryption keys include a combination of public, private, and
> symmetric keys that are used to protect sensitive data. The symmetric key is
> created during report server initialization when you install or configure
> the report server, and it is used by the report server to encrypt sensitive
> data that is stored in the report server. Public and private keys are
> created by the operating system, and they are used to protect the symmetric
> key. A public and private key pair is created for each report server
> instance that stores sensitive data in a report server database.
> It is necessary to restore the backup copy of the encryption key when any of
> the following events occur:
> a.. Changing the Report Server Windows service account name or resetting
> the password. When you use the Reporting Services Configuration tool,
> backing up the key is part of a service account name change operation.
>
> Note:
> Resetting the password is not the same as changing the password. A
> password reset requires permission to overwrite account information on the
> domain controller. Password resets are performed by a system administrator
> when you forget or do not know a particular password. Only password resets
> require symmetric key restoration. Periodically changing an account password
> does not require you to reset the symmetric key.
>
> b.. Renaming the computer or instance that hosts the report server (a
> report server instance is based on a SQL Server instance name).
> c.. Migrating a report server installation or configuring a report server
> to use a different report server database.
> d.. Recovering a report server installation due to hardware failure.
> You only need to back up one copy of the symmetric key. There is a
> one-to-one correspondence between a report server database and a symmetric
> key. Although you only need to back up one copy, you might need to restore
> the key multiple times if you are running multiple report servers in a
> scale-out deployment model. Each report server instance will need its copy
> of the symmetric key to lock and unlock data in the report server database.
>
> --
> Andy Potter
> blog : http://sqlreportingservices.spaces.live.com
> info@.(NOSPAM)lakeclaireenterprises.com
> "Woo" <Woo@.discussions.microsoft.com> wrote in message
> news:67AD8BBF-7C34-44C2-969B-0911C63139D9@.microsoft.com...
> > Does anyone know how often we should backup our reporting services
> > encryption
> > key, rsdbkey.txt?
> >
> > Does it need backed up when a datasource is added, security is changed,
> > new
> > report added, etc'
> >
> > I backed it up at installation time, but should it be backed once a week
> > or
> > month?
> >
> > Also, what exactly does this file restore?
> >
> > Thanks
> > Wendy
>
>|||this is about users, passwords that the report server uses
what about the data in the report
anyone has some documentation about that ?
"Woo" wrote:
> If the key stores connection information, then if I create a new datasource
> for a Report would I not need to backup the key again to make sure any
> restores include this new connection information?
>
>
> "Andy Potter" wrote:
> > Reporting Services uses encryption keys to secure credentials and connection
> > information that is stored in a report server database. In Reporting
> > Services, encryption keys include a combination of public, private, and
> > symmetric keys that are used to protect sensitive data. The symmetric key is
> > created during report server initialization when you install or configure
> > the report server, and it is used by the report server to encrypt sensitive
> > data that is stored in the report server. Public and private keys are
> > created by the operating system, and they are used to protect the symmetric
> > key. A public and private key pair is created for each report server
> > instance that stores sensitive data in a report server database.
> >
> > It is necessary to restore the backup copy of the encryption key when any of
> > the following events occur:
> > a.. Changing the Report Server Windows service account name or resetting
> > the password. When you use the Reporting Services Configuration tool,
> > backing up the key is part of a service account name change operation.
> >
> >
> > Note:
> > Resetting the password is not the same as changing the password. A
> > password reset requires permission to overwrite account information on the
> > domain controller. Password resets are performed by a system administrator
> > when you forget or do not know a particular password. Only password resets
> > require symmetric key restoration. Periodically changing an account password
> > does not require you to reset the symmetric key.
> >
> >
> > b.. Renaming the computer or instance that hosts the report server (a
> > report server instance is based on a SQL Server instance name).
> >
> > c.. Migrating a report server installation or configuring a report server
> > to use a different report server database.
> >
> > d.. Recovering a report server installation due to hardware failure.
> >
> > You only need to back up one copy of the symmetric key. There is a
> > one-to-one correspondence between a report server database and a symmetric
> > key. Although you only need to back up one copy, you might need to restore
> > the key multiple times if you are running multiple report servers in a
> > scale-out deployment model. Each report server instance will need its copy
> > of the symmetric key to lock and unlock data in the report server database.
> >
> >
> > --
> > Andy Potter
> > blog : http://sqlreportingservices.spaces.live.com
> > info@.(NOSPAM)lakeclaireenterprises.com
> > "Woo" <Woo@.discussions.microsoft.com> wrote in message
> > news:67AD8BBF-7C34-44C2-969B-0911C63139D9@.microsoft.com...
> > > Does anyone know how often we should backup our reporting services
> > > encryption
> > > key, rsdbkey.txt?
> > >
> > > Does it need backed up when a datasource is added, security is changed,
> > > new
> > > report added, etc'
> > >
> > > I backed it up at installation time, but should it be backed once a week
> > > or
> > > month?
> > >
> > > Also, what exactly does this file restore?
> > >
> > > Thanks
> > > Wendy
> >
> >
> >

Reporting Services datasource corruption?

We are having a problem with our Reporting Services data sources becoming corrupted and returning the cryptic "bad data" error. This happened for all reports on one server. Our network guys have recently been testing password aging and strong passwords in Active Directory which caused a problem initially. The solution to this problem has been to re-deploy the reports with the overwrite datasource option set to "True".

Has anyone heard of such a problem before? Initially when we called Microsoft they thought that the security keys were corrupt and had us reset them. I'm starting to think that wasn't the problem at all and resetting the keys has created new problems.

Any facts, theories, or heresay would be welcome.

For stored credentials, the information is encrypted. Messing around with passwords could cause problems.

One thing to always do when setting up a report server is to make a backup of the encryption key. You can do this with the Configuration tool. Backing up the key will allow you to reapply the key in situations where things like this happen. Then you will not have to through the difficulties you are now.

|||We found out what the problem was. The security key was changed, but the old one was cached, so when it refreshed after 29 hours, it reverted to the old key, thus breaking everything.