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

SSRS for Azure

$
0
0

Hi there,

Looking at the recent article on the sunset clause for SQL Reporting on Oct 3, I'm wondering if I can still purchase SQL Server Reporting Services (SSRS) running on a Azure Virtual Machines (VM)? I actually want to point a reporting solution to an Oracle database local on my network.  I'm unsure if this is even possible.

Any help would be great.

http://msdn.microsoft.com/en-us/library/azure/dn528853.aspx

Thanks

Adam



The statement did not return a result set in ireport

$
0
0

Hi,

    I am Building a Report in iReport(Jasper Reports). I called a stored procedure from iReport by passing a parameter in Query Editor. I am getting an exception saying "The statement did not return a result set". When i use Temp Tables in stored procedure i am getting the exception.

If there is no temptable in Stored procedure there wont be any exception.

This is my Stored procedure

Create PROCEDURE [XUSP_REPORT_SOPRINT] @BNUM VARCHAR(20) AS
BEGIN
DECLARE @FQTY BIGINT
DECLARE @ITNAME VARCHAR(100)
DECLARE @COUNT INT=0
DECLARE @COUNT1 INT=0

CREATE TABLE #BILL_PRINT(
    [BNUM] [varchar](20) NOT NULL,
    [CNAME] [varchar](30) NOT NULL,
    [CNUM] [int] NOT NULL,
    [ITNAME] [varchar](100) NOT NULL,
    [ITEM#] [int] NOT NULL,
    [QTY] [int] NOT NULL DEFAULT 0,
    [UNIT] [varchar](5) NOT NULL,
    [PRICE] [float] NOT NULL DEFAULT 0,
    [BASIC] [float] NOT NULL DEFAULT 0,
    [DISCOUNT] [float] NOT NULL DEFAULT 0,
    [FRQTY] [int] NOT NULL DEFAULT 0,
    [BADDR] [varchar](300) NULL,
    [CADDR] [varchar](300) NOT NULL,
    [BDATE] [datetime] NULL DEFAULT (sysdatetime()),
    [BILLBY] [varchar](50) NOT NULL,
    [ROUTE] [varchar](200) NULL,
    [AMT] [float] NOT NULL DEFAULT 0,
    [VAT] [float] NOT NULL DEFAULT 0,
    [VAT AMT] [float] NOT NULL DEFAULT 0,
    [AMT_AF_DISC] [float] NOT NULL DEFAULT 0,
    [AMT_AF_VAT] [float] NOT NULL DEFAULT 0,
    [TOT_DISC] [float] NOT NULL DEFAULT 0,
    [ROUND_OFF] [float] NOT NULL DEFAULT 0,
    [TOT_VAT] [float] NOT NULL DEFAULT 0,
    [AMT_UNDER_VAT] [float] NOT NULL DEFAULT 0,
    [NETT] [float] NOT NULL DEFAULT 0,
    [TOS] [varchar](30) NULL DEFAULT 0,
    [CDISC] [float] NOT NULL DEFAULT 0,
    [SDISC] [float] NOT NULL DEFAULT 0
)
insert into #BILL_PRINT SELECT [BNUM]
      ,[CNAME]
      ,[CNUM]
      ,[ITNAME]
      ,[ITEM#]
      ,[QTY]
      ,[UNIT]
      ,[PRICE]
      ,[BASIC]
      ,[DISCOUNT]
      ,[FRQTY]
      ,[BADDR]
      ,[CADDR]
      ,[BDATE]
      ,[BILLBY]
      ,[ROUTE]
      ,[AMT]
      ,[VAT]
      ,[VAT AMT]
      ,[AMT_AF_DISC]
      ,[AMT_AF_VAT]
      ,[TOT_DISC]
      ,[ROUND_OFF]
      ,[TOT_VAT]
      ,[AMT_UNDER_VAT]
      ,[NETT]
      ,[TOS]
      ,[CDISC]
      ,[SDISC]
  FROM [SALES_DETAILS] WHERE BNUM=@BNUM

CREATE TABLE #ITNAME_0
(
ITEM VARCHAR(100) NOT NULL,
FREE BIGINT NOT NULL
)
INSERT INTO #ITNAME_0 SELECT ITNAME,FRQTY FROM SALES_DETAILS WHERE FRQTY<>0 AND BNUM=@BNUM
--SELECT * FROM #ITNAME_0
SET @COUNT=(SELECT COUNT(*) FROM #ITNAME_0)

WHILE @COUNT!=0
BEGIN
SET @FQTY=(SELECT TOP(1) FREE FROM #ITNAME_0)
SET @ITNAME=(SELECT TOP(1) ITEM FROM #ITNAME_0)
SET @COUNT1=(SELECT COUNT(*) FROM #BILL_PRINT WHERE ITNAME=@ITNAME AND BNUM=@BNUM)
IF @COUNT1=2
BEGIN
    UPDATE #BILL_PRINT
    SET FRQTY+=@FQTY
    WHERE ITNAME=@ITNAME AND QTY<>0
    
    DELETE FROM #ITNAME_0 WHERE ITEM=@ITNAME AND FREE=@FQTY
    DELETE FROM #BILL_PRINT WHERE  ITNAME=@ITNAME AND QTY=0
END

SET @COUNT=@COUNT-1
END
--SELECT *FROM sales_details
SELECT *FROM #BILL_PRINT where bnum=@bnum
DROP TABLE #BILL_PRINT
DROP TABLE #ITNAME_0
END

Please help me out in this.

Thanks,

Shreyas M

Case when Query in SSRS

$
0
0

I just want to post another new question based on last week's thread:

Visakh16 provided me answer to use "CASE When" to handling different regions (see the Select statement below).

My new question is:  I do need to add a new condition for transaction type = "Billing" after Case when Customer PO In ('12345', '3334444', '23434343'.  These 2 conditions need to be embedded in the region called as"America-Hub".

For the rest of the regions (regions other than America-Hub), I need to filter transaction type = 'Booking".  So How can I combine the above new conditions into One query.

Please help

SELECT other columns...,
CASE WHEN
CustomerPO IN ('123456','3343434','2343434')
THEN
'AMERICAS (Hub)'
ELSE
RegionFieldHere
END AS Region
FROM
...

Thanks,

Josephine


Josey Tang

Obtain UserID from Credentials rather than Windows Login

$
0
0

I am using the UserID parameter in RS2005 to run a stored procedure from my datasource and have set up the report to connect using Credentials supplied by the user running the report.

I have put the User!UserID field onto the report and when I run it from a colleague's Windows account, using my credentials, I get their name returned on the report.  I need the UserID being returned to be that entered in the credentials.

Is this normal behaviour?  Have I set something up wrong? How can I get this scenario to display my name?

can one report both have portrait display and landscape display?

$
0
0

Hello:

can one report both have  portrait display and  landscape display?

take for exmaple:

page 1,2,3 are  portrait display (8.5in*11in)

and page 4 is landscape display (11in* 8.5in)

thanks very much


becuase our customer wants the pdf file exported from the report both have  portrait display and  landscape

account issues - invoke file through ssrs hyperlink

$
0
0
hi there - i have a hyperlink in one of the columns (in tablix) in an ssrs report which points to some server where a dump of documents reside..the hyperlink is appended with a doc_id which helps locate that doc and to invoke it from that server..now this works fine if the ssrs report runs with the current windows logged in user and when the same logged in user is also set up beforehand on that document server where the ssrs hyperlink points to..and this was in dev env..

going ahead in a controlled env, there would only be one system a/c which will be set up on that doc server and regardless of who the logged in windows user is who runs the report; access to the docs on that doc server will only be given to that sys a/c..so i passed this same sys a/c (which is set up on that doc server) in the data source in report mgr --> credentials stored securely in report server..and thought that these credentials will be picked while navigating to that doc server and the doc would be opened..but this doesn't seem to happen and it doesn't invoke the document...says invalid credentials..so i think it's picking my logged in credentials here and not the ones of the sys a/c that i entered in data source...(pls note here, the doc server url doesn't contain the report server / report manager url components..it's a different url and is used to only open the doc..so i don't think i can pass user credentials to that url like &dsu:Datasourcename=username&dsp:Datasourcename=password..may be i am wrong and i can pass? but don't think that's secure even if it's an option?)

alternatively, i thought this could be achieved by changing the execution account to this system a/c, under reporting services config mgr..but then we only have ssrs client tools installed..so can't change server settings..and just for this one requirement, nobody would accept my request to change the execution account...also don't know if changing exec account is even a solution for this?

i hope the question is clear..please give some work arounds..i'm stumped and not getting required help anywhere..

note: as another work around, i asked if a group can be set up on that doc server..and when all the users accessing the report are added to the group, they can open the doc after navigating from ssrs report...but the idea giving access to a group was rejected...they can only give access to this sys a/c... 



SSRS and SSMS show different results with identical queries

$
0
0

I've searched the forums and found similar issues, but nothing quite like what I've experienced. Here goes:

I'm runnning SSRS on SQL Server 2014, designing in Visual Studio 2013 Premium.

I have the following query, designed in SSMS. Normally I use parameters, but for the initial design I hard code them all in to ensure I get the correct data:

SELECT ESXACCTR.LEVEL_5 AS 'AcctNum', ESXACCTR.LEVEL_5 + '  ' + ESXACCTR.ACCT_TITLE AS 'Account', ESXTRANR.DOC_DATE, ESXTRANR.DOC_DESC, ESXTRANR.DOC_REFERENCE, 				CASE ESGTRAND.DEBIT_CREDIT WHEN 'C' THEN ESGTRAND.AMOUNT * - 1 ELSE ESGTRAND.AMOUNT END AS AMOUNT, ESGBUDPD.AMOUNT_3 AS 'Requested Budget', 				ESGBUDPD.AMOUNT_6 AS 'Approved Budget'
FROM ESXTRANR INNER JOIN
ESGTRAND ON ESXTRANR.TRAN_DOC_NO = ESGTRAND.TRAN_DOC_NO AND ESXTRANR.DOC_YEAR = ESGTRAND.DOC_YEAR INNER JOIN
ESXACCTR ON ESGTRAND.ACCT_ID = ESXACCTR.ACCT_ID AND ESGTRAND.DOC_YEAR = ESXACCTR.ACCT_YEAR INNER JOIN
ESGBUDPD ON ESXACCTR.ACCT_ID = ESGBUDPD.ACCT_ID AND ESXACCTR.ACCT_YEAR = ESGBUDPD.BUD_YEAR
WHERE (ESXTRANR.DOC_YEAR = 2015) AND (ESXACCTR.LEVEL_1 = '100') AND (ESXACCTR.LEVEL_4 = '428') AND (ESXACCTR.LEVEL_5 = 53372)

In SSMS this returns two rows, as expected. I copy the query into SSRS, and I only get one row. This is what I've done to troubleshoot so far:

  • I've logged into SSMS using the same local SQL account AND logged into SSRS using an admin account, to ensure it's not a permissions issue.
  • I've downloaded the RSD file from the server and confirmed that the query matches
  • I've opened the RSD file locally from my TFS repository and confirmed that the query matches
  • I've deployed the project to make sure it's not something wonky with my local environment; no change.

Any ideas? I can share the RSD file if you think it may help.

Thanks!

Linking drillthrough report that exist in sub-folder

$
0
0

Hi,

I have deployed report on Report server and  wanted to show one report only and hide drillthrough report in subfolder. but I'm not able to simple link drillthough report by saying "/Drill Through Report/=iif(Fields!SCHOOL_TYPE_CD.Value = 6, nothing, iif(Fields!SCHOOL_TYPE_CD.Value = 7, "Suspension Summary zone" , "Summary Suspension System Detail")) "

i have condition specified so that not everything is clickable in the report. 

any ideas how to make this drillthough report to work in sub-folder?


"free design" on report body

$
0
0

Hi,
Few days ago I found accidentally a MSDN tutorial explaining how to make a "free design" into the body so you could add several texboxes, and other stuff (rectangles,...)

and make it work as you were using rows but with completly free design like when we used to with old nav report.

any1 knows where is is?

thanks!

Report server intermittent Terradata errors

$
0
0

Hi all,

 

I've build a few reports in visual studio, they work and they don't work, in a minute I can run them next minute I can't and I get this errors in event viewer every time they can't be run:

Report Server (MSSQLSERVER) cannot load the SQLPDW extension.

Report Server (MSSQLSERVER) cannot load the TERADATA extension.

Any idea qhat I need to do to avoid this?


Thanks in advance


Power View not displaying measures

$
0
0

Hi,

We have designed an SSAS Tabular Model in DirectQuery mode. The data source is a SQL Server database located on a different server. We are attempting to design a Power View report but the date measures are not appearing. They appear in PowerPivot and Excel but not Power View. I’ve seen two other articles on connect.microsoft.com/SQLServer (below) that it has been a known bug for some time. Do you know of a bug fix or work-around? Thanks.

https://connect.microsoft.com/SQLServer/feedback/details/784965/tabular-dax-measure-not-available-in-power-view-field-list

https://connect.microsoft.com/SQLServer/feedback/details/766244/power-pivot-measure-not-showing-in-power-view-report

How to calculate percentage and difference of two values in matrix report in ssrs 2008

$
0
0

Hi everyone,

DB--SQL server

SSRS-2008

I am creating matrix report with grouping on WEEK and Fiscalyearweek,

I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..

how to calculate in ssrs level.


Thank You, Manasa.V

Designing Weekly Timetable in SSRS

$
0
0

Hi Friends,

I am looking for help in designing horizontal staff time table report where my data is in vertical format.

Data coming from query :

ScheduleDate   StaffID  StaffName ClassTimeFromTimeTo
13/10/201412aaaa110:00am11:00am
15/10/201412aaab12:00pm3:00pm
17/10/201412aaac19:00am10:00am
20/10/201412aaad111:00am12:00pm
20/10/201412aaae13:00pm4:00pm

here staff may have more than one class in the same day that should be displayed under the same column in the report

Expected report format :

                  

Staff Name: aaa

Monday                        Wednesday           Friday                        Monday            
10:00am - 11:00am     2:00pm - 3:00pm    9:00am - 10:00 am     11:00am - 12:00 pm
13/10/2014                  15/10/2014            17/10/2014                  20/10/2014
a1                                 b1                           c1                               d1

                                                                                                      3:00pm - 4:00 pm
                                                                              20/10/2014
                                                                               e1  


Please give me some idea on how we can implement..
Thanks in advance,                                                                                                                      Sam.                                                                                                     

SSRS 2012 Positioning Pie Chart Series Label

$
0
0

Hi,

In Pie Chart, the label positioning is working only when the options are Auto or Outside.

How can we position the series labels in between 'Centre' & the circumference?

Is there a way to achieve this?

-Thanks!


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

column value coloring Based on the condition in ssrs 2008

$
0
0

Hi,

I need to change color formating based on below conditions

  1. Red if <=28 days or > 65 days       
  2. Green if >28 and <=60 days       
  3. Yellow if > 60 days and <=65 days
  4. <=0 No color

I tried with below IIF condition it's not working.

=iif(Fields!HDSI13.Value<=0,

"No color",iif((Fields!HDSI13.Value<=28or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>29and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>60and Fields!HDSI13.Value<=65),"yellow",Nothing))))

Can any one help me on this.

Thanks,

Manasa.


Thank You, Manasa.V


free form layout problems displaying textbox

$
0
0

Hi all,

As you can see in the following image the constant text "/Ud" doesnt happen in the place I put it during design of the layout.

Is there any way to keep it stick up into the position I set on the right image during design?

thanks a lot!

2012 frontend 2008 R2 backend.

$
0
0
We are getting ready to install a new Reporting Server and would like that to be a SQL 2012 but the reporting databases will reside on a SQL 2008 R2 server.  Is there backward compatibility from 2012 to 2008 R2??

SSRS Report Export to Excel Taking Too Long

$
0
0

Hello,

I don't know what other information to provide but I have a sub report which is a parameter driven and when I run it in the web page, it runs in timely manner but when I export it to MS Excel, it takes over 10 min to export. There are two sheets in that report and second sheet which is a detail report consists of > 200,000 rows of data.

In addition, the first sheet has a Summary report and I noticed that the whole summary information repeated 12 times in the same page. It is almost like while the second sheet was being generated, the first sheet repeated for 12 times.

What do you suggest? I appreciate your time very much. Thank you.

Sanjeev


Sanjeev Jha

Median function in report builder 3.0

$
0
0

I need to perform median calculation in MS Report Builder 3.0, could anyone explain how I could achieve it considering my original value are

Region - Etab - Value

Abc - Def - 10

Abc - Def - 12

Ged - Tae - 1

I need to group by Region and Etab.

I've already built a SQL query to get the Median, but I would like to be able to use Report Builder grouping for usability.


SSRS and JBOSS Portlet

$
0
0

Can we deploy SSRS report in JBOSS Portlet?

If yes, please provide some link to read further.

Viewing all 10045 articles
Browse latest View live


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