Solved

Versions for a SSRS Report

Posted on 2013-01-24
15
524 Views
Last Modified: 2013-01-28
Hi Experts!

I have a SSRS report and I need a different version everytime the report is printed. How would I accomplish that at the development level?
0
Comment
Question by:December2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
15 Comments
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38816376
Define 'version'.
0
 

Author Comment

by:December2000
ID: 38816418
When the the report is created version 1,  after changes 2 , then 3 ect... Everytime changes are made to the report the version changes
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38816440
So, version meaning each unique .rdl file?   Probably best to hard-code that in the .rdl.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:December2000
ID: 38816452
What would be an example of that?
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38816473
An example of hard-coding?

Create a label on your report, and type 'Version 1.0' in it's Value property.
0
 

Author Comment

by:December2000
ID: 38820316
I am not looking for hard coading because the version will chage everytime the report is updated
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38820348
afaik what you are asking for does not automatically exist, and must be done manually.
0
 

Author Comment

by:December2000
ID: 38820386
How would you do that?
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38820406
Manually = a.k.a. hard-coding the version number in a control such as a text box, BEFORE the .rdl file is saved and deployed.

If any of this is not clear, please explain in excrutiatingly detailed terms what you are asking.
0
 
LVL 12

Expert Comment

by:Harish Varghese
ID: 38823991
Hello December 2000,

1. Do you want 'version' to be changed/updated every time the report file (design or RDL file) is modified?
OR
2. Do you want 'version' to be changed every time a user view the report?

If your question is #1 above, then the answer is what jimhorn explained.
If your question is #2 above, then you may use a table to store the version number in a table, and update this value from your data source (sql or stored procedure) and display it in the report.

- Harish
0
 

Author Comment

by:December2000
ID: 38825106
But, with Jim's solution wouldn't the user have to manually change the version every time  they update the report....  The users update the fields in the report (work order) and they want "versions" to change as they update the order, to notate that changes have been made.

Sorry if I was not clear I am not asking about report development versions on the development side. This is user side.
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38825281
>user ... they update the report
Just to clarify terms, users don't 'update' a report in the sense that they change the report design.  They select a couple of parameters, run the report, and the report queries a data source and then generates.

You need to define 'update' and  'versions' in five-year-old simple terms, as it appears that your definitions have some meaning to your business that the rest of us wouldn't infer right away, and so far not from this thread.
0
 

Author Comment

by:December2000
ID: 38826743
I understand you dont have the answer but, I am sure that it is not hard coding. For example SharePoint has report versions. As the users check out reports and modify them the version changes.

 I don't how to explain versions if you dont understand what a version is. It is very simple " Is there functionality with in SSRS to create versioning in a report or not, Not a development version" so if you don't understand I understand :)
0
 
LVL 66

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 38826781
>As the users check out reports and modify them the version changes.
I'm fairly certain SSRS does not have this feature, so the answer is no.
Either way, I'll ask a couple of other SSRS developers to confirm.
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38827144
Received offline confirmation from SQL BI expert ValentinoV

<begin>

I know what "versioning" on SharePoint is being referred to.  Basically, SharePoint is a document versioning system (well, not only that of course but let's keep it simple) so even a Word document gets a version there.  It also has check in/checkout functionality, a bit like TFS.  Which can be disabled but that's another story...

In any case, this versioning is purely SharePoint.  And we can thus conclude that the asker actually wants the design to be versioned, not the generated report (i.e. when same report gets generated afresh, version remains the same).  At least, that's what I'd conclude and without those excrutiatingly detailed five-year-old terms it's still partly a guess...

So... SSRS without SharePoint doesn't really have this same functionality, as you stated!

<end>

Thanks for the grade.  Good luck.  -Jim
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question