Showing posts with label manager. Show all posts
Showing posts with label manager. Show all posts

Thursday, March 29, 2012

Customize Report Manager

I would like to use Report Managers interface for choosing reports.

But all of the reports uses different dsu(datasourceuser) and dsp(datasourcepassword) depending on which user that is logon.

I would like to call the interface from a webapplication(where they have the current dsu & dsp).

Is there a way to customize Report Manager to save the dsu & dsp so users don't have to login for each report?

Or could I make a clever transformation from the Windows userid?

Or any other ideas?

There is not much you can do to customize report manager. I would recommend using Visual Studio 2005 to create a web application.

Tuesday, March 27, 2012

Customize Report manager Homepage

Hi, I wanted to put my company name instead of "Home" in the reporting
services manager. I tried to search the whole reporting services folder for
the text "Home" and not able to figureout how to change it. Looks like we
cannot change the text?
Any ideas?
Thanks
"Hausbro" <Hausbro@.discussions.microsoft.com> wrote in message
news:B79622C2-29E0-4A66-8F8D-E838A4B65CE7@.microsoft.com...
> Does it work to just put an ® after the uppertitle in the html source
code?
>
> "jsteensen" wrote:
>
> > Hausbro,
> >
> > Thanks - that solved part of my problem - upsizing and bolding the site
name
> > text (used msrs-uppertitle) and un-bolding the page name
(msrs-lowertitle).
> > Any hint on how to superscript a ® in the uppertitle? I'm not very good
at
> > style sheets.
> >
> > John
> >
> > "Hausbro" wrote:
> >
> > > If you view the source there is a file called 'ReportingServices.css'
that
> > > should contain formatting for the page.
> > >
> > > The following classes effect the text 'Home':
> > >
> > > msrs-lowertitle
> > > msrs-banner
> > > msrs-selectedTab
> > > msrs-normal
> > >
> > > You can find more by simply viewing the source and finding out what
class
> > > they are tied to.
> > >
> > > Hope that helps...
> > >
> > > "jsteensen" wrote:
> > >
> > > > Terry,
> > > >
> > > > I changed the folder icon to a corporate logo on the Report Manager
Home
> > > > page by:
> > > >
> > > > 1) doing view source on the page and noting that folder icon was
> > > > 48folderopen.jpg
> > > > 2) found that icon in C:\Program Files\Microsoft SQL
Server\MSSQL\Reporting
> > > > Services\ReportManager\images
> > > > 3) found that it was a 48x48 jpg image
> > > > 4) produced a 48x48 jpg image of the corporate logo
> > > > 5) renamed 48folderopen.jpg to 48folderopen_orig.jpg (in case I
wanted to go
> > > > back)
> > > > 6) renamed the 48x48 corp logo to 48folderopen.jpg and finally
> > > > 7) copied the logo into the image folder above and hit refresh
> > > >
> > > > This worked for me. Hope it helps.
> > > >
> > > > Still haven't figured out how to fancy up the Site Name yet.
> > > >
> > > > John
> > > >
> > > > "Terry" wrote:
> > > >
> > > > > Hi All,
> > > > > There is a posting in this forum already about this...but it
doesnt really
> > > > > tell me how to modify the home page. Like the previous user who
posted a
> > > > > message I am wanting to put our organisations logo on the home
page. Any
> > > > > suggestions would be much appreciated.
> > > > >
> > > > > Regards,
> > > > > TerryYou can put a logo into by changing the background-image style in the
ReportingServices.css file under the ReportManager/styles folder.
"Sri" wrote:
> Hi, I wanted to put my company name instead of "Home" in the reporting
> services manager. I tried to search the whole reporting services folder for
> the text "Home" and not able to figureout how to change it. Looks like we
> cannot change the text?
> Any ideas?
> Thanks
>
> "Hausbro" <Hausbro@.discussions.microsoft.com> wrote in message
> news:B79622C2-29E0-4A66-8F8D-E838A4B65CE7@.microsoft.com...
> > Does it work to just put an ® after the uppertitle in the html source
> code?
> >
> > "jsteensen" wrote:
> >
> > > Hausbro,
> > >
> > > Thanks - that solved part of my problem - upsizing and bolding the site
> name
> > > text (used msrs-uppertitle) and un-bolding the page name
> (msrs-lowertitle).
> > > Any hint on how to superscript a ® in the uppertitle? I'm not very good
> at
> > > style sheets.
> > >
> > > John
> > >
> > > "Hausbro" wrote:
> > >
> > > > If you view the source there is a file called 'ReportingServices.css'
> that
> > > > should contain formatting for the page.
> > > >
> > > > The following classes effect the text 'Home':
> > > >
> > > > msrs-lowertitle
> > > > msrs-banner
> > > > msrs-selectedTab
> > > > msrs-normal
> > > >
> > > > You can find more by simply viewing the source and finding out what
> class
> > > > they are tied to.
> > > >
> > > > Hope that helps...
> > > >
> > > > "jsteensen" wrote:
> > > >
> > > > > Terry,
> > > > >
> > > > > I changed the folder icon to a corporate logo on the Report Manager
> Home
> > > > > page by:
> > > > >
> > > > > 1) doing view source on the page and noting that folder icon was
> > > > > 48folderopen.jpg
> > > > > 2) found that icon in C:\Program Files\Microsoft SQL
> Server\MSSQL\Reporting
> > > > > Services\ReportManager\images
> > > > > 3) found that it was a 48x48 jpg image
> > > > > 4) produced a 48x48 jpg image of the corporate logo
> > > > > 5) renamed 48folderopen.jpg to 48folderopen_orig.jpg (in case I
> wanted to go
> > > > > back)
> > > > > 6) renamed the 48x48 corp logo to 48folderopen.jpg and finally
> > > > > 7) copied the logo into the image folder above and hit refresh
> > > > >
> > > > > This worked for me. Hope it helps.
> > > > >
> > > > > Still haven't figured out how to fancy up the Site Name yet.
> > > > >
> > > > > John
> > > > >
> > > > > "Terry" wrote:
> > > > >
> > > > > > Hi All,
> > > > > > There is a posting in this forum already about this...but it
> doesnt really
> > > > > > tell me how to modify the home page. Like the previous user who
> posted a
> > > > > > message I am wanting to put our organisations logo on the home
> page. Any
> > > > > > suggestions would be much appreciated.
> > > > > >
> > > > > > Regards,
> > > > > > Terry
>
>
>

Customize Look and Feel of Report Manager

how do i completely change the UI displayed for Report Manager? I do not want he Microsoft logo and all the standard interfaces?
Quick help would be greatly appreciated.You can display the reports on your own WinForm.|||Hi,
You can go to some further by playing with the .css style files.
With default installation C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager\Styles\ReportingServices.css is a styke sheet where you can update and view the changes onhttp://localhost/Reports/Pages/Folder.aspx page.
Eralper
http://www.kodyaz.com

Sunday, March 25, 2012

Customising Report Manager

Hi,

I have implemented Forms authentication for my report manager. (using the custom Security sample solution) ie i have added a login page, which upon autentication redirects to report manager.

Now i want to add a "sign out" link in the report manager so that when the user clicks on that, it gets redirects to the login page.

Is it possible, if so can anyone let me know where i can implement the code for the same

Thanks,

Bharath V V

Report manager wasn't exactly meant to be customized. How did you create your login page? Using Visual Studio 2005?

|||

There really is not a lot of customizing that you can do with report manager.

In the past few times I have needed to customize, I just created an entire application to replace report manager.

Then used a combination of the web services and/or report viewer control.

BobP

|||Yes.. using VS 2005, and the CustomSecurity.Sln given in the reporting services samples.|||

Oh thats bad news for me

anyways thanks BobP

bharthvv

Customising report Manager

Hi guys
I just want user see only content tab in Report Manager and not the property
tab .
I create a new role and select 'VIEW ROLE' and 'VIEW REPORT' tasks,
descriptions says that user will be able to see the properties too. I dont
want let user see the property.
Niether should user see the subscription link.
How could I achieve that
Sincerely
AmeetI don't think it is possible to give a set of permissions where a user will
be able to view the report and not see the properties of the report. If you
don't 'Manage Individual Subscriptions' or 'Manage All Subscriptions'
permissions then they will not see the subscription tab.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ameet" <Ameet@.discussions.microsoft.com> wrote in message
news:2A20E4F6-1158-4845-8032-69DA31902816@.microsoft.com...
> Hi guys
> I just want user see only content tab in Report Manager and not the
property
> tab .
> I create a new role and select 'VIEW ROLE' and 'VIEW REPORT' tasks,
> descriptions says that user will be able to see the properties too. I dont
> want let user see the property.
> Niether should user see the subscription link.
> How could I achieve that
> Sincerely
> Ameetsql

Customise Report Parameters in Report Manager

Is it possible to add custom controls in for parameters in report manager?

I have a parameter that requires the user to click a button and select a bunch of things in another form. How can i do this in reporting services?

I also would like to change the layout of the parameters toolbar, ie. make text boxes smaller widths, show/hide parameters based on other parameter values.

I know i could write my own web page that does this and hide the parameters toolbar when they run the report, but this would mean that we lose other functionality that report manager has, eg. scheduling.

Does anyone know if customising the report manager will become available in a later version?

You're correct that you can't customize Report Manager like this in RS 2005. You're also correct that if you wrote your own app using the Reporting controls in VS 2005, you'd have a lot of flexibility.

As for whether you'll be able to do this customization of RM in a later version, I doubt it, but there is "talk" of shipping add'l VS Reporting controls for things like scheduling and security, so you could build your own RM implementation.

Customise Report Parameters in Report Manager

Is it possible to add custom controls in for parameters in report manager?

I have a parameter that requires the user to click a button and select a bunch of things in another form. How can i do this in reporting services?

I also would like to change the layout of the parameters toolbar, ie. make text boxes smaller widths, show/hide parameters based on other parameter values.

I know i could write my own web page that does this and hide the parameters toolbar when they run the report, but this would mean that we lose other functionality that report manager has, eg. scheduling.

Does anyone know if customising the report manager will become available in a later version?

You're correct that you can't customize Report Manager like this in RS 2005. You're also correct that if you wrote your own app using the Reporting controls in VS 2005, you'd have a lot of flexibility.

As for whether you'll be able to do this customization of RM in a later version, I doubt it, but there is "talk" of shipping add'l VS Reporting controls for things like scheduling and security, so you could build your own RM implementation.

Customise Report Manager

Hello
We have Reporting Services 2005 and was wondering if it is possible to
customise Report Manager interface and possibly add a company logo and maybe
status messages of when the databse was last refreshed?
Kind regards
Ricky
(SS2005/SSRS2005)This is from Books Online:
You can customize Report Manager in very limited ways. You can modify the
application title on the Site Settings page. If you are a Web developer, you
can modify the style sheets that contain the style information used by
Report Manager. Because Report Manager is not specifically designed to
support customization, you must thoroughly test any modification that you
make. If you find that Report Manager does not meet your needs, you can
develop a custom report viewer or configure SharePoint Web parts to find and
view reports in a SharePoint site.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Ricky" <r@.msn.com> wrote in message
news:%23AwNV1eMIHA.4880@.TK2MSFTNGP03.phx.gbl...
> Hello
> We have Reporting Services 2005 and was wondering if it is possible to
> customise Report Manager interface and possibly add a company logo and
> maybe status messages of when the databse was last refreshed?
> Kind regards
> Ricky
> (SS2005/SSRS2005)
>|||Hi there
Sure you can add your company logo with these steps:
1. Make your logo an 46 x 48 jpg image file
2. Rename it to 48folderopen.jpg
3. Look for folder "C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting
Services\ReportManager\images" or where you install RSS2005
4. Rename the 48folderopen.jpg to 49folderopen_old.jpg (not necessary, but
it is always a good idea to have backup)
5. Copy your logo (renamed in step 2) to "C:\Program Files\Microsoft SQL
Server\MSSQL.3\Reporting Services\ReportManager\images"
6. Enjoy
"Ricky" <r@.msn.com> escribió en el mensaje
news:%23AwNV1eMIHA.4880@.TK2MSFTNGP03.phx.gbl...
> Hello
> We have Reporting Services 2005 and was wondering if it is possible to
> customise Report Manager interface and possibly add a company logo and
> maybe status messages of when the databse was last refreshed?
> Kind regards
> Ricky
> (SS2005/SSRS2005)
>|||Hello Morales
Thank you for you message, sounds promising. I'm assuming this swaps an
exisitng logo?
Incidently, I don't suppose you have had any experience modifying the
colours, fonts etc..?
Kind regards
Ricky
"CEMorales" <carlos_enrique_morales@.hotmail.com> wrote in message
news:u1AipmwMIHA.1204@.TK2MSFTNGP03.phx.gbl...
> Hi there
> Sure you can add your company logo with these steps:
> 1. Make your logo an 46 x 48 jpg image file
> 2. Rename it to 48folderopen.jpg
> 3. Look for folder "C:\Program Files\Microsoft SQL
> Server\MSSQL.3\Reporting Services\ReportManager\images" or where you
> install RSS2005
> 4. Rename the 48folderopen.jpg to 49folderopen_old.jpg (not necessary, but
> it is always a good idea to have backup)
> 5. Copy your logo (renamed in step 2) to "C:\Program Files\Microsoft SQL
> Server\MSSQL.3\Reporting Services\ReportManager\images"
> 6. Enjoy
>
> "Ricky" <r@.msn.com> escribió en el mensaje
> news:%23AwNV1eMIHA.4880@.TK2MSFTNGP03.phx.gbl...
>> Hello
>> We have Reporting Services 2005 and was wondering if it is possible to
>> customise Report Manager interface and possibly add a company logo and
>> maybe status messages of when the databse was last refreshed?
>> Kind regards
>> Ricky
>> (SS2005/SSRS2005)
>

Customer Deployment Requirements for Reporting Services Express?

Hello. I have a version of SQL Express with Advanced services. I created a report and all seems well in Report Manager on my computer. Smile Now it's time to deploy my report to some customers.

1. Can I create an application in Visual Studios Express to view my report? I've read things online that seem contradictory to me and I'm hoping you can clarify this.

2. On a customer machine, if they have a .net application that can render my report, will they have to install reporting services on their computer or can the .rdl file run independently of reporting services if plugged into a .net viewer component? If it was called from a .net application, then Report Server and Report Manager aren't really needed are they? I have a situation where we don't want to use IIS on customer computers if we don't need to. Since the reports will not be adhoc, we're hoping to avoid needing to install Reporting Services on customer computers.

Thanks!

Debbie Erickson

Not sure on #1.

On #2, you should be able to render the report through the ReportViewer control, which removes the need for the Report Server and Report Manager (and IIS), as it handles the report rendering.

Custome code not working in Report manager

Hi all,
I have Written the Custom code to compare two different dates and
show a message Box depending on their values .It was Working Fine in
preview tab.But it is not working when i deploy to web.Only rhe message
box part is not working in Web
I do have the Custom code like this
Public Function Errorbox(ByVal s as Date,ByVal s1 as Date) As String
If s>s1 Then
System.Windows.Forms.MessageBox.Show("From Date is greater than
To Date,Please Click Ok" )
End if
Return "a"
End Function
and i gave a text box (Just a text box)
To call this custome code and i gave the expression
=Code.Errorbox(Parameters!FROM_DATE.Value,Parameters!TO_DATE.Value)
i added this Assembly also
"System.Windows.Forms"
Its not working in Report manager(web) .Can any body help me out to
knowwhat would be the Problem.i am very new to this VB Coding
Thank you
Raj Deep.AYou need to add the assembly to the following folders:
C:\Program Files\Microsoft SQL Server\80\Tools\Report Designer
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportServer\bin
Hope this helps.
"RajDeep" wrote:
> Hi all,
> I have Written the Custom code to compare two different dates and
> show a message Box depending on their values .It was Working Fine in
> preview tab.But it is not working when i deploy to web.Only rhe message
> box part is not working in Web
> I do have the Custom code like this
> Public Function Errorbox(ByVal s as Date,ByVal s1 as Date) As String
> If s>s1 Then
> System.Windows.Forms.MessageBox.Show("From Date is greater than
> To Date,Please Click Ok" )
> End if
> Return "a"
> End Function
> and i gave a text box (Just a text box)
> To call this custome code and i gave the expression
> =Code.Errorbox(Parameters!FROM_DATE.Value,Parameters!TO_DATE.Value)
> i added this Assembly also
> "System.Windows.Forms"
> Its not working in Report manager(web) .Can any body help me out to
> knowwhat would be the Problem.i am very new to this VB Coding
> Thank you
> Raj Deep.A
>

Thursday, March 22, 2012

Custom URL to Report Manager

Hopefully someone will know the answer to this one.
We are trying to setup a url (reports.company.com) to point to Report
Manager so that end users will not have to enter in a server name.
This works initially, but the web app changes the url back to
http://ServerName/Reports/Pages/Folder.aspx
Is there anyway to have the url not change so that it would show
http://reports.company.com/Reports/Pages/Folder.aspx?
We are wanting to customize report manager a bit before we offer to the end
user communnity.
Thanks in advance,
spindlejDuh, I must have been on crack yesterdy. After thinking about it somemore
today, I realized that the default web site in IIS configuration was set to
foward to http://ServerName/Reports/
All I needed to do was change it to forward to
http://reports.company.com/Reports/ and now it works like a charm.
Thanks to me for figuring it out :)
"spindlej" wrote:
> Hopefully someone will know the answer to this one.
> We are trying to setup a url (reports.company.com) to point to Report
> Manager so that end users will not have to enter in a server name.
> This works initially, but the web app changes the url back to
> http://ServerName/Reports/Pages/Folder.aspx
> Is there anyway to have the url not change so that it would show
> http://reports.company.com/Reports/Pages/Folder.aspx?
> We are wanting to customize report manager a bit before we offer to the end
> user communnity.
> Thanks in advance,
> spindlej

custom transformation and broken FK

Hi,
I need to do the following through Enterprise Manager (EM).
I need to copy the structure of all the tables along with their PK, FK
etc and need to copy the data of only select set of tables (not all of
them). I tried doing this in EM but lost the relationship between
tables in the target database.
Here is the example:
TablePK has an indexed column. TableFK has a column which is the
Foreign key to TablePK.
- I create ine DTS package1 in which I transfer both tables as objects
along with their PK & FK, and without data.
- I ceate a second package2 in which TablePK is only transferred, this
time with Data.
- At the end I notice that the relationship between TablePK and TableFK
is broken in the target database.
Does anyone have a clue how do I go about this problem. I am a newbie.
TIA.
You could use the copy objects task in DTS seeing as this is one of the NGs
from which you have asked for a reply.
You could try using SQLDMO to script all the details you require from the
tables you want as well.
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know
<aamirghanchi@.yahoo.com> wrote in message
news:1105830284.795794.101640@.c13g2000cwb.googlegr oups.com...
> Hi,
> I need to do the following through Enterprise Manager (EM).
> I need to copy the structure of all the tables along with their PK, FK
> etc and need to copy the data of only select set of tables (not all of
> them). I tried doing this in EM but lost the relationship between
> tables in the target database.
> Here is the example:
> TablePK has an indexed column. TableFK has a column which is the
> Foreign key to TablePK.
> - I create ine DTS package1 in which I transfer both tables as objects
> along with their PK & FK, and without data.
> - I ceate a second package2 in which TablePK is only transferred, this
> time with Data.
> - At the end I notice that the relationship between TablePK and TableFK
> is broken in the target database.
> Does anyone have a clue how do I go about this problem. I am a newbie.
> TIA.
>
|||try DB Ghost http://www.dbghost.com you can copy over schema and select those
tables where you want to copy data and it takes care to propagate objects and
data in the correct order so relationships aren't broken.
regards,
Mark Baekdal
http://www.dbghost.com
+44 (0)208 241 1762
Database change management for SQL Server
"aamirghanchi@.yahoo.com" wrote:

> Hi,
> I need to do the following through Enterprise Manager (EM).
> I need to copy the structure of all the tables along with their PK, FK
> etc and need to copy the data of only select set of tables (not all of
> them). I tried doing this in EM but lost the relationship between
> tables in the target database.
> Here is the example:
> TablePK has an indexed column. TableFK has a column which is the
> Foreign key to TablePK.
> - I create ine DTS package1 in which I transfer both tables as objects
> along with their PK & FK, and without data.
> - I ceate a second package2 in which TablePK is only transferred, this
> time with Data.
> - At the end I notice that the relationship between TablePK and TableFK
> is broken in the target database.
> Does anyone have a clue how do I go about this problem. I am a newbie.
> TIA.
>
|||When I copy all tables as you have done, I script it using SEM...
Select your source database -> All Tasks-> Generate SQL Script... One of the
last tabs gives you the option of taking FK relationships and indexes etc.
It is NOT checked by default..
Make sure you select it and then run the script in QA to create the tables
in the new DB..
For a small number of tables I usually select INTO to move the data, For a
larger number of tables I use DTS...
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
<aamirghanchi@.yahoo.com> wrote in message
news:1105830284.795794.101640@.c13g2000cwb.googlegr oups.com...
> Hi,
> I need to do the following through Enterprise Manager (EM).
> I need to copy the structure of all the tables along with their PK, FK
> etc and need to copy the data of only select set of tables (not all of
> them). I tried doing this in EM but lost the relationship between
> tables in the target database.
> Here is the example:
> TablePK has an indexed column. TableFK has a column which is the
> Foreign key to TablePK.
> - I create ine DTS package1 in which I transfer both tables as objects
> along with their PK & FK, and without data.
> - I ceate a second package2 in which TablePK is only transferred, this
> time with Data.
> - At the end I notice that the relationship between TablePK and TableFK
> is broken in the target database.
> Does anyone have a clue how do I go about this problem. I am a newbie.
> TIA.
>
sql

Custom task database connection

I'm developing a custom error task for SSIS. I've got a couple of existing OLE DB connections that exist in the Connection Manager. I want a drop down to be displayed in the Custom Task dialogue properties where the user can select one of the databases from the Connection manager.

2 questions:
1. How can i get the list of OLE DB databases in the properties dialogue?
2. Does anyone have a code sample on accessing a database like that within the custom component?Try this post http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=122993&SiteID=1

I don't think you can use an OLE-DB connection directly in managed code. You may (I haven't tried) be able to read off the connection string and use that to create your own ADO.net connection. I have been using ADO.Net connections myself, normally SQL, which gives you a SqlClient.SqlConnection object.

|||Hi Darren,

I don't understand how the IDtsTaskUI.Initialize one ties in here? Also, do you have to tie in the connections within the Acquire Connection method?|||If you have a custom UI for your task then you will have implemented IDtsTaskUI.Initialize in the class that implements IDtsTaskUI.

You call AcquireConnection on the connection you want to get the real connection object. For a file connection that is just a string of the filename, for an ADO.NET connection type SQL, that is a SqlConnection. You would call this in your UI, and also at run-time in the Execute method.

Tuesday, March 20, 2012

Custom Security Roles

I am trying to implement forms authentication in reporting services and I
would like to use the report manager for rendering reports. What I don't
want to use is the built-in tools for item level and system level security.
Is there a way to get information as to which item is being accessed in the
Getpermissions and CheckAccess function so I can check my custom database for
authorization?Brent,
I don't think you need to know the item accessed because the CheckAccess
overload is scoped at an item level. In other words, if the user tries to
run a report A, the Report Server will pass the security descriptor for
report A only. The job of the security extension is to find out if the user
has rights to carry the action by examing the security descriptor. Any yes,
you can use application-defined role membership policies to simplify the
user maintanance.
I have a two-part article in the works for the SQL Magazine which discusses
Forms Authentication in detail. It should be out in January-February issues
I think.
--
Hope this helps.
---
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
---
"Brent Slezak" <Brent Slezak@.discussions.microsoft.com> wrote in message
news:4614209E-953D-4A4B-B2BD-96EFE79FFDAC@.microsoft.com...
> I am trying to implement forms authentication in reporting services and I
> would like to use the report manager for rendering reports. What I don't
> want to use is the built-in tools for item level and system level
security.
> Is there a way to get information as to which item is being accessed in
the
> Getpermissions and CheckAccess function so I can check my custom database
for
> authorization?|||Teo,
First of all, I want to thank you for your prompt response to my question
and I will be looking for that article when it comes out.
Let me go into further detail as to the situation with the reporting
services and how I would like to use them. I currrently have a proprietary
security system setup for my enterprise-scale application that manages
thousands of users and groups and tens of thousands of roles. I don't want to
have to re-define that information in the ReportSErver database. Actually I
would like it if I had absolutly no security definition at all in the
ReportServer database. That being said. How would I get the unique
identifier of the object (i.e. report,folder,datasource) being accessed so
that I can cross-reference MyDatabase1 for security access.
In a nutshell I want to be able to use the report manager for the report
rendering and not for managing role-based security. I think building our own
custom rendering UI is the only logical alternative.
Please let me know what you would consider the best option with this scenario.
Thank you in advance for your input.
Brent
"Teo Lachev [MVP]" wrote:
> Brent,
> I don't think you need to know the item accessed because the CheckAccess
> overload is scoped at an item level. In other words, if the user tries to
> run a report A, the Report Server will pass the security descriptor for
> report A only. The job of the security extension is to find out if the user
> has rights to carry the action by examing the security descriptor. Any yes,
> you can use application-defined role membership policies to simplify the
> user maintanance.
> I have a two-part article in the works for the SQL Magazine which discusses
> Forms Authentication in detail. It should be out in January-February issues
> I think.
> --
> Hope this helps.
> ---
> Teo Lachev, MVP [SQL Server], MCSD, MCT
> Author: "Microsoft Reporting Services in Action"
> Publisher website: http://www.manning.com/lachev
> Buy it from Amazon.com: http://shrinkster.com/eq
> Home page and blog: http://www.prologika.com/
> ---
> "Brent Slezak" <Brent Slezak@.discussions.microsoft.com> wrote in message
> news:4614209E-953D-4A4B-B2BD-96EFE79FFDAC@.microsoft.com...
> > I am trying to implement forms authentication in reporting services and I
> > would like to use the report manager for rendering reports. What I don't
> > want to use is the built-in tools for item level and system level
> security.
> >
> > Is there a way to get information as to which item is being accessed in
> the
> > Getpermissions and CheckAccess function so I can check my custom database
> for
> > authorization?
>
>|||Brent,
I understand your scenario now. Of course, assuming that the reports will
be rendered on the server side of the application you don't have an issue
since you have an application front end. This is similar to the security
scenario I describe in Chapter 13 of my book.
However, the real problem is with URL addressability and custom security
extension. One approach that may be appropriate in your case is to get the
report path from the URL request. This could be similar to the approach I
describe in the following thread
http://groups.google.com/groups?q=Disable+Hyperlink+in+EXCEL&hl=en&lr=&selm=%23VCcwuh1EHA.1264%40TK2MSFTNGP12.phx.gbl&rnum=1
Once you get the report path, you can get the report identifier (the primary
key in table Catalgo) which is what you may want to use in your custom
security infrastructure.
--
Hope this helps.
---
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
---
"Brent Slezak" <BrentSlezak@.discussions.microsoft.com> wrote in message
news:3741B21F-0963-457F-8EC6-A1F6403CB514@.microsoft.com...
> Teo,
> First of all, I want to thank you for your prompt response to my question
> and I will be looking for that article when it comes out.
> Let me go into further detail as to the situation with the reporting
> services and how I would like to use them. I currrently have a
proprietary
> security system setup for my enterprise-scale application that manages
> thousands of users and groups and tens of thousands of roles. I don't want
to
> have to re-define that information in the ReportSErver database. Actually
I
> would like it if I had absolutly no security definition at all in the
> ReportServer database. That being said. How would I get the unique
> identifier of the object (i.e. report,folder,datasource) being accessed so
> that I can cross-reference MyDatabase1 for security access.
> In a nutshell I want to be able to use the report manager for the report
> rendering and not for managing role-based security. I think building our
own
> custom rendering UI is the only logical alternative.
> Please let me know what you would consider the best option with this
scenario.
> Thank you in advance for your input.
> Brent
> "Teo Lachev [MVP]" wrote:
> > Brent,
> >
> > I don't think you need to know the item accessed because the CheckAccess
> > overload is scoped at an item level. In other words, if the user tries
to
> > run a report A, the Report Server will pass the security descriptor for
> > report A only. The job of the security extension is to find out if the
user
> > has rights to carry the action by examing the security descriptor. Any
yes,
> > you can use application-defined role membership policies to simplify the
> > user maintanance.
> >
> > I have a two-part article in the works for the SQL Magazine which
discusses
> > Forms Authentication in detail. It should be out in January-February
issues
> > I think.
> >
> > --
> > Hope this helps.
> >
> > ---
> > Teo Lachev, MVP [SQL Server], MCSD, MCT
> > Author: "Microsoft Reporting Services in Action"
> > Publisher website: http://www.manning.com/lachev
> > Buy it from Amazon.com: http://shrinkster.com/eq
> > Home page and blog: http://www.prologika.com/
> > ---
> >
> > "Brent Slezak" <Brent Slezak@.discussions.microsoft.com> wrote in message
> > news:4614209E-953D-4A4B-B2BD-96EFE79FFDAC@.microsoft.com...
> > > I am trying to implement forms authentication in reporting services
and I
> > > would like to use the report manager for rendering reports. What I
don't
> > > want to use is the built-in tools for item level and system level
> > security.
> > >
> > > Is there a way to get information as to which item is being accessed
in
> > the
> > > Getpermissions and CheckAccess function so I can check my custom
database
> > for
> > > authorization?
> >
> >
> >

Custom Security Forms Authentication for Report Manager

I have reviewed/implemented the examples in MSDN, Brian Larson, and T.
Lachev's works for custom security forms authentication for reporting
server(including Lache's Role based structure outlined in the book and DevX
forums).
However, the documentation falls short of configuring the Report Manager for
custom security-forms authentication as well. What procedures would I need to
complete to remove the Windows authentication requirement from the Report
Manager and replace with forms authentication. Specifically, I want to add a
html redirect page to take to "My App" that handles Single Sign on calls(to
LDAP) which will also call the logon user methods from SSRS to establish the
necessary SSRS cookies and allow us to link to the /Reports/Pages/Folder to
access the report manager from within the application.
Specifically: I need sample settings for each of these Report Manager
configuration files
1) Web.Config
2) RSWebApplication.Config
3) rsmgrpolicy.config
Also what location would I have to store the appropriate redirect page and
what path setting do I need to apply to any of the above files to make this
work.
Thanks for any help you can provide.Answered here:
http://www.sqltalk.org/ftopic9114.html&highlight=forms+authentication
Bottom line was web.config for the report manager has to have
<authentication mode="Windows"/>
<authorization>
<allow users="*" />
</authorization>
<identity impersonate="false"/>
And your RSWebapplication.config
should have <loginUrl>/Home.aspx</loginUrl>
Note that your IIS default content will have your redirect page which you
save in your report manager directory and not the home.aspx.

Custom Security Extension issue...

I have tried to write a custom security extension. When I run the report
manager I get ...
Object Reference is not set to an instance of an object.
It's breaking in GlobalApp.Application_AuthenticationRequest
I figure its because it can't find my extension but I have the correct Url
in the securityextensioncodegroup. Could it be the type attibute in the
extension tag?
Type="RSSecurity.AuthorizationExtension,AuthorizationExtension"You may be getting the exception in the GetWebRequest override in the
derived ReportingService class because the HttpContext.Current.Request is
null which causes the call to the AuthCookie property to fail. I'm having a
similar problem that I'm working through right now. Maybe this will give you
some place to start looking for the problem.
Just a thought...
Garry
"Tad" <Tad@.discussions.microsoft.com> wrote in message
news:CF04B8C0-641A-4D50-9A90-B49625266D90@.microsoft.com...
> I have tried to write a custom security extension. When I run the report
> manager I get ...
> Object Reference is not set to an instance of an object.
> It's breaking in GlobalApp.Application_AuthenticationRequest
> I figure its because it can't find my extension but I have the correct Url
> in the securityextensioncodegroup. Could it be the type attibute in the
> extension tag?
> Type="RSSecurity.AuthorizationExtension,AuthorizationExtension"|||Gary,
Have you found a solution to this issue of the
HttpContext.Current.Request being null or found more information on
what might cause this to be null?
- Jessica
Garry Lenz wrote:
> You may be getting the exception in the GetWebRequest override in the
> derived ReportingService class because the
HttpContext.Current.Request is
> null which causes the call to the AuthCookie property to fail. I'm
having a
> similar problem that I'm working through right now. Maybe this will
give you
> some place to start looking for the problem.
> Just a thought...
> Garry
>
> "Tad" <Tad@.discussions.microsoft.com> wrote in message
> news:CF04B8C0-641A-4D50-9A90-B49625266D90@.microsoft.com...
> > I have tried to write a custom security extension. When I run the
report
> > manager I get ...
> >
> > Object Reference is not set to an instance of an object.
> >
> > It's breaking in GlobalApp.Application_AuthenticationRequest
> >
> > I figure its because it can't find my extension but I have the
correct Url
> > in the securityextensioncodegroup. Could it be the type attibute
in the
> > extension tag?
> >
> > Type="RSSecurity.AuthorizationExtension,AuthorizationExtension"|||This looks familiar. It could be one of a myriad of things. In our case,
the custom security extension called a web service, and there was an invalid
type definition in the web reference. We had to delete all our binaries and
web references from the development environment, reattach the web references
and recompile. Then it worked.
I hope that points you in the right direction. Bottom line issue: don't
lose your cookies.
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
<Jessica.Landisman@.ndchealth.com> wrote in message
news:1105364285.978877.33130@.c13g2000cwb.googlegroups.com...
> Gary,
> Have you found a solution to this issue of the
> HttpContext.Current.Request being null or found more information on
> what might cause this to be null?
> - Jessica
> Garry Lenz wrote:
>> You may be getting the exception in the GetWebRequest override in the
>> derived ReportingService class because the
> HttpContext.Current.Request is
>> null which causes the call to the AuthCookie property to fail. I'm
> having a
>> similar problem that I'm working through right now. Maybe this will
> give you
>> some place to start looking for the problem.
>> Just a thought...
>> Garry
>>
>> "Tad" <Tad@.discussions.microsoft.com> wrote in message
>> news:CF04B8C0-641A-4D50-9A90-B49625266D90@.microsoft.com...
>> > I have tried to write a custom security extension. When I run the
> report
>> > manager I get ...
>> >
>> > Object Reference is not set to an instance of an object.
>> >
>> > It's breaking in GlobalApp.Application_AuthenticationRequest
>> >
>> > I figure its because it can't find my extension but I have the
> correct Url
>> > in the securityextensioncodegroup. Could it be the type attibute
> in the
>> > extension tag?
>> >
>> > Type="RSSecurity.AuthorizationExtension,AuthorizationExtension"
>sql

Sunday, March 11, 2012

Custom Parameter Page with Report Manager

Dear Everyone,

Suffice it to say, almost everyone who seriously uses (relies) reporting services hates the postbacks that the report parameter section does. It literally runs all queries that populates the report parameters. This will just not do.

We're thinking of creating a custom web page to either augment or replace the parameter section of the report. Our problem is that we dont know how to connect it to report manager in such a away that it will actually interact with the current instance of the report. Has anyone tried this at all? Does anyone have any idea on how to accomplish this?

Thanks,

Joseph

The postbacks should only occur when a parameter has parameters that depend on it. If you are seeing post backs in other cases, this could be a bug. Keep in mind that expression based parameters are assumed to have dependencies on all parameters that are defined before them. I'm not sure how you would write your own parameters that would not require a post back (unless you know all combinations of parameter values and never expect the back-end data to change).

Report Manager is not extensiblie so there is no way replace this section of Report Manager.

|||

Thanks for the reply. We understand that postbacks only occur on parameters with dependencies. But the thing that really is a head ache is when a post back occurs, all queries of all the parameters gets fired again in the server. Our reports have an average of 8 parameters. This means that when a post back occurs, all queries related to the 8 parameters (data set used in population) gets executed again making another round trip to the server. We're still hoping that this is a bug because for us, this is a major concern over the reporting services product and absolutely does not add any business value to the product.

|||

Yes, we do re-execute all queries. The reason is we need to verify that the values is still valid.

We do realize that this is a pain point and I have opened a bug to track this issue. That is not a guarantee that it will change, but we will certainly look into alternative solutions. Thanks for bringing this issue to us.

Have you looked into using Report Execution Snapshots? For these we will store all the parameter queries so they will not be re-executed. Of course you data will not be live either so that may not be an option for you.

|||

Thank you for a reply. It's a relief that at least someone is taking a look into it.

You mentioned the use of report execution snapshots. Are parameters with dependencies (cascading parameters) also cached when their used on report execution snapshots?

|||Yes, cascading parameters are all stored in the snapshot. You should not see any paramter queries run if the report is running from a snapshot execution. The problem is your limited to only change the parameters that are not in a query so I don't think it will solve your issue.

Wednesday, March 7, 2012

Custom Date Ranges

I'm currently using Reporting Services for SQL Server 2005. I have been able to setup, and configure the Report Manager interface, as well as generate reports via the Report Builder. What I have been unable to do is allow the user to dynamically set the date range that my SQL query will use. Can someone suggest / is it even possible wihtout using a custom web interface?

If you are using BI studio to build the report, you need to create two parameters, say StartDate and EndDate. Set the data type for both parameters to DateTime. Then in the data set query, in the where clause, you'll need to do something like DateTimeColumn BETWEEN @.StartDate AND DATEADD(d, 1, @.EndDate). HTH.

Saturday, February 25, 2012

Custom Connection Manger Doesn't Show Up In VS

I have created a custom connection manager and it was showing up fine as was the UI I created for it. For some reason now no matter what I do I cannot get it to show up in the list when right-clicking and choosing New connection...

I have also created two custom tasks. One of them works perfectly. The second was working but now causes an error when you open the package. Here is the error message:

TITLE: Microsoft Visual Studio

There were errors while the package was being loaded.
The package might be corrupted.
See the Error List for details.

There are no additional errors in the list only this one. I have tried everything I can think of to fix these two issues. Both problems emerged at the same time so may be related but that would not explain why the second custom task I have created works fine and doesn't cause errors.

Help!

Thanks,

Dave

1. CM: have you defined a public class with DtsConnection attribute that defines ConnectionType and other properties? Once you do it, install the assembly to GAC and DTS\Connections folder, then restart SSIS service.

2. Hard to diagnose remotely :) Try attaching debugger to DevEnv.exe process, and monitor first-chance exceptions - this usually gives the hint of what's wrong.

|||I've seen that error when the task is either not installed correctly (GAC + DTS\Tasks folder) or you have changed something such that the XML will have changed, e.g. Added a new property and not handled it in Upgrade.|||

EUREKA!!

I found the problem for the errors I was receiving on my custom task.

While the SSIS persistance framework can cope with simple data type properties on your custom task, it cannot copy with things as mundane as string or integer arrays but there are no errors at design time!

It recognizes the array properties and even gives you the nice builder for them in the properties window. You can click Save and then close the package all without incident. When you reopen the package, it carks it because it can't load the values for those properties. No error saying that that is the problem. All you see is the error message that is in my original post.

Where can I file a bug report/feature request to have this fixed? It has cost me nearly a week trying to figure it out.

Dave

|||

You can make request and report bugs at http://connect.microsoft.com

If you roll your own load and save methods you can handle it quite happily, just implement IDTSComponentPersist.

Custom Connection Manager or SSIS Provided one?

Hi,

I have been working with a client on a legacy application migration to SSIS and I found SSIS to be very helpful, as this is my first project using integration services I found myself in a situation where multiple solutions can work but I cannot assess the risk of using one or the other and the effort required for the implementation.

The situation is as following, we cannot touch the input files that come from the other legacy systems so I need to get information that is packaged following the next multipart schema:

&Header with context information from the source
&BatchHeader with context information from the batch (including format N)
- Data in format N
&BatchHeader with context information from the batch (including format K)
+Data in format K
&BatchHeader with context information from the batch (including format P)
=Data in format P

Etc... Needless to say that they can come in whatever order and they need different processing depending on the format. I have been tempted to use the techniq shown in "Handling Different Row Types In The Same File" from http://www.sqlis.com/default.aspx?54.

However, there are multiple issues that I have to resolve to do that: First is how to feed the pipeline with the Data in format N and then reparse them in an easy way cause the data that comes from the other system is very wide (aprox 120 columns), so using a parsing script is by no means a viable solution (I have multiple formats to handle). So I do not see a way to treat the data without using a Custom Connection Manager. Here comes my first question: Is there anyway someone can use the already provided managers to handle an scenario like this one?

Next comes the separation, which one is the wisest thing to do: Write again that to disk in as easier format or pass along that information to the next task in memory? The volume of data is in the order of hundreds of megabytes (100 to 200), maybe half a Gigabyte in the extreme cases. How about uploading that to SQL Server and work from there?

BTW, the production servers will have 6 to 8 Gb of memory and 4 to 8 processors (more or less).

Thanks in advance.

Federico


Hi, I am not sure I understand your questions.

>>>> First is how to feed the pipeline with the Data in format N and then reparse them

The concept show in the article loads the whole row as 1 column to get the data into the pipeline and then you make decissions and parse from there. The article shows using script components to parse but you could also just use a derived column transform and the expression syntax, it all depends on the complexity of splitting your file. My guess is the trick in your case is identification of the rows. Is there something that can identify each row?

File header (multiple rows?)
K_BatchHeader (multiple rows?)
K_rows
P_BatchHeader (Multiple Rows?)
P_rows
...
...

Or is the only way you know K rows for sure is they follow the KBatchHEader and precede some other header?
Could be a multi step approach is best. One to "Split" parse to the source files to individual file formats (k,p,N) and another to read those files and do the actual data processing. This way, the 2nd process can likely use the built in parsing features.

|||

What I can suggest is an approach.

Creating a custom connection manager won't do any good here because connection managers are agnostic to the Dataflow task. What you need is a custom source adapter...

Or, in certain cases you can use the flat file adapter to read in the file row by row and use a script transform to do the parsing.

The best thing to do is to create a custom source adapter. You'll have much more control and the solution will ultimately be more robust.

K

|||although a custom source component will do the trick, a script component may suffice.|||

Thanks Craig, you understood correctly :)

In fact the solution you propose is what I am going to implement because I could be able to get a sample of the format (what I had until this point was the functional extraction of the legacy Cobol programs) and the rows format is not even normalized. So the problem now reduces to Normalize the file format (where I can split it with a custom task) and then do the Staging on the database and further processing.

So in fact I am moving toward your solution ;)

Again, thanks for the help.

Greetings
Federico Andrs Lois

|||

Yeah I used the wrong name, I meant a source adapter :)

As I wrote to Craig, I am moving toward a prenormalization and splitting in a task just because I found the data wasnt as clean as I though (regarding the format) so it will be required a normalization step before that.

Thanks too for the response.

Greetings
Federico Andrs Lois