Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Help with a query

$
0
0

 

I have a query I am having problems with and I could use some help. I am very new to VB and SQL so please bare with me. I need to query a table (LineEquipment) in this case and return all records on a given range. I also need to retrieve data from other tables which I may or may not have a matching join. For the report I am attempting to produce I need to list the All Line Equipment table records regardless if the have a join match or not. This query works for that at this point:

 

SELECT     PUB.LineEquipment.LineEq, PUB.LineEquipment.TTorRotary, PUB.LineEquipment.PriorInterface, PUB.LineEquipment.WiredInCO,
                      PUB.PlantStatus.StatusCode, PUB.LineEquipment.RCEWRID, PUB.SubEquipment.PhoneEqID
FROM         PUB.PlantStatus, { oj PUB.SubEquipment RIGHT OUTER JOIN
                      PUB.LineEquipment ON PUB.SubEquipment.LineEqID = PUB.LineEquipment.LineEqID }
WHERE     PUB.PlantStatus.StatusID = PUB.LineEquipment.StatusID AND (PUB.LineEquipment.RCEWRID = 1001001001004)
ORDER BY PUB.LineEquipment.LineEq

 

Now where things go wrong is when I add a join to a table called Phone, so I can list the phone number, joining by a field named PhoneEqID which is contained in the Sub Equipment table. Once I add the Phone table join, any Line Equipment records that don't match the join in the SubEquipment to Phone table no longer show in the query results but I want them to either way. I have been told that maybe a sub query may work but I have no idea if it would and what the syntax would be. Anyway I try in the query builder in VS2008 I can't get what I want.

 

Thanks

Al

 


sql server to oracle converting report

$
0
0

hi

 i create report in ssrs ,source i used as sql server now i convert those reports to oracle server so in my old report i used left outer join while converting this to oracle server that query is automatically changed like {oj} like this and also while executing that query its shows table name error or invalid table name how to fix this in SSRS

SSRS Chart Tooltip is not working in IE11

$
0
0

Hi,

I am using SQL server 2012 report builder 3.0 for reports and i has some charts in my reports. Whereas if i view the report in IE11 the tooltip is not showing any values where the same tooltip is working fine in IE8 and other browsers(Chrome). Does I need to follow any set of instructions for this?

Please help me on this.

Thanks,

Kartheek.

install on pc

$
0
0

i have a new pc windows7. i installed the client side of sql 2014. I also installed SSDT_14.0.50730.0_EN to install the ability to create reporting services reports. all completed successfully. I do not have visual studio installed as I only want to deal with reports and ssis packages.

I cannot find how to run visual studio to create reports. the is nothing in the start menu.


???

Second dataset in SSRS Report

$
0
0


Second dataset in the report

I have two dataset the first I am using with the main report. The second dataset(Test) I am traying to use with the testing field, inside this field there is a table with comp1, comp2, comp3 columns. I am trying to display the data from the test dataset filter by the Company name in the dataset 1. Am I using the right approach and if not how can I do that

Limiting records per page using =Ceiling(RowNumber(Nothing)/20). Problem with scope of RowNumber on SSRS 2008

$
0
0

Hi,

I'm trying to limit a table to show more than 20 records per page but when I use the =Ceiling(RowNumber(Nothing)/20) I'm getting the following error:

[rsInvalidGroupExpressionScope] A group expression for the grouping ‘Group1’ uses the RowNumber function with a scope parameter that is not valid.  When used in a group expression, the value of the scope parameter of RowNumber must equal the name of the group directly containing the current group.   

My report has a List grouped by a field and inside of it I have the table that I've added the new group. I've already deleted the Sort expression and tried to put the name of the group(Group1) as scope for RowNumber. Can anyone help me?


How to change the color of text in a texbox using expression in ssrs

$
0
0
HI i need some help with text color in texbox using an expression,i have a report with some table and had a text with with positive numbers and negative number my requirement here is i need to write an expression like


iif(Fields!Price.Value>0)
then the textcolor should be Black if its less than 0 then the text should be in Red color can any one give me suggestion on how to do that

Centring SSRS 2012 Map on a specific point

$
0
0

We are upgrading from SSRS 2008 to SSRS 2014 and I'm doing a proof of concept report using the Map control now available to us using SQL server data tools in VS 2012.  The process to build a map isn't terribly well documented and I'm really struggling with how to centre it in a specific location so hoping for some help please!

My example report has two datasets:

1) "Spatial"  this returns a varchar column with a list of UK Postcodes and a geometric column containing polygon outlines for each post code area.

2) "Sales" - this returns a varchar column with a list of post codes and a set of float columns with sales totals in that postcode for a given time period.  

 I've built a map which does the following:

  • Selected "spatial" as my source for spatial data
  • Added a bing maps layer
  • Set visualisation to Colour Analytical map
  • Choses "Sales" as the analytical dataset
  • Defined that the "PostCode" column in the "spatial" dataset matches to the "PostCode" column in the "sales" dataset

This produces a lovely map of the UK with all the post code areas colour coded according to sales value.  However, I need to zoom the map in AND centre it on a specific post code, say this is postcode ABC1 1DE for example.  When I open up "view port properties" I've tried selecting the "Center and Zoom" tab, then selecting "center map to show an embedded map element".  I then chose layer = PolygonLayer1 (my spatial data layer) and I've set a condition "Centre on the map element matching this condition"  "Name" = "ABC1 1DE".  

However, this doesn't work and the map remains centered on the middle of the UK.  The post code I'm trying definitely exists in both datasets so I'm a bit stumped.  Anyone got any ideas please?


ssrs 2008 use parameter value to work with row visibility

$
0
0

In an ssrs 2008 report, I would like to add logic that looks the following for determining if a row is visible are not.

The logic is the following =iif(Fields!MILESTONE_CODE.Value = "015", false, true)

However I would like to expand this logic out for a user to be able to select one or multiple milestone values based upon a parameter to be setup called pmilestone.

The milestone values will look like:
"005" for 5 days,
"010" for 10 days,
"015" for 15 days, and
"020" for 20 days.

Thus could you show me the ssrs code that will accomplish the row visibility logic I am looking for? In addition, would you show me how to setup the corresponding parameter logic so the row visibility logic will work?

ssrs 2008 sort data based upon parameter value

$
0
0

In an existing ssrs 2008 report, I have added a few new columns to the existing report as requested by the user. In addition, the user wants to be able to sort the data on any column on the report by using a sort parameter value.
The data does not contain any summary values. The columns in the report include:
a. student number,
b. student name,
c. birth date,
d. age,
e. current grade level,
d. attendance code value.

The default value is to sort by student name alphabetically. Whatever field is to be sorted first, the student name will be the second.

I have tried to sort the data at the tablix level and  the row group level and the logic has not worked yet. There is no row group setup right now.

Thus could you show me how to setup the sort by using the parameter value? Would you show how the ssrs report needs to look for me to accomplish this goal and/or point me to link(s) that will show me how to accomplish this goal?

Can't keep column headers visible in IE browser

$
0
0

Hi,

I've been researching this for days and have tried many things to get my tablix column headers to freeze at top of screen when I'm scrolling down in a report IN THE BROWSER.  I am using Report Builder 3.0 on MS Sql Server 2012 to create the report and Internet Explorer 11 on Windows 8 to view the reports.  The things I have tried are both in table and matrix, with a row group and without, with a column group and without, using the tablix property setting to 'keep header visible while scrolling' and also using the method of setting the tablix member properties for the static rows using tablix properties 'advance mode', clicking on static member and setting FixedDate = True, KeepWithGroup = After and RepeatOnNewPage = True and then also setting the background color of row to White. 

In these tries I can always get what I need to work and show up in the Report Builder 'Preview' mode, but it never works in the browser when just running the report directly.  I have tried everything I can find in the forums but still the only thing that ever happens in the browser is that the whole page just scrolls down and nothing stays frozen on top of screen (not even the report header stays let alone my matrix column headers).  I can't find anything that addresses when it works in Preview mode but doesn't work in Internet Explorer.  Is there a setting somewhere in the setup of reporting services that I'm missing maybe?  Or something specific to the browser that I need to do? 

Any help at all would be appreciated.  I'm desperate.  If I can't get this to work for all our reports, the users aren't going to stick with these. 



Getting Report page count fails using RSS2014 and WPF

$
0
0

Dear all,

We have a WPF application which is able to preview reporting services report by implementing the Microsoft.Reporting.Winforms control.

When we were using Reporting Service 2008 all was working fine and now moving to rss2014 we get trouble to retrive correct information from report page. The report control pageCount return all time a single page count info while there are more pages in report.

If report is preview directly from Internet Expolorer, page count is correct but not by retriving it from ReportViewer control 

The way we are getting page count is simply by calling the following method of the control :

We are redering the report preview as a Bitmap, so each page inside the report are render as PNG file using stream ID as seen in MSDN sample.

The code below is the render method we use to build different pages as bitmap for preview:

/// <summary>
        /// Renders the report.
        /// </summary>
        /// <param name="format">The format into which to render the report.</param>
        /// <param name="deviceInfo">The xml data that specifies the rendering parameters.</param>
        /// <param name="streams">Returns the different streams rendered.</param>
        private void Render(string format, string deviceInfo, Queue<Stream> streams)
        {
            string mimeType = null;
            string encoding = null;
            string fileNameExtension = null;
            string[] streamIds = null;
            Warning[] warnings = null;
            byte[] data = null;


            // Render & get the first stream
            data = _report.Render(format, deviceInfo, out mimeType, out encoding, out fileNameExtension, out streamIds, out warnings);
            streams.Enqueue(new MemoryStream(data));

            // Sort the stream ids in the order of the report pages.
            Array.Sort<string>(streamIds, new Comparison<string>(RenderStreamIdComparer));

            // Retreive the following pages
            foreach (string streamId in streamIds)
            {
                data = _report.RenderStream(format, streamId, deviceInfo, out mimeType, out encoding);
                streams.Enqueue(new MemoryStream(data));
            }
        }

The methode _report.Render is part of the MS assembly report class. Each stream Id return is suppose to represent each report page, but at this level it returns only one single streamID even if my report has more than 1 page.

This was working ok so far until the time we update to RSS2014.

Any idea why those page count is not returning correctly ?

regards



How to retrive reporting service information from a WPF application

$
0
0

Dear all

We have a WPF application where we are doing a preview of a report configure in reporting service 2014.
To show the preview of the report we are using the ReportViewer library control.

What is happening is that since we move our reporting to RSS2014, we are not able to retrive correctly report pages. It only return 1 single page while report gets more.

To retrieve report page information we are doing as below :

 Bitmap[] images = null;
            Queue<Stream> streams = new Queue<Stream>();

            Render("IMAGE", CreateImageDeviceInfo("PNG", null, null), streams);

            images = new Bitmap[streams.Count];
            for (int i = 0; i < images.Length; i++)
            {
                using (Stream input = streams.Dequeue())
                {
                    images[i] = (Bitmap)Bitmap.FromStream(input);
                }
            }

            return images;

The render method is define as below :

 /// <summary>
        /// Renders the report.
        /// </summary>
        /// <param name="format">The format into which to render the report.</param>
        /// <param name="deviceInfo">The xml data that specifies the rendering parameters.</param>
        /// <param name="streams">Returns the different streams rendered.</param>
        private void Render(string format, string deviceInfo, Queue<Stream> streams)
        {
            string mimeType = null;
            string encoding = null;
            string fileNameExtension = null;
            string[] streamIds = null;
            Warning[] warnings = null;
            byte[] data = null;


            // Render & get the first stream
            data = _report.Render(format, deviceInfo, out mimeType, out encoding, out fileNameExtension, out streamIds, out warnings);
            streams.Enqueue(new MemoryStream(data));

            // Sort the stream ids in the order of the report pages.
            Array.Sort<string>(streamIds, new Comparison<string>(RenderStreamIdComparer));

            // Retreive the following pages
            foreach (string streamId in streamIds)
            {
                data = _report.RenderStream(format, streamId, deviceInfo, out mimeType, out encoding);
                streams.Enqueue(new MemoryStream(data));
            }
        }

As you can see, each page of the report is render as an Image and what is happening is that in stream collection always return a single stream. So du ti that the stream queue from which the image is build always contains a single record but in fact my record gets 2 pages, so teh stream colelction should be 2.

What is going wrong or done differently in RSS2014 than RSS2008 causing those page count not working anymore ?

or does it has to be done differently now ?

thnaks for advise and sample which might help

regards

Reporting Services stopped working after account password change .

$
0
0

Hi All,

Reporting Services stopped working after account password change ...which is used by SSRS Configuration manager.

 I have reset password  in windows service for SSRS logon account then restarted service .

When I am trying to access ssrs web service url then it thowring below error.

The report server cannot open a connection to the report server database. The log on failed. (rsInternalError) Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E) .

Where I have update new password for ssrs config account.
Please suggest. 

Map doesn't display color

$
0
0
I want to create a Color Analytical Map with the map gallery. But there is no color display when previewing map. why???

export report without OOTB export button

$
0
0
As title listed, can I do this? Can I custom a button or use another way?

How to access the ValueColumn?

$
0
0

I'm facing what is probably a stupid problem but cannot find how to do it.

On a Time dimension Year-Month-Day, the month part is defined on an Olap cube from a Dim_time table with several values, among them

Month_Name (January, february, etc)

Month (the numeric value)

The Month of the dimension is defined with

NameColumn -> Month_name

ValueColumn -> Month

Now, we are using it on report builder and were trying to create a calculated value on a dataset with an expression using Fields!Month.Value ...

What happens? Easy ... Fields!Month.Value values are "January" "February" etc, but we need the numeric value in our calculation (something as easy as iif(Fields!Month.Value>=month(today),xxxx,yyyy), so in fact the expression doesn't work.

We couldn't find any way to access the numeric value of the field.

Any idea?

Thks


Error in Report Manager while trying to create a data source from MS excel files to create ssrs reports

$
0
0
Software versions installed: MS SQL Server Data Tools 2012 and Visual Studio 2012, MS Office 2013 with 32-bit version of Excel, 64-bit Operating System.

I am using MS Excel 2013 (32-bit version of excel) and looking to use the connection string through the report server (dev) and create reports from the data source created in the report server/manager.

Executed steps:

       1) Installed AccessDatabaseEngine_x64.exe
       2) Created System DSN which points to the source excel file
       3) On SSRS Server, created data source:
            Data source type: ODBC

            Connection String: Dsn=File name

            Connect using: Windows integrated security

When tested the connection, i got the below error - 

ERROR [HY000] [Microsoft][ODBC Excel Driver] Your network access was interrupted. To continue, close the database, and then open it again.

ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection 
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed 
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection 
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection 
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection 
ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection 
ERROR [HY000] [Microsoft][ODBC Excel Driver] Your network access was interrupted. To continue, close the database, and then open it again.

Why there is a Trusted connection error? How to get rid of this to make a successful connection?
I tried browsing through a lot of similar issues and solutions but wasnt successful. Any help would be of great help.

SSRS 2016 MVC Reports, KPI's, etc ?????? HOW? Did MVC5 and all the developers get left behind? Surely Not.

$
0
0

Reporting and BI has finally got a facelift for 2016! New reporting portal, mobile reports, etc.   According to this documentation, here is how to access your reports https://msdn.microsoft.com/en-us/library/dd220427.aspx.   With .net Core, web forms are going away and MS is focusing on MVC/web api style web apps. 

Am I missing something in the documentation.  HOW can I leverage all this great new technology in my MVC web app?  I want nice dashboard with KPIs, I want a report view in the web page.  Yes, I know I can get the report back in html5, but what if I want to preview it first, etc, and take advantage of the great new report control in the ssrs web portal.

Surely I am just missing something.   How are all the developers handling this for mvc5 without hacking a webform, or some other older technology?

Thanks

 

running a report from ssis without RM

$
0
0
Hi we run 2014 enterprise.  I know how to run and save a report from ssis when the report is published to ssrs.  Is there a way to run the report on my local from ssis/vs by somehow directing ssis straight to the rdl instead of a url?
Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>