Generating a Cognos report using cognos report studio for a SQL query - sql

I am a newbie in Cognos. I am trying to create a report using report studio, I have the required package, and I want to create a report using a complex SQL query which has joins between three tables. Can anyone please give a suggestion to start building the report? Thanks!

How to write SQL for Cognos reports
FM is to create complex models. If you need a quick-and-dirty report you can specify custom SQL as the tutorial shows.

It would depend on how the data you see in Report Studio is modelled, typically a tool called Framework Manager is used connect to and model the source tables and views. Framework Manager creates the packages that you see in Report Studio, it can define relationships between entities like tables (if they're not already defined in the source database).
Not sure how to tell from Report Studio if the relationship has been defined properly other than trying to pull over fields from each table into the same Report Studio Query. It is best to talk to whoever designed the Framework Manager model or look at the model itself.

Related

How To Create Query In RDLC Report Using VB 2010

I want to create a report with .rdlc, in this case i want to join some table and put the result in table on the rdlc file. I got confused, coz there is no place to put my query in the report.
Did i have to write some coding to create the report, so i can use the query?
Regards
I suggest downloading SAP Crystal Reports (http://www.crystalreports.com/). If you are using SQL Server, use Business Intelligence to create the report through the server. The report viewer currently installed with Visual Studio is not user friendly.

SQL SSRS Report Builder - cannot see views only tables?

I am using SSRS Report Builder with SQL 2005 and I am trying to build some reports from my data sources.
However when I bring up the data source entities it is only showing tables not views which is what I want to use to make the coding neater and easy to use.
Am I missing something? Can anyone advise a way to get the views to be shown up in the Entities options?
Any help much appreciated.
Thanks,
Based on the note in the following posting, if you created your model using Report manager it does not show views. You need to use Development studio.
See this link

report builder 3.0

I am in the process of evaluiting Ad-Hoc reporting tool on top SQL Server 2008 R2. I would like to know what are the limitations around the Report Builder 3.0 which comes with SQL server.
What reports we can do in VS 2008 with BIDS and which we can not do in Report Builder 3.0 We are trying to answer what can be done what can be done with Report Builder.
Please share your real time experiance
We went through this same evaluation not that long ago. Basically BIDS and Report Builder 2/3 allow you to do the same thing. Report Builder is for those users who want to create or modify their own reports without needing to install BIDS. Report Builder has a Microsoft Office look and feel. It has the ribbon controls similar to Excel and Word. The same .RDL or .RDLC is generated by both. However, Report Builder 3 only targets SSRS 2008 R2. The .RDL format has changed for SSRS 2008 R2.
Either way the report can be deployed to an SSRS server, Sharepoint or the Microsoft Report Viewer (for .RDLC files).
As you may or may not know, there is no BIDS for Visual Studio 2010 (yet). If you want to use BIDS, you'll need to use VS 2008, which targets SQL Server 2008.
I think for a Power User who already has gone through tools like Cognos and Business Objects, the reprot builder 3.0 seems to lack lot of features while reporting against the cube. Here are the main.
I cannot create a variable which I can use in multiple tables in the report. I thought I could use "calculated member" but it does not let me use any kind of aggregate function on any of the objects against the cube as it treats everything as aggregate objects.
I cannot use a simple "OR" statement in the query filter.
Power user while building the report need to always pay attention to "row group", which I think is frustrating. In other tools the measure or fact groups it only groups by the dimension u have in the table.
Row limitations while exporting to excel.

How to include a database's views in the SQL Reporting Services Model

I am new to SQL Reporting Services. I need to create a report from a SQL view in my database. When I add the database as a data source and generate a model from that data source, the model includes the database's tables, but not its views.
Is there a way to include the views in the model so I can use them in my report?
Additional Details: Using SQL Server and Reporting Services 2005
A friend pointed out that the problem here is that a model is not necessary for what I want to do. The reason I thought it was necessary is because Report Builder 1.0 requires you to select a model when you create the report. Business Intelligence Development Studio, however, does not (Neither do Report Builder versions 2+).
I will be making the report in Business Intelligence Development Studio instead.
http://msdn.microsoft.com/en-us/library/ms345300%28v=sql.105%29.aspx
This is a useful link to create a model via Business Intelligence Studio (which can include views too).

Crystal Reports

I have installed Crystal Reports and am using it in Visual Studio 2005.
Can anyone help me as to how i can use SQL Server 2000 to generate reports using Stored Procedures.
Im not sure i have understood the question. if you want SPs to write the RPT file for you then I cant answer.
What i have done for years is use Stored Procedures to do the heavy-lifting for the report. Simply create an sp with parameters. When you create your crystal report and adding data definitions in make sure that stored procedures are included. Then add parameters to the report which are inserted into the SP paramaters at runtime.
Using Views is also a good way to put all the data massaging work back onto the db server instead of the client. Send parameters from crystal to return a filtered dataset back to your report for printing.
Crystal Reports: Tutorials and Sample Code
http://msdn.microsoft.com/en-us/library/ms227881%28VS.80%29.aspx
Google search of "Crystal Reports Visual Studio Tutorial" returned that as the top result.
Start by creating a data source type of OLE DB, and choose your SQL Server Native Client. This option will be there for a new report, or if you set the data source; note that if you set a different data source for an existing report, your existing data fields may disappear from the report. Using integrated security is nice because you can control access to the data in the report in SQL Server.
Then in your database expert, click "Add Command", where you can call the shared procedure, add SQL, select your fields, etc.