Crystal Reports delay shows old data when using MS Access - visual-studio-2010

Here is in interesting one.
I have a Crystal Report that uses a single Microsoft Access 2007 table. The data in the table is updated at run time based on criteria from a list box.
If I select one entry from my list it updates the data and shows in the report. If I select and different entry is shows the data the old data. If i select that report enough times it will eventually show the new data.
The data in the access data base is updated as I checked manually
My problem is that there seems to be a delay in between the data updating and the report showing the new data.
Is there anyway to reduce this delay or get my program to wait until access has finished updating ?

Here's some ideas:
If you're mixing cr-xi with VS2010, and have no real reason to do so, then uninstall xi and install the new libraries for VS2010. I had issues mixing cr-xi with VS2010.
There's an option to save data with report. Make sure that's turned off. If it already was, turn it on, run the report, then turn it off again.
You can try rpt.Refresh(), right before crystalReportViewer1.ReportSource = rpt.
This page had some ideas, including the last one I listed.

Related

ADS -- Run Button Dimming

Context: I'm running some simple queries in Azure Data Studio to query and manipulate data in a local instance of SQL Server 2019.
Question: When I query the table via "Select", the Run button is accessible. As soon as I Truncate the table, the Run button dims & is no longer accessible --__-- Why!? Once the button dims seems I'm unable to execute any other queries in the same query window afterwards. SMH.
Kinda ridiculous that I need to even post this question given how simple these 2 queries are. I expect this button to be easily accessible, similarly to SQL Server Management studio. I read through the docs and dont see anything about this button dimming issue. ADS is built with similar components to VSC so experience or knowledge in that tool may help. Can someone please share any tips/tricks they know on how to fix this issue?
https://learn.microsoft.com/en-us/sql/azure-data-studio/quickstart-sql-server?view=sql-server-ver15

Visual Studio Load Test View Raw Results

I am running a Coded UI test using Visual Studio load testing capabilities.
My test runs successfully, but I am trying to get a better understanding of results. My results are stored as "All Individual Details" and are stored in a local database. However, I'd like to extract raw results for each individual transaction. All I can really see in the results is the number of times each transaction ran, the average response time and the min and max etc. I'd like to get hold of the raw results for each individual transaction however. Is this possible?
I'm using VS2012.
Visual Studio stores load test results in an SQL database, provided the "run settings" specify so. The contents of the database for Visual Studio 2010 is defined here. A few changes have been made for later versions but much remains the same.
Much of the contents of the database is derived from Web Performance tests but the question asks about load tests running Coded UI tests. Transactions and pages are features of Web Performance tests, whilst the author of a Coded UI test may think of transactions and pages, Coded UI has no inbuilt items that provide that data. Hence various parts of the database will be empty.
To find the connection string for the SQL load test database, open any load test file then from toolbar (or context menu) select "Manage Test Controllers". The connection string will be shown within the window.
to get the raw data do the following,
1.open the results
2. select the graph tab
3. Select the drop down, e.g. transaction response time
4. In the top right corner, select Export graph data to excel

Getting Changesets in build process workflow activity

I have a custom Code Activity that sends out a status email at the end of the build process. So far I have it working except I cant seem to get the Associated Changesets and Work Items.
Right now I am using the code below to try to get the changesets and work items but it is returning an empty List.
IList<IChangesetSummary> changesetSums = InformationNodeConverters.GetAssociatedChangesets(buildDetails);
IList<IWorkItemSummary> workItemSums = InformationNodeConverters.GetAssociatedWorkItems(buildDetails);
My CodeActivity is being run well after the AssociateChangesetsAndWorkItems activity has run and finished and the changesets and Work items show up in the build summary in Visual Studios.
The problem is, that IBuildDetail somehow does not get updated until the whole build is finished, either you use reference available in build process itself or query a new IBuildDetail separately. I have tried both when executing Powershell script near the end of the process (the behavior was the same both on agent and on controller).
The solution I have made was to use associatedChangesets variable, which contains result of AssociateChangesetsAndWorkItems activity in the default process template. This gives you an array of associated changesets.
Obtaining associated work items would then be easy, since this information should be already present. However, I have not tested this, since I did not need work items.

Query runs fast but report renders slow: how to debug this?

I'm running SSRS 08. My query has four parameters (all varchars). I can run the query through management studio and it runs in under 10sec. I get the same performance if I run the query in Visual Studio's query designer.
However...if I try to preview the report or actually run the report once it's deployed the actual report sometimes takes more than 5 minutes. I ran a trace and the query seems to be in/out of the SQL server side quickly. How can I find where/why I'm loosing this performance? I've tried/checked so far the following:
No images are referenced in the report
No grouping/sorting outside of the stored procedure
Since it's a straight forward report I rebuilt it with same result (to check if it's not an issue of a corrupted report).
ran SQL trace when I executed the report to make sure the query did not have issues
Based on some suggestions before I rewrote the query to use variables instead of parameters like so
-- ...
-- Note: #Parameter is a varchar(40)
-- ...
declare #Var as varchar(40)
set #var=#parameter
select * from table where fieldvalue=#var
Ran the trace and it's not an issue on the query side.
I had the report html output trouble on report retrieving 32000 lines. In my case I had to activate “Interactive Paging” to allow user see first page and able to generate Excel file. The pro is that first page appears fast and user can generate export to Excel or PDF, the cons is that user can scroll only current page. If user wants to see more content he\she must use navigation buttons above the grid. In my case user accepted this behavior because the export to Excel was more important.
To activate “Interactive Paging” you must click on the free area in the report pane and change property “InteractiveSize”\ “Height” on the report level in Properties pane. Set this property to different from 0. I set to 8.5 inches in my case. Also ensure that you unchecked “Keep together on one page if possible” property on the Tablix level (right click on the Tablix, then “Tablix Properties”, then “General”\ “Page Break Options”).
I was troubleshooting a similar issue a while ago and it turned out to be related to the browser I was using to view the report. If the report returns a lot of data to the screen consider splitting it into multiple pages if it is not already configured that way.
Why Does Business Intelligence Studio Load Reports Faster than the Report Server
I think I may have found my answer on a social.msdn.microsoft.com thread
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/1e34dc76-4d78-4376-89b0-7c381ed82726/
I unchecked the "Keep together" setting and it now actually previews coming from the server and I can export the report. Much improvement

No data in the Test Plan Progress Report in TFS

I'm having some problems with the Test Plan Progress Report in TFS. It is not showing any data in there, even when i have several test cases and in different states, and also have assigned a Configuration (Windows 7 and IE9) to each test case. Do you know what else could be causing this annoying issue with the report?
The Test Case Readiness Report is working fine, but only this one is not working.
I met the same problem. After taking a lot of time in google or microsoft's website , there is still no answer be found. I decide to research the report design. It still take a lot of time since this is my first time to use SQL Server Report Builder.
I found the solution to this problem.
Open this report in report builder
go to DataSet > dsTestData
right click mouse > dataset properties
select field in left column
click 'fx' button of Passed_Cumulative_Count
change expression's variable :
change OutcomeCaption.Value="Passed" to Outcome_Id.Value="2"
change other fields as step 6
Outcome_Id :
1 Other
2 Passed
3 Failed
7 Blocked
255 Never Run
Save your report
You should see test plan progress data now .
My TFS is in Traditional Chinese OS , the OutcomeCaption will be chinese word. This is why the orginal report has no data.
Hope this gives others some help.
I had a similar issue and it turned out it was because I didn't have Test Plans defined. Since I wasn't using a version of Visual Studio that had Microsoft Test Manager licensed, I wasn't able to define a Test Plan for my Test Cases.

Resources