Change deployment location of SSRS report and sub-reports - visual-studio-2010

I need to change the destination of an SSRS report in Visual Studio 2010 so that when I deploy it, it goes to the correct folder. There appear to be about 6 or 10 places where I can change options, I just cannot seem to find the right place to change these deployment options.
On this particular report, there are two subreports. I would like to deploy these two reports to a separate (subfolder) under the folder which contains the main report. I assume that the changes I make in #1 are for SSRS, not for a particular report (is that correct). If so, I will need to change the path for those subreports as well.
Once I have the reports deployed to the correct folders, how do I change the path to these subreports in the Visual Studio report designer? Right now, the reports render properly in the report designer, but when I go to the report server and run the main report, the subreports do not render properly.
I expect this report, along with its sub-reports to render properly from the report server.

You can only change the deployment path in the project properties, so this affects all reports. I did try to setup a similar scenario to what you want bit to be honest it was more trouble than it was worth.
What I ended up doing was having all subreport names start with an underscore and then running a quick bit of t-sql to hide them. I don't have access to the server now but the t-sql is something like
USE ReportServer
UPDATE dbo.Catalog SET Hidden = 1 WHERE LEFT(Name, 1) = '_'
The other way you can do this is to dump all the reports in the same folder but don't give users access to it. Then Create a new folder and add linked reports in there that point back to the original versions, you can do this using the Web Portal (report manage in older versions). It's a pain as you have to do each report individually. You could probably write a script to create the catalog items for you but I've not tried that so can't comment on how easy that would be.

So, saving the subreports to a different folder was straight forward, once I figured out where the project properties were located. Once I deployed those to subreports, all I had to do was change the path to those subreports in the design view of the main report.
Right click on the sub-report, select subreport properties and enter the full path to the sub-report.

Related

Issue With Report Link(Action) in Report builder 3.0

I want to create drilldown report when click to particular row it will open another report.
I do this step. right click on particular field-> TextBox Properties -> Action then checked Go to report option But when I click on Browse then it didn't display any report. I have multiple reports(.rdl file) on my local.
How can I define path ?
You don't see your local reports because Report Builder supports only paths to report servers.
Taken from note at msdn:
In Report Builder, paths to items must specify items on a report server. Paths to items on a file system are not supported. You can preview a report that uses these items only if you are connected to the report server where the items are located.

Oracle designer - generate scripts for multiple table/views at same time

I have made changes in multiple tables in Toad and I am now required to generate the script for a release in Oracle Designer.
So I made the changes in Oracle Designer and need to generate the script - is there any way I can do this for multiple tables/views at the same time or will I end up with lots of generated script??
Thanks in advance
Just select all the tables and views you want to have generated. Start the generation by pressing the button in the toolbar. The first page of the dialog shows all the objects you have selected.
You will get a file per table/view and 1 file with *.sql extension to call all the single files.

VS2010 - "Unable to connect to a database specified in the solution"

Having migrated to Win 8.1, I am now getting this message box when building an existing project.
I cannot workout how to get rid of this box as I dont need this feature. Where is the setting that is making this box appear?
On build I get this message box.
Unable to connect to a database specified in the solution.
Do you want to modify this database connection properties?
I have inspected the SLN and PROJ files and cannot see the cause. In the solution it happens for some projects and cannot see a pattern as to why two projects that are similar where one is and one is not showing the box on build.
Edit the {Projectname}.csproj.user file.
Remove the xml element
<DatabaseConnection></DatabaseConnection>
Then either restart VS to reload the project.
Or
Unload and reload the project from within the VS IDE.
Since I was getting the box due to a dependant other project in the solution, it would be a good idea to do an inspection of all csproj.user files for the xml element.

How can I see the change log of a directory with TFS?

I'm interested in seeing the latest changes that landed to a solution with TFS (I'm using Visual Studio). However, I can't seem to find the option: using View History on a solution or project brings up the history of the file itself. Am I missing something?
If you right click on folder the containing a solution in the Source Control Explorer window you'll see all changesets. It's obvious but I had to ask for it too. I am using TFS2010/VS2010.
Edit
Here are the steps:
Team/Connect to Team Foundation Server / select Team Project/ in Team Explorer dblclick on Source Control and in Source Control Explore right click folder containing your solution select View History and here you are.
The View History command will list you all the changesets where the file/directory was changed (add/move/content changed, deleted, etc.).
So if you do a View History on a .sln or .csproj file you'll see only the changes that were made inside the file's content, not on the "Visual Studio Item" and its related item.
To sum up, the View History command is only a File System history, there's not a smarter logic out there.
EDIT
The only way to know what changed inside a solution or project is to do a View History on the common denominator (i.e. the directory that contains everything you want to view history). But it'll still be a File System kind of History.
There's not Logical History for Solution and Projects in Visual Studio. For instance you can't know what files where added to a given project your viewing the history from two given versions. Or what projects were added/removed in the solution.
All the pieces are there (because all the changes are stored in the .csproj or .sln), but the feature itself that parses the content and retrieve the logic you want to see doesn't exist. (by the way, it's a great feature and I agree it should be there).
Bottom line: TFS/Visual Studio gives you two history system:
Based on the source control/file system, by displaying changesets.
Based on the source control/file system, by displaying labels.
That's all...
Right click on folder in solution explorer, and choose View History. Then you can see all the Changesets listed that apply to that directory. Then right click a particular changeset and choose Changeset details... to see what changes occurred in that changeset.

How to automatically regenerate DB partial project files?

I am using advanced version of Visual Studio 2010 and using database projects. There's a feature of exporting database schema as partial project (which creates *.files output file), but it is triggered manually by the developer (you need to right-click on the project and select Export as partial project). I would like to automatize this process, meaning that the output file is created each time I modify the database, I build it OR I close the solution.
I tried creating a macro, which executes a DTE command Project.VSDBExportAsPartialProject, but sometimes it fails with an exception AND it shows a Save as dialog box, which I would like to avoid. Maybe the idea is to add it to the post-build event, but I don't know how to execute DTE commands from there.
To sum up, all I need is to automatically refresh the *.files output file located in fixed path without any user interactions.
Is it possible?

Resources