Showing posts with label reporting. Show all posts
Showing posts with label reporting. Show all posts

Friday, March 30, 2012

How do I migrate reports to new server

Hi all,
I just installed reporting services on a new server and need to migrate
existing reports from an old server to the new one. Being new to Reporting
Services, I am not sure of how to do this. Any help you gurus can provide
will be greatly appreciated.
Thanks,
--
LynnYou might want to use Reporting Services Scripter
http://www.sqldbatips.com/showarticle.asp?ID=62
Any questions just drop me a mail using the link in the readme file
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Lynn" <Lynn@.discussions.microsoft.com> wrote in message
news:7BEBF34B-420F-42D0-BEB0-33BF5E01AD46@.microsoft.com...
> Hi all,
> I just installed reporting services on a new server and need to migrate
> existing reports from an old server to the new one. Being new to
> Reporting
> Services, I am not sure of how to do this. Any help you gurus can provide
> will be greatly appreciated.
> Thanks,
> --
> Lynn|||> I just installed reporting services on a new server and need to migrate
> existing reports from an old server to the new one. Being new to
> Reporting
> Services, I am not sure of how to do this. Any help you gurus can provide
> will be greatly appreciated.
Hi Lynn,
I think this tool [1] can help you.
Look in the generated script to find out how it is working.
[1] http://www.sqldbatips.com/showarticle.asp?ID=62
Best regards,
--
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD

Wednesday, March 28, 2012

How do I launch an agent job from command line?

What is the easiest way to execute a SQL Agent (2005) job from the command line? I need to make a batch file to execute a reporting service shared schedule job.

Thanks in advance.

Refer to Books Online, Topic: 'DTExec utility'

DTExec.exe is the replacement for SQL 2000's DTSRun.exe.

|||Correct me if i'm wrong, but I think DTExec is just used for SSIS packages? I need to run the entire job. The job was generated by Reporting Services and I need to call it manually. Thanks a lot.|||

You're correct. I mis-interpreted your question.

You can use SQLCmd.exe, combined with a call to sp_startJob.

(If you are using SQL 2000, then use OSQL.exe instead of SQLCmd.)

Refer to Books Online for the complete syntax for either.

|||

Thanks a lot, I couldn't get the stored procedure to work but i just used the code that it mentioned in the Job properties window. The exact code for sqlcmd was: sqlcmd -Q "exec ReportServer.dbo.AddEvent @.EventType ='SharedSchedule', @.EventData='0dd48b88-6c35-4f3c-913e-b5299de948db'"

Thanks much.

Monday, March 26, 2012

How do I install Reporting services?

I come from access development background and I am new to SQL Server. I am
trying to learn it using the Developer edition. When I was installing SQL
server 2005 Developer edition, I came to the "Components to Install, Select
the components to install or upgrade"on the setup form , I noticed that
"Reporting Services" option was disabled is there a reason why? how can I
install it. After instalation, I tried to use the configure tools to
configure Report server I got the message "No report servers were found on
the specified machine.details: Invalid namespace". I had a dialog box
entiteled "Report Server Installation Instance Selection" with the Machine
Name box enabled and the machine name was entered but the "Instance name box"
was disabled? any idea.
thanks
AlYou need to installed the report service component from your Windows Server
2003 operating system
"Al" wrote:
> I come from access development background and I am new to SQL Server. I am
> trying to learn it using the Developer edition. When I was installing SQL
> server 2005 Developer edition, I came to the "Components to Install, Select
> the components to install or upgrade"on the setup form , I noticed that
> "Reporting Services" option was disabled is there a reason why? how can I
> install it. After instalation, I tried to use the configure tools to
> configure Report server I got the message "No report servers were found on
> the specified machine.details: Invalid namespace". I had a dialog box
> entiteled "Report Server Installation Instance Selection" with the Machine
> Name box enabled and the machine name was entered but the "Instance name box"
> was disabled? any idea.
> thanks
> Al|||Hi,
to clarify this a bit, there is no reporting services components of the
Windows 2003 Server system, but Reporting Services has the
prerequisites of IIS Service. This has to be installed from the
"Add/Remove Software" panel with the appropiate Windows 2003 Server
media.
HTH, Jens K. Suessmeyer.
--
http://www.sqlserver2005.de
--|||Thank you for responding. I do not have the Windows 2003 Server. I am
installing the Developer edition locally on Windows xp professional. is there
away to do it? is there another place (microsoft website) where I get IIS
service?
thanks
Al
"Jens" wrote:
> Hi,
> to clarify this a bit, there is no reporting services components of the
> Windows 2003 Server system, but Reporting Services has the
> prerequisites of IIS Service. This has to be installed from the
> "Add/Remove Software" panel with the appropiate Windows 2003 Server
> media.
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>|||For developer edition of SQL Server, you do not need Win2003 server. WinXP
is OK. You need to have IIS running (install it if you haven't. Since you
have WinXP Pro, you are OK).
"Al" <Al@.discussions.microsoft.com> wrote in message
news:65F24FC2-3F9C-48D6-B4F4-9323D10BC229@.microsoft.com...
> Thank you for responding. I do not have the Windows 2003 Server. I am
> installing the Developer edition locally on Windows xp professional. is
> there
> away to do it? is there another place (microsoft website) where I get IIS
> service?
> thanks
> Al
> "Jens" wrote:
>> Hi,
>> to clarify this a bit, there is no reporting services components of the
>> Windows 2003 Server system, but Reporting Services has the
>> prerequisites of IIS Service. This has to be installed from the
>> "Add/Remove Software" panel with the appropiate Windows 2003 Server
>> media.
>> HTH, Jens K. Suessmeyer.
>> --
>> http://www.sqlserver2005.de
>> --
>>|||Windows XP Pro has IIS but it is not running/installed. Go to Control Panel,
Add/Remove, then on the left there will be a selection called something like
Windows Components. You need to have IIS running prior to installing RS. You
also need to have SQL Server Installed. If you are installing RS 2005 then
you can install both SQL Server and RS at the same time. Note you will have
two installs. The server install and then the client tools. I strongly
recommend using RS 2005.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Al" <Al@.discussions.microsoft.com> wrote in message
news:65F24FC2-3F9C-48D6-B4F4-9323D10BC229@.microsoft.com...
> Thank you for responding. I do not have the Windows 2003 Server. I am
> installing the Developer edition locally on Windows xp professional. is
> there
> away to do it? is there another place (microsoft website) where I get IIS
> service?
> thanks
> Al
> "Jens" wrote:
>> Hi,
>> to clarify this a bit, there is no reporting services components of the
>> Windows 2003 Server system, but Reporting Services has the
>> prerequisites of IIS Service. This has to be installed from the
>> "Add/Remove Software" panel with the appropiate Windows 2003 Server
>> media.
>> HTH, Jens K. Suessmeyer.
>> --
>> http://www.sqlserver2005.de
>> --
>>|||yes you are right. I tried to install the IIS from the windows Components
and from the original cd and made all the selections it asked me. I then
restarted my computer but nothing happened. it does not show on the control
panel>add remove program and it does not show on the all programs menu. how
do I know if it was installed?
Al
"Bruce L-C [MVP]" wrote:
> Windows XP Pro has IIS but it is not running/installed. Go to Control Panel,
> Add/Remove, then on the left there will be a selection called something like
> Windows Components. You need to have IIS running prior to installing RS. You
> also need to have SQL Server Installed. If you are installing RS 2005 then
> you can install both SQL Server and RS at the same time. Note you will have
> two installs. The server install and then the client tools. I strongly
> recommend using RS 2005.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Al" <Al@.discussions.microsoft.com> wrote in message
> news:65F24FC2-3F9C-48D6-B4F4-9323D10BC229@.microsoft.com...
> > Thank you for responding. I do not have the Windows 2003 Server. I am
> > installing the Developer edition locally on Windows xp professional. is
> > there
> > away to do it? is there another place (microsoft website) where I get IIS
> > service?
> > thanks
> > Al
> >
> > "Jens" wrote:
> >
> >> Hi,
> >>
> >> to clarify this a bit, there is no reporting services components of the
> >> Windows 2003 Server system, but Reporting Services has the
> >> prerequisites of IIS Service. This has to be installed from the
> >> "Add/Remove Software" panel with the appropiate Windows 2003 Server
> >> media.
> >>
> >> HTH, Jens K. Suessmeyer.
> >>
> >> --
> >> http://www.sqlserver2005.de
> >> --
> >>
> >>
>
>

Wednesday, March 21, 2012

How Do I Hide Internet Explorer Menu and Tool Bar

How can I hide the Internet Explorer Menu and Tool Bar in SQL Reporting.

If I am understanding what you are asking, that is not possible with SSRS.

|||I have a report generated by SQL Reporting service from another program, I just want the Internet Explorer Menu and tool to be hidden so that the user could not navigate to another site.|||Hi -

You should be able to do this using javascript in the calling page. Something like:

function popReport(parm)
{

window.open("path\to\report?parameters="+parm, "WindowName", "location=no, scrollbars=yes, menubar=no, status=no, resizable=yes, height=500px, width=300px");

}

You can call it using the onclick event of an item in the calling page, like:

<a onclick="return popReport('<% =label.Text %> ')" href="#">....</a>

Here's a link to some more information
http://msdn2.microsoft.com/en-us/library/ms536651.aspx

HTH...

Joe|||

I tried that , but it did not work since the SQL Reporting Service launches the Internet Explorer.

Is there a way to configure the the Report to pass parameters to IE ?

|||I'm not following you. Are browsing to the reports from within Report Manager? Or are you calling the report from another web page?

Joe|||I am calling the report from another web page passing the report parameters. The problem is after the report is launched . I do not want the user to have access to the Internet Explorer Menu or any Web navigational tool, want the IE to display the report and the report tools but not the IE Menu and Tools or the Address Bar.|||

Then you would probably want to handle this with the web page. SSRS generates reports. It really has nothing to do with Internet Explorer other than it is displayed IN Internet Explorer.

Are you using Visual Studio 2005 to create a web application? If so, you will have quite a bit of control over the web page. What tool are you using? Or are you creating the web page from "scratch"?

How Do I Hide Internet Explorer Menu and Tool Bar

How can I hide the Internet Explorer Menu and Tool Bar in SQL Reporting.

If I am understanding what you are asking, that is not possible with SSRS.

|||I have a report generated by SQL Reporting service from another program, I just want the Internet Explorer Menu and tool to be hidden so that the user could not navigate to another site.|||Hi -

You should be able to do this using javascript in the calling page. Something like:

function popReport(parm)
{

window.open("path\to\report?parameters="+parm, "WindowName", "location=no, scrollbars=yes, menubar=no, status=no, resizable=yes, height=500px, width=300px");

}

You can call it using the onclick event of an item in the calling page, like:

<a onclick="return popReport('<% =label.Text %> ')" href="#">....</a>

Here's a link to some more information
http://msdn2.microsoft.com/en-us/library/ms536651.aspx

HTH...

Joe|||

I tried that , but it did not work since the SQL Reporting Service launches the Internet Explorer.

Is there a way to configure the the Report to pass parameters to IE ?

|||I'm not following you. Are browsing to the reports from within Report Manager? Or are you calling the report from another web page?

Joe|||I am calling the report from another web page passing the report parameters. The problem is after the report is launched . I do not want the user to have access to the Internet Explorer Menu or any Web navigational tool, want the IE to display the report and the report tools but not the IE Menu and Tools or the Address Bar.|||

Then you would probably want to handle this with the web page. SSRS generates reports. It really has nothing to do with Internet Explorer other than it is displayed IN Internet Explorer.

Are you using Visual Studio 2005 to create a web application? If so, you will have quite a bit of control over the web page. What tool are you using? Or are you creating the web page from "scratch"?

sql

How Do I Hide Internet Explorer Menu and Tool Bar

How can I hide the Internet Explorer Menu and Tool Bar in SQL Reporting.

If I am understanding what you are asking, that is not possible with SSRS.

|||I have a report generated by SQL Reporting service from another program, I just want the Internet Explorer Menu and tool to be hidden so that the user could not navigate to another site.|||Hi -

You should be able to do this using javascript in the calling page. Something like:

function popReport(parm)
{

window.open("path\to\report?parameters="+parm, "WindowName", "location=no, scrollbars=yes, menubar=no, status=no, resizable=yes, height=500px, width=300px");

}

You can call it using the onclick event of an item in the calling page, like:

<a onclick="return popReport('<% =label.Text %> ')" href="#">....</a>

Here's a link to some more information
http://msdn2.microsoft.com/en-us/library/ms536651.aspx

HTH...

Joe|||

I tried that , but it did not work since the SQL Reporting Service launches the Internet Explorer.

Is there a way to configure the the Report to pass parameters to IE ?

|||I'm not following you. Are browsing to the reports from within Report Manager? Or are you calling the report from another web page?

Joe|||I am calling the report from another web page passing the report parameters. The problem is after the report is launched . I do not want the user to have access to the Internet Explorer Menu or any Web navigational tool, want the IE to display the report and the report tools but not the IE Menu and Tools or the Address Bar.|||

Then you would probably want to handle this with the web page. SSRS generates reports. It really has nothing to do with Internet Explorer other than it is displayed IN Internet Explorer.

Are you using Visual Studio 2005 to create a web application? If so, you will have quite a bit of control over the web page. What tool are you using? Or are you creating the web page from "scratch"?

How do I get Visual Studio to open a deployed report?

Greetings,

I have a report that was previously deployed to a reporting services host (running Reporting Services 2005 SP2) and I'm running the version of Visual Studio that came with reporting services on the same reporting serviceshost. The deployed report was never opened on this particular server, so it doesn't appear in the recent files list. Is there a trick to open a deployed report in all of Visual Studio's report editing glory? Visual Studio has a File Open option to open an analysis services database, a project, or a file. A "deployed report" seems to be none of these options since it's an RDL file stored somewhere that IIS can find it. I know that I can use Report Manager and export the RDL for the report and then edit that RDL file in Visual Studio, but doing that appears to disable all of Visual Studio's report editing features (ie it works no better than notepad). What's the trick to get Visual Studio to open the deployed report and allow all of it's editing tools to work properly and then save the updated report back to the reporting services server?

Thanks,

Ron

In report manager, go to the report properties.

there is a button in there 'save/edit' or similar

you can then save the file locally and open it in vs.net

NB don't forget 2000 rdl files will be automatically upgraded to 2005

Monday, March 19, 2012

How Do I Get Reporting Services for SQL 2000?

Many of the MS links on Reporting Services are broken now that SQL 2005 has
been released. I have two clients who already have SQL 2000 and are
interested in using this tool, but I have no idea how to get it anymore. They
have a nice page describing some licensing scenarios, but no information on
how to get a copy. Can anybody help? Thanks in advance!I'm in the same position of looking into RS for SQL 2k, and other than
the licensing page, this was the best I could come up with on the web:
SQL Server 2000 Reporting Services Evaluation Edition
http://www.microsoft.com/downloads/details.aspx?FamilyID=ba517c01-2e2f-4bc7-84af-149b7637f807&DisplayLang=en
SQL Server 2000 Reporting Services Service Pack 2
http://www.microsoft.com/downloads/details.aspx?familyid=502C0D89-1308-4662-8F58-CEC55EF1235B&displaylang=en
Hotfix for SQL Server 2000 Reporting Services SP2
http://www.microsoft.com/downloads/details.aspx?FamilyID=7ffe50d4-aff8-4c1e-9609-6798190c2d58&displaylang=en
HTH,
Sean G.|||In case anyone's interested, here's what I've found out so far. Reporting
Services was included on the SQL Server 2000 media starting in March 2004.
For customers who have an old copy of SQL2k, you may be out of luck. Your
best chance may be to try and order replacement copies of your installation
media and hope that the RS install is on there. I've spoken to MS
representatives twice and that's the best they can come up with. If anyone
has any additional information, I'd be grateful if you could pass it along.
"SeanGerman@.gmail.com" wrote:
> I'm in the same position of looking into RS for SQL 2k, and other than
> the licensing page, this was the best I could come up with on the web:
> SQL Server 2000 Reporting Services Evaluation Edition
> http://www.microsoft.com/downloads/details.aspx?FamilyID=ba517c01-2e2f-4bc7-84af-149b7637f807&DisplayLang=en
> SQL Server 2000 Reporting Services Service Pack 2
> http://www.microsoft.com/downloads/details.aspx?familyid=502C0D89-1308-4662-8F58-CEC55EF1235B&displaylang=en
> Hotfix for SQL Server 2000 Reporting Services SP2
> http://www.microsoft.com/downloads/details.aspx?FamilyID=7ffe50d4-aff8-4c1e-9609-6798190c2d58&displaylang=en
>
> HTH,
> Sean G.
>|||Here are the links for RS 2000:
http://www.microsoft.com/sql/prodinfo/previousversions/default.mspx
http://www.microsoft.com/sql/technologies/reporting/retailfulfillment.mspx
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Baxter" <Baxter@.discussions.microsoft.com> wrote in message
news:21B99198-9D06-4474-AB1C-83B87FB7B5A7@.microsoft.com...
> In case anyone's interested, here's what I've found out so far. Reporting
> Services was included on the SQL Server 2000 media starting in March 2004.
> For customers who have an old copy of SQL2k, you may be out of luck. Your
> best chance may be to try and order replacement copies of your
> installation
> media and hope that the RS install is on there. I've spoken to MS
> representatives twice and that's the best they can come up with. If anyone
> has any additional information, I'd be grateful if you could pass it
> along.
> "SeanGerman@.gmail.com" wrote:
>> I'm in the same position of looking into RS for SQL 2k, and other than
>> the licensing page, this was the best I could come up with on the web:
>> SQL Server 2000 Reporting Services Evaluation Edition
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=ba517c01-2e2f-4bc7-84af-149b7637f807&DisplayLang=en
>> SQL Server 2000 Reporting Services Service Pack 2
>> http://www.microsoft.com/downloads/details.aspx?familyid=502C0D89-1308-4662-8F58-CEC55EF1235B&displaylang=en
>> Hotfix for SQL Server 2000 Reporting Services SP2
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=7ffe50d4-aff8-4c1e-9609-6798190c2d58&displaylang=en
>>
>> HTH,
>> Sean G.
>>|||The retail fulfillment link has been updated as follows:
http://www.microsoft.com/sql/prodinfo/previousversions/rs/retailfulfillment.mspx
"Daniel Reib [MSFT]" wrote:
> Here are the links for RS 2000:
> http://www.microsoft.com/sql/prodinfo/previousversions/default.mspx
> http://www.microsoft.com/sql/technologies/reporting/retailfulfillment.mspx
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Baxter" <Baxter@.discussions.microsoft.com> wrote in message
> news:21B99198-9D06-4474-AB1C-83B87FB7B5A7@.microsoft.com...
> > In case anyone's interested, here's what I've found out so far. Reporting
> > Services was included on the SQL Server 2000 media starting in March 2004.
> > For customers who have an old copy of SQL2k, you may be out of luck. Your
> > best chance may be to try and order replacement copies of your
> > installation
> > media and hope that the RS install is on there. I've spoken to MS
> > representatives twice and that's the best they can come up with. If anyone
> > has any additional information, I'd be grateful if you could pass it
> > along.
> >
> > "SeanGerman@.gmail.com" wrote:
> >
> >> I'm in the same position of looking into RS for SQL 2k, and other than
> >> the licensing page, this was the best I could come up with on the web:
> >>
> >> SQL Server 2000 Reporting Services Evaluation Edition
> >> http://www.microsoft.com/downloads/details.aspx?FamilyID=ba517c01-2e2f-4bc7-84af-149b7637f807&DisplayLang=en
> >>
> >> SQL Server 2000 Reporting Services Service Pack 2
> >> http://www.microsoft.com/downloads/details.aspx?familyid=502C0D89-1308-4662-8F58-CEC55EF1235B&displaylang=en
> >>
> >> Hotfix for SQL Server 2000 Reporting Services SP2
> >> http://www.microsoft.com/downloads/details.aspx?FamilyID=7ffe50d4-aff8-4c1e-9609-6798190c2d58&displaylang=en
> >>
> >>
> >> HTH,
> >>
> >> Sean G.
> >>
> >>
>
>

Monday, March 12, 2012

How do I get a RS report onto an Internet website?

I've written our first Reporting Services report, using SQL Server 2005. Since we've never used RS before, we may, or may not, have done some things correctly. One of the things is that we only have the Reporting Services, and Report Manager, on our SQL Server 2005 server, which is in our network behind our firewall.

We also have an ASP.NET 1.1 application which is used by external users (other businesses that do business with us). Because of the nature of our business, we don't want people from one agency to access data from another agency. Since calling the report in RS involved passing parameters to the report in the URL, I decided that I would hide those details by putting the web page returned by RS into an IFRAME in an aspx page. It works just fine in our network, but I discovered that it does not work at all outside of our network.

So, my question is how do I make the RS report available to users outside of our network, in such a way that they don't have access to the parameters that I pass to the report? Should I discard the whole IFRAME approach? I have been told that it will likely require doing something about passing credentials to the backend server from the ASP.NET app, but I don't know how to do that, nor do I know what would be involved.

The most straightforward approach is to use the VS reportviewer control & run your report in local mode, e.g., do not rely upon the report server. This approach eliminates the need to create a security extesion for report server. Cheers!|||

I'm sorry to be so obtuse, but what do you mean by, "run [my] report in local mode"?

|||

DoctorWho:

I'm sorry to be so obtuse, but what do you mean by, "run [my] report in local mode"?

Never mind, I've found it (local mode).

How do I get a RS report onto an Internet app?

I've written our first Reporting Services report, using SQL Server 2005. Since we've never used RS before, we may, or may not, have done some things correctly. One of the things is that we only have the Reporting Services, and Report Manager, on our SQL Server 2005 server, which is in our network behind our firewall.

We also have an ASP.NET 1.1 application which is used by external users (other businesses that do business with us). Because of the nature of our business, we don't want people from one agency to access data from another agency. Since calling the report in RS involved passing parameters to the report in the URL, I decided that I would hide those details by putting the web page returned by RS into an IFRAME in an aspx page. It works just fine in our network, but I discovered that it does not work at all outside of our network.

So, my question is how do I make the RS report available to users outside of our network, in such a way that they don't have access to the parameters that I pass to the report? Should I discard the whole IFRAME approach? I have been told that it will likely require doing something about passing credentials to the backend server from the ASP.NET app, but I don't know how to do that, nor do I know what would be involved.

Your report will be trying to access data from the SQL Server and your internet site will be passing through port 80 (Open to the world) and therefore the SQL Data side will be blocked, If you open the SQL Port on the firewall then you will see the report runs fine, but then you have a SQL Port open!! Thats a whole other issue, You can do an internal redirect which will give you the same result but slightly more secure.

Your choice on that one...

|||

Andy,

What do you mean by I "... can do an internal redirect...". What is that and how do I do that, please?

|||

Rod, possibly Teo's article will help you: "Harden MS Reporting Services Using Custom Extensions"

How DO I Generate a Table Of Contents For a Report?

Hi!!!

Can anybody help me with the generation of Table of Contents for a report using SQL Server 2005 Reporting Services. Let me ellaborate. The scenerio is...i m having a report of lets say 500 pages grouped on employees, showing the performance of each employee between specific date range. Now if the manager prints the report of 500 pages he will be more intersted to jump directly to a perticular employee's page which means my printed report had to have a Table of Contents on my grouped criteria (which in this case is employee number). I would really appriciate if someone can suggest me a solution for this.

Any reason why all 500 pages have to be printed? If your manager can agree to viewing the information on line, your best option would be to use a document map. Not sure if you can print the information used to build the document map but I'm guessing your table of contents would at least begin with a document map. BTW, document map properties are an attribute of a group.|||Yes actually i had that option of Document Map in mind but the thing is, there are scenerios where lenghty reports are printed and taken to meetings with every person having its own copy of report and they have to discuss those reports along with directly taking notes/comments on the printed report for future reference. So its a sort of compulsion to have TOC with page number reference for printed reports so that they can quickly jump to any specific page for discussion. I appriciate your reply but do you have any ideas to get it done by any means may be through coding or any other way?|||

Anybody? Its really urgent.

Thanx.

|||There should be some simple work around for this thing if it does not have a built-in support for it? any ideas guys?|||

I have been working on this table of content thing for a week now. I have somehow found a solution for that. You can write an assembly containing a function which would take 2 paramenters the page number and your group name (Which needs to be on the table of contents) and write them to an xml file or a database table. Once you are done with the assembly you can reference that assembly in you rdl file and pass that the page number and the current group on the page to that function. You will have a complete table of contents in form of an xml or database table whatever you select. If you have any questions i can explain them in more details

I have done this so far and now only thing left is to display that TOC on the original report again. I m wroking on it... so far this is what i tried... i added my TOC data set to a new report and made my original report a sub report in that report. Now there are 2 issues. (1) The sub report wont show the page numbers. (2) I will have to run the subreport once before the main report so that it writes the TOC values to the xml file or table which can be accessed then in the main report. I think it can be done on windows form or a web form to call that subreport as an independent report somehow hidden from user, but i would be more interested to do all this stuff from the report if possible.

Thanx!

How DO I Generate a Table Of Contents For a Report?

Hi!!!

Can anybody help me with the generation of Table of Contents for a report using SQL Server 2005 Reporting Services. Let me ellaborate. The scenerio is...i m having a report of lets say 500 pages grouped on employees, showing the performance of each employee between specific date range. Now if the manager prints the report of 500 pages he will be more intersted to jump directly to a perticular employee's page which means my printed report had to have a Table of Contents on my grouped criteria (which in this case is employee number). I would really appriciate if someone can suggest me a solution for this.

Any reason why all 500 pages have to be printed? If your manager can agree to viewing the information on line, your best option would be to use a document map. Not sure if you can print the information used to build the document map but I'm guessing your table of contents would at least begin with a document map. BTW, document map properties are an attribute of a group.|||Yes actually i had that option of Document Map in mind but the thing is, there are scenerios where lenghty reports are printed and taken to meetings with every person having its own copy of report and they have to discuss those reports along with directly taking notes/comments on the printed report for future reference. So its a sort of compulsion to have TOC with page number reference for printed reports so that they can quickly jump to any specific page for discussion. I appriciate your reply but do you have any ideas to get it done by any means may be through coding or any other way?|||

Anybody? Its really urgent.

Thanx.

|||There should be some simple work around for this thing if it does not have a built-in support for it? any ideas guys?|||

I have been working on this table of content thing for a week now. I have somehow found a solution for that. You can write an assembly containing a function which would take 2 paramenters the page number and your group name (Which needs to be on the table of contents) and write them to an xml file or a database table. Once you are done with the assembly you can reference that assembly in you rdl file and pass that the page number and the current group on the page to that function. You will have a complete table of contents in form of an xml or database table whatever you select. If you have any questions i can explain them in more details

I have done this so far and now only thing left is to display that TOC on the original report again. I m wroking on it... so far this is what i tried... i added my TOC data set to a new report and made my original report a sub report in that report. Now there are 2 issues. (1) The sub report wont show the page numbers. (2) I will have to run the subreport once before the main report so that it writes the TOC values to the xml file or table which can be accessed then in the main report. I think it can be done on windows form or a web form to call that subreport as an independent report somehow hidden from user, but i would be more interested to do all this stuff from the report if possible.

Thanx!

|||I started down this path, and found quite quickly that I cannot reference Globals.PageNumber() within the body...therefore, I cannot tell a function that "Strategy A is on page 5", etc... How did you solve this problem?

Thx,
Mojo

|||

I too would like to know if there is an easy way to add Table of Content.

The work around I use is, Right click on any groups / details area --> Nevigation tab --> Document map..Using drop down, choose the data element file that you wish to include in Table of Content.

The document map builds a nevigation menu on the left side pane of the report window.

|||

Its been a while since i did that, but lets try this,

Write your custom assembly with following code ..

using System;

using System.Collections.Generic;

using System.Text;

namespace ReportsCustomAssembly

{

public class CustomCode

{

public static int CurrPageNum;

public static int SavePage(int CurrPage )

{

CurrPageNum=CurrPage;

return CurrPageNum;

}

}

}

Build your assembly and add reference it in the report. Now in the page header add a text box and wirte expression =ReportsCustomAssembly.CustomCode.SavePage(Globals!PageNumber)

Now you have your page number stored in the static varible "CurrPageNum" defined in your custom assembly. You can reuse it in body or anywhere else in the report.

=ReportsCustomAssembly.CustomCode.CurrPageNum

I hope it should work, i remember vaugely this is somewhat i did, but lemme know if you face any problems i can go back and recheck how exactly i did that.

|||

I am afraid my friend, I haven't been able to find any solution at all which is straight forward. I expected it to be a straight forward thing too but didnt work that way.

I would highly recommend if the document map can be used as an alternative to the TOC in your case, you should use it, because it is much easier to use, provides you with interactive hyper links on the report and most of all if you export it to PDF or Excel it creates the the bookmarks equvilant to the document map you have on the report.

However in my specific scenerio i needed a TOC because my business requirement was to print out big reports starting with TOC right at the top.

How DO I Generate a Table Of Contents For a Report?

Hi!!!

Can anybody help me with the generation of Table of Contents for a report using SQL Server 2005 Reporting Services. Let me ellaborate. The scenerio is...i m having a report of lets say 500 pages grouped on employees, showing the performance of each employee between specific date range. Now if the manager prints the report of 500 pages he will be more intersted to jump directly to a perticular employee's page which means my printed report had to have a Table of Contents on my grouped criteria (which in this case is employee number). I would really appriciate if someone can suggest me a solution for this.

Any reason why all 500 pages have to be printed? If your manager can agree to viewing the information on line, your best option would be to use a document map. Not sure if you can print the information used to build the document map but I'm guessing your table of contents would at least begin with a document map. BTW, document map properties are an attribute of a group.|||Yes actually i had that option of Document Map in mind but the thing is, there are scenerios where lenghty reports are printed and taken to meetings with every person having its own copy of report and they have to discuss those reports along with directly taking notes/comments on the printed report for future reference. So its a sort of compulsion to have TOC with page number reference for printed reports so that they can quickly jump to any specific page for discussion. I appriciate your reply but do you have any ideas to get it done by any means may be through coding or any other way?|||

Anybody? Its really urgent.

Thanx.

|||There should be some simple work around for this thing if it does not have a built-in support for it? any ideas guys?|||

I have been working on this table of content thing for a week now. I have somehow found a solution for that. You can write an assembly containing a function which would take 2 paramenters the page number and your group name (Which needs to be on the table of contents) and write them to an xml file or a database table. Once you are done with the assembly you can reference that assembly in you rdl file and pass that the page number and the current group on the page to that function. You will have a complete table of contents in form of an xml or database table whatever you select. If you have any questions i can explain them in more details

I have done this so far and now only thing left is to display that TOC on the original report again. I m wroking on it... so far this is what i tried... i added my TOC data set to a new report and made my original report a sub report in that report. Now there are 2 issues. (1) The sub report wont show the page numbers. (2) I will have to run the subreport once before the main report so that it writes the TOC values to the xml file or table which can be accessed then in the main report. I think it can be done on windows form or a web form to call that subreport as an independent report somehow hidden from user, but i would be more interested to do all this stuff from the report if possible.

Thanx!

Wednesday, March 7, 2012

How do I enable 2005''s taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

How do I enable 2005''s taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

How do I enable 2005''s taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

How do I enable 2005''s taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

Friday, February 24, 2012

How do I enable 2005''s taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

How do I enable 2005's taskpad ?

I created a new SQL 2005 DB with reporting server installed. I can run reports for any DB on this server only. I have some 5 others servers(SQL 2000) connected via Microsoft SQL server management studio. How can I enable the reporting services to report on functions(similar to taskpad on 2000) on these servers too ? The report buttons are grayed out when I expand those servers trees under the mgt studio. I'm a SQL 2K user just learning SQL 2005.

Thanks all

I'm moving this thread to the Tools General forum. Hopefully then can help you out. If not, try the Reporting Services forum.

-Jeffrey

|||

Whilst managing 2000 servers from management studio there is no equivalent to Taskpad.

If managing a 2005 server you can access reports by viewing the summary page (f7) and selecting a report from the drop down. You don't need reporting services installed to use this feature. The reports available is dependent on the node selected in the object explorer.

|||So are there any options or should we just run the MMC for SQL 2000 to get maintenance data from our SQL 2000 server? What are other people doing for things like disk usage and such?
|||An even better question... since there are no reports in SQL 2005 for a SQL DB running in compatability mode - what are people doing?
|||

I guess I've been waiting on somebody else to do it... maybe it's been done and I haven't found it yet, but...

Most of the queries run by Taskpad work just fine against SQL 2000 or 2005, so creating a custom report that does the same things shouldn't be TOO hard.

among other things, Taskpad runs the following queries:

Code Snippet

exec sp_spaceused

DBCC SQLPERF(LOGSPACE)

select backup_finish_date from backupset where type = 'D' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'I' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select backup_finish_date from backupset where type = 'L' and database_name = N'YOURDATABASENAME' order by backup_finish_date desc

select p.plan_id, p.plan_name from sysdbmaintplans p, sysdbmaintplan_databases d where (d.database_name = 'All Databases' or d.database_name = 'All User Databases' or d.database_name = N'YOURDATABASENAME') and (p.plan_id = d.plan_id)

For the Table Info tab, Enterprise Manager gets a list of tables/indexes using this query:

Code Snippet

select sysusers.name + N'.' + sysobjects.name as ObjectName,
sysindexes.name as IndexName, sysindexes.rows,
case indid when 1 then 1 else 0 end as IsClusteredIndex,
sysindexes.indid, sysobjects.name, sysusers.name
from sysusers, sysobjects, sysindexes
where sysusers.uid = sysobjects.uid
and sysindexes.id = sysobjects.id
and sysobjects.name not like '#%'
and OBJECTPROPERTY(sysobjects.id, N'IsMSShipped') <> 1
and OBJECTPROPERTY(sysobjects.id, N'IsSystemTable') = 0
order by ObjectName, IsClusteredIndex DESC,
indexproperty(sysindexes.id, sysindexes.name, N'IsStatistics'), IndexName

and then runs sp_spaceused for each individual table (at least for those shown on each page).

Wish I had more free time to create something... anyone else wanna give it a shot? Smile

|||

We have written a custom report for this for SQL2005

http://sqlblogcasts.com/files/folders/custom_reports/default.aspx

Unfortunately it Management studio only allows custom reports against SQL2005 databases and in 90 compatibility. I have heard that might change in the future.

If you feel strongly about it vote for it here

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=240476

|||Wow... I thought this was going to slip into the ether. Thanks cborden and SimonS! Major help.

How do I dynamically change the ReportViewer's focus from one RDLC to another at runtime in cod

Howdy friends,

I have a question regarding SQL Reporting Services 2005. I have raised this question in several other places, only to watch it go unanswered. Hope to recieve the answer here.

I am using a SQL Reporting Services .RDLCs inside a Visual Basic 2005 windows client application. This is not webclient or web context; it is a Windows client. We will run the reports on the client side, not server side. The reports are embedded resources deployed in an MSI along with the rest of the application. I have one WinForm in the project which hosts the ReportViewer control. We have 5 unique RDLC report definitions. Any of our end user may want or need to preview at any of these 5 reports inside this single ReportViewer WinForm at run time.

So far I have found absolutely no way to dynamically change the RDLC which the ReportViewer displays at run time, and in code. How can this be done?

Whenever I ask this question, some joker always pops and says "That's easy, you just open your form in Visual Studio and use the smart tags to go through the binding setup." That is not particularly helpful because it doesn't answer the question. The question is not how to redesign the form inside Visual Studio with smart tags. The question is how to dynamically change the report that the ReportViewer displays dynamically, at runtime, and in code.

At the moment I think there is no solution to this problem. It seems that an RDLC is bound to the ReportViewer at design time and is immutably fixed at runtime. So far I have seen no working code which changes ReportVIewer from one RDLC to another. I am close to reaching the conclusion that I must make 5 copies of the same form, and bind 1 copy to 1 .RDLC in design mode. This is a pretty lame-arse solution if you ask me.

Anybody have a clue?

I am also struggling with the same problem.

I tried changing the ReportPath to a different rdlc at runtime. I also added a new "objectdatasource" to the Viewer window. However, I'm not sure how to specify which "objectdatasource" the ReportViewer should use.

Can Dave be right? "It seems that an RDLC is bound to the ReportViewer at design time and is immutably fixed at runtime. "

|||

When you bind the report viewer control to the form, there is a call to load the report on startup. You can remove this call, change the properties dynamically, then load the selected report in the viewer.

I bound Report1.rdlc to my viewer control.

I commented out the following line of code in the form load method.

//this.reportViewer1.RefreshReport();

And added:

this.reportViewer1.LocalReport.ReportEmbeddedResource = "WindowsApplication1.Report2.rdlc";

this.reportViewer1.RefreshReport();

The WindowsApplication1.Report2.rdlc could be a method that dynamically sets the value.

Check out http://www.gotreportviewer.com from more tips.