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

RDLC Report Rich Text Editor Formatting Image Issue

$
0
0

Hi,

I have save the rich text editor values as html format in database. By using RDLC report designer, format the text by"Placeholder Properties- > HTML - Interpret html tag as style".

All tag has been formatted and Text have been  display as expected. But image not displaying. The images is saved in DB like "<img width="575" height="211" src="data:image/png;base64,R0lGODlhPwLTAHcAMSH+..........".

Kindly anyone help me to rectify this issue.

Thanks in advance,



SSRS subscription

$
0
0
I can change the owner of a subscription with a powershell script.Can I also change the email address of this subscription with a powershell script?(New owner - new email address)

Is there a way known to modify the email address by script ?

Any idea ?

How to freeze the columns in excel exported from SSRS report??

$
0
0

We have created a report for our client. The client wants the report in excel format. As there are nearly about 30,000 rows in the excel. Client wants us to freeze the column header names in the excel so that even after scrolling down they will be able to see the column names.

can anybody have idea how to achieve this in SSRS?

  

Need to Upgrade Power BI Report Server. What all things needs to be considered?

$
0
0

Hi All,

Currently, Our Report Server Version is 15.0.2.557 and this needs to be upgraded to Power BI Report Server Jan-2020.

Would like to know what all things I should backup before I start upgrade?


Thanks Shiven:) If Answer is Helpful, Please Vote


Need Help with a Parameterized Query in SSRS (Sales Quarter)

$
0
0

Hi I need help with this query:

SELECT *
FROM   
     (SELECT 
     CASE
          WHEN InvoiceMonth IN (1,2,3) THEN 1
          WHEN InvoiceMonth IN (4,5,6) THEN 2
          WHEN InvoiceMonth IN (7,8,9) THEN 3
          WHEN InvoiceMonth IN (10,11,12) THEN 4
     END as Quarter
FROM viewSalesTracker_Model1
WHERE Quarter = @Quarter
Error Source: .Net SqlClient Data Provider
Error Message: Must declare the scalar variable "@Quarter"


Midani222

Unable to send email to DL's in SSRS Subscription.

$
0
0
I am able to send the email to individual email ID's but not to group.
Error LOg :Microsoft.ReportingServices.Diagnostics.Utilities.NotEnabledException: The requested functionality is not currently enabled.;
extensionfactory!ReportServer_0-143!4900!03/16/2020-06:56:21:: i INFO: Skipped instantiating Report Server PowerBI report server extension. Extension was not enabled.

pankaj

CHAR(13)+CHAR(10) New line works in SQL 2012 but not in SQL 2008

$
0
0

Help me



select 'first'+CHAR(13)+'two'  

Output in SQL 2012

first
two

Output in SQL 2008 

first two

Desired output in SQL 2008 

first

two

Rendering spaces in MHTML email body in SSRS subscription

$
0
0

I am trying to send a report using SSRS subscription which includes a text with spaces in between as shown in the picture..

The problem is the spaces are ignored and my formatting is disturbed.

but when I render as PDF/ WORD format the spaces are perfectly rendered.

Please suggest how can I preserve the space 

OR

Any other format can help me preserving the space instead of MHTML format in email body.

I want to include the report contents in email body and not as attachment ..


Please Help me !!!!


SSRS Data-driven subscription sends 1 email for each object in search.

$
0
0

Environment:  SQL Server 2014 Db, SSRS in SharePoint mode.

Objective: Weekday subscription, looks for values in table.  If found, send one email with results of .rdl (report).

Query:

SELECT 1
FROM Dabatabse1.Schema1.Table1
WHERE (Column1 = 'x' or Column2 = 'y')
	AND Column3 NOT IN ( 'A','B','C')
	AND last_modified >= DATEADD(m, -2, GETDATE());

 Issue: If the query table has 3 rows, it sends 3 copies of email, 4 rows, 4 copies of email....etc.  It even shows sending 4 emails on the status:



-Al H


SSRS subscription error : Windows File Share : Access Denied to the path

$
0
0

hi 

i do have a report, trying to subscribe to a particulare share folder,

but the status of the subscription from the report manager shows the following error :

" Failure writing file \\King\Reports\Daily Collection.xls : Access to the path '\\King\Reports\Daily Collection.xls' is denied. "

i have mentioned the administrator user name login as the service account in reporting services configuration. as well in the configuration page of windows file share. 

from the log file the below is the error,

Error writing file Daily Collection.xls to path \\King\Reports 

Kindly help me to get rid of this error ..



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

Reporting Services 2017 RC1 - RPC Server is not listening

$
0
0

Hi,
Im seeing issues with SSRS 2017 RC1. The configuration manager is extremely slow to load and move between tabs. I am also seeing an “RPC Server is not listening” error when trying to create a Report Server database on SQL 2017 RC1 & SQL 2016. I can connect to an existing SQL 2016 Report Server though.

Ive tested this on 2 Windows Server 2012 R2 VMs in different environments/domains.

Also, all of the above works perfectly with the SSRS 2017 March CTP, on the same servers too. Hope that helps.

I also see a DLL error in the logs:
RSPortal!reportserverwebapp!RSPortal.exe!1!07/20/2017-05:31:45:: e ERROR: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.SqlServer.MgdSqlDumper, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: ‘Microsoft.SqlServer.MgdSqlDumper, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ —> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
The Zone of the assembly that failed was:
MyComputer
at Microsoft.ReportingServices.Diagnostics.Globals.InitServer(Boolean resetAllPerfCounters)
at Microsoft.ReportingServices.Portal.WebHost.Program.Run()
at Microsoft.ReportingServices.Portal.WebHost.Program.Main(String[] args)

Formatting rows with and w/out an image

$
0
0

I have a simple report with 4 columns, Name, Address, Phone and Photo

If there is no photo for the record, I want the row height to be .2in

If there is a photo, I want to display the photo as 1"x1"  

Q - How do I make the rows with no photo .2in and the ones with photo 1" in height.  currently everything is 1"?


Jim

RS.EXE Utility is not installed during installation of VS Community Edition Or with MS SQL Server Data Tools 15.9.4

$
0
0

I'm trying to find the RS.EXE utility which is supposed to be in the following location: 

\Program Files\Microsoft SQL Server\110\Tools\Binn

per this article:

https://docs.microsoft.com/en-us/sql/reporting-services/tools/rs-exe-utility-ssrs?view=sql-server-ver15

I installed VS 2019 Community Edition with the SQL Data Tools, and also, the SQL Server Data Tools 15.9.4, and yet the file does not exist. 

Where can I find the RS.EXE file and it's related dependent objects, or it's equivalent ? 

Thank you!

I may have answered my own question...

It looks like they moved it to this location instead now:

 C:\Program Files\Microsoft SQL Server Reporting Services\Shared Tools

Get the next x rows based off value in column

$
0
0

I have a Dates table with every single date and a column called weekly, biweekly or monthly . I want to show my data as it would appear if it were scheduled

ex


id date weekly biweekly monthly
1 01/01/2020 1 0 0
2 01/02/2020 0 1 0
3 01/03/2020 0 0 1

So what I want to do essentially is if:

 weekly =1 then show me the current date and the next 6 rows (So all the other information will be the same for this 6 rows but the date will change only)

 BIweekly =1 then show me the current date and the next 13 rows

MONTHLY =1 then show me the current date and the next 29 rows

id date weekly biweekly monthly
1 01/01/2020 1 0 0
1 01/02/2020 1 0 0
1 01/03/2020 1 0 0
1 01/04/2020 1 0 0
1 01/05/2020 1 0 0
1 01/06/2020 1 0 0
2 01/02/2020 0 1 0
2 01/03/2020 0 1 0
2 01/04/2020 0 1 0
2 01/05/2020 0 1 0
2 01/06/2020 0 1 0
2 01/07/2020 0 1 0
2 01/08/2020 0 1 0
2 01/09/2020 0 1 0
2 01/10/2020 0 1 0
2 01/11/2020 0 1 0
2 01/12/2020 0 1 0
2 01/13/2020 0 1 0
2 01/14/2020 0 1 0


SQL Server error 18456: Reason: Failed to open the explicitly specified database 'ReportServer'.

$
0
0

Hi All,
I recently installed SQL Server 2017 in a Failover Cluster and also installed SSRS 2017.  Both are working fine with no known issues.  SQL Server and Reporting Services are working fine from a user's perspective.

My Failover cluster has two hosts, NODE1 and NODE2.  Regardless of which host is currently functioning as the active server, I get the following error messages in my SQL Server error log:

I cannot tell where this error is coming from, and why it is only generated from NODE1.  I do not get a similar error from 'DOM\NODE2$'. 

The error only began after I installed Reporting Services.  Please help me track this down.  Error 18456, State 38 translates to "Could not find the database requested".  I assure you, the database, "ReportServer" is there!

SQL Server Version: Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64)   Aug 22 2017 17:04:49   Copyright (C) 2017 Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Standard 10.0<X64> (Build 14393: ) (Hypervisor) 

Reporting Services Version: Microsoft SQL Server Reporting Services Version 14.0.600.1453

I have read numerous articles on how to resolve Error 18456: none of them reference State 38, and none of them refer to Reporting Services.  

Thanks for any help you can provide.

--Dan


password for NT SERVICE\SQLServerReportingServices

$
0
0

Hello,

I am using MS Reporting Services 2019. I configured it to run under the "NT SERVICE\SQLServerReportingServices" user, i.e. I chose the built-in "Virtual Service Account" as the "service account" in the Configuration Manager and it created "NT SERVICE\SQLServerReportingServices" for me. I can now see this user on my SQL Server instance, and I have given all the necessary database permissions to this login.

Now I would like to use this account in a Shared Data Source. I would like to utilize it as the user who connects to my data on the SQL Server instance. I have gone to the Web-portal -> DataSources -> Manage -> Properties, chose "using the following credentials (windows user name and password)". But it keeps asking me to enter the password for that user, and I do not know it. While creating that user through SSRS configuration manager I do not remember being asked to specify any password. And if I leave it blank while setting up the Shared Data Source, the connection does not work with the "Log on failed. Ensure the user name and password are correct" error.

Could anyone help me on this, please? - how can I configure my Data Source to use the "NT SERVICE\SQLServerReportingServices" account to authorize on SQL Server instance?

-- Richardo

CPK in PowerView (Excel 2013)

$
0
0

Good day,

I'm new to Powerview, currently i have CPK & Control chart view with excel formulas

I'm wondering if PowerView will be able to do these graphs, as my current one is off an OLAP pivot with formulas

The curent setup does not work to well as the pivot needs to be filteredfor the graph to change anddiplyed either in new sheet or below the pivot (not nice)

please help with assistanc, guidance and examples of doing this in powerview

Powerview, enabled for users or must they enable the add-on?

Regards

Aggregate data

$
0
0

Hello

I have a simplish script that shows me how often people log in and out of a phone system and the length of time they are logged in:

SELECT * FROM

(SELECT NAME_FIELD [Worker],

DAY_FIELD [Day of the week],

LOGGINGIN_FIELD [Time Logged in],

LOGGINGOUT_FIELD [Time Logged out],

DURATION_FIELD [logged in (seconds)],

CONVERT(varchar,DATEADD(ss,[DURATION_FIELD],0),108) AS [Duration]

FROM ...

WHERE ... ) as DERIVED

ORDER BY DERIVED.[Time Logged in] DESC;

However because people  log in then out then back in again I often have an output like:

Worker     Day               Logged in         logged out       Logged in (seconds)     Duration

Will F       Monday            09:00          09:01            65                     00:01:05

Will F       Monday            09:05          09:06             65                    00:01:05

What I would like to achieve is just one line per worker per day so instead of the above have:

Worker             Day        Logged in              logged out     Logged in (seconds)     Duration

Will F                Monday        09:00                      09:06                    130                             00:02:10

Please can you advise on how would I amend the script I have to bring data through like this? Eg just one row per worker, not multiple rows?

Thanks very much








Moving from SQL2008R2 to SQL2019 Reporting services upgrade of database failed

$
0
0

I move the reporting service database from a SQL2008R2 installation to SQL2019 installation. I have done this process as recommended, save encr key - detach - copy files - attach - delete row from table keys - restore encr key - start ssrs - connect the new database. When i connect to the new report server http//myserver:80/reports I get an error:

The service is not available.

The report server isn’t configured properly. Contact your system administrator to resolve the issue. System administrators: Check the report server trace log for details.

When starting reporting services it reports an error in RSManagement_xxxxxxx.log:

2020-04-28 12:34:00.2588|INFO|1|File Logger created: C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\LogFiles\RSManagement_2020_04_28_12_34_00.log - level Info, will roll at 32 Mb, process id 472
2020-04-28 12:34:00.3057|INFO|1|Do not dump on: Microsoft.BIServer.HostingEnvironment.Exceptions.TrustedProcessTokenExpiredException
2020-04-28 12:34:00.3369|INFO|1|SKU: SQL Server Standard
2020-04-28 12:34:00.4619|INFO|1|The web server needs to run elevated
2020-04-28 12:34:00.4619|INFO|1|Web Server is running.
2020-04-28 12:34:00.8525|INFO|8|Creating default Global MeterCollector| RequestID = s_0f9e159f-8505-419b-928c-3c4777910843 
2020-04-28 12:34:00.9619|INFO|5|Could not find ProductInfo table. Will do first-time upgrade.| RequestID = s_0f9e159f-8505-419b-928c-3c4777910843 
2020-04-28 12:34:00.9619|INFO|8|Database Version Detection: Create DB
    Db Version   = NULL
    Code Version = Sku: SsrsStandard, BuildNumber: 15.0.1102.675, DbSchemaHash: 745B9EAC6F7E2F5161F9A19F9836BB98FEE44D599D4E14E2083CF3308FA95C0F
    Resulted in status UpgradeRequired| RequestID = s_0f9e159f-8505-419b-928c-3c4777910843 
2020-04-28 12:34:00.9619|INFO|8|Upgrading ReportServer database to version 15.0.1102.675 hash 745B9EAC6F7E2F5161F9A19F9836BB98FEE44D599D4E14E2083CF3308FA95C0F| RequestID = s_0f9e159f-8505-419b-928c-3c4777910843 
2020-04-28 12:34:01.0869|ERROR|8|Aborting SQL batch sccript!  Error executing SQL batch script at entry
------------
--- T.0.9.45 to 100 ---

In the end of the log-file there is folowing errormessage:

--------------------------------------------------
------------- Creation of Stored Procedures
--------------------------------------------------
use [ReportServer]
------------
| RequestID = s_0fdfda16-67e8-4fdf-bc1b-949462e48d63 System.Data.SqlClient.SqlException (0x80131904): Column names in each table must be unique. Column name 'EditSessionID' in table 'SessionData' is specified more than once.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.BIServer.HostingEnvironment.Storage.MeteredSqlConnection.ExecuteBatchScript(String script, TimeSpan individualCommandTimeout)
ClientConnectionId:a89d3bc0-9ccc-424c-8f3f-371cfdf0fd8e
Error Number:2705,State:4,Class:16
2020-04-28 12:34:52.3256|FATAL|9|Database upgrade failed!!  The database may now be in an inconsistent state.| RequestID = s_0fdfda16-67e8-4fdf-bc1b-949462e48d63 System.Data.SqlClient.SqlException (0x80131904): Column names in each table must be unique. Column name 'EditSessionID' in table 'SessionData' is specified more than once.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.BIServer.HostingEnvironment.Storage.MeteredSqlConnection.ExecuteBatchScript(String script, TimeSpan individualCommandTimeout)
   at Microsoft.BIServer.Management.WebApi.DatabaseUpgrade.DatabaseUpgrader.GetStatusAndUpdateIfRequired(ISqlAccess sqlAccess)
ClientConnectionId:a89d3bc0-9ccc-424c-8f3f-371cfdf0fd8e
Error Number:2705,State:4,Class:16

can anybody help me with this issue?!

kind regards

Stefan

How to Add or Create Own Gauge Template into Microsoft Report Builder ?

$
0
0

Hi !

How to create or insert a NEW Gauge into Microsoft Report builder (SSRS) ? Not using the ready gauge template in the Microsoft Report builder

Regards,

Danny


Danny

Viewing all 10045 articles
Browse latest View live


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