report server timeout after 1.5 minutes in browser - sql-server

I desperately need help/suggestions
I'm not sure if this question is ok for SO, so sorry in advance...
well, problem is:
I have this one report in visual studio 2013 ( which doesn't really matter )
and it has a subquery
the query itself takes ~5 seconds
but hence it's in a sub
time dataretrieval = 33343
time processing = 388703
and time rendering = 22
the problem is that NONE of the browsers show the result
all of them just stop (i don't know what to call it, render? the thing that keeps on circling just stops ) after 1 minute 30 seconds.
I checked if I have timeouts anywhere
some said 1800 seconds, changed it to 0 and higher, still 1.5 minute dead end.
please, I'm open to suggestions.
the subquery generates ~300-500 excel pages
it works in VS itself
and even in browsers, when I check ExecutionLog2 it says success but no data is shown in the browser(s)
thanks guys & sorry if inappropriate.

Related

AppleScript Calendar automation

I have an AppleScript that runs on loop every two hours to modify a calendar B based on updates from another calendar A.
The script uses the on idle command below to wait 2 hours every loop. What happens if the computer stays idle for 1.5 hours then goes to sleep for 10 hours? Will there be 0.5 hours left when it wakes up? Any other scenarios?
on idle
my_code()
return (120 * minutes)
end idle
The script truly only needs to run if there is an update to calendar A, which is a shared iCloud calendar and can get updates from multiple people. The two hour loop is what I could figure out so far but I feel it is not efficient. Any more robust suggestions? Is there a way I can trigger the script to run only when it detects an update in calendar A? Or, along the same line of thought, is there a way to get the last timestamp the calendar was updated?
Thanks
I can't test following. Not sure it is the best way to solve your problem. Try yourself:
property oldStampDates : {}
on run
tell application "Calendar" to tell calendar "Test Calendar" to set oldStampDates to get stamp date of events
end run
on idle
--> Script retrieves last modified date and time of indicated calendar events.
tell application "Calendar" to tell calendar "Test Calendar" to set newStampDates to get stamp date of events
if newStampDates is not oldStampDates then display notification "The changes was detected"
set oldStampDates to newStampDates
return 30 -- seconds, default setting
end idle
NOTE: 1) you can put instead of display notification call to your handler my_code(), 2) you can put instead of 30 seconds other value, for example, return 10 (checking every 10 seconds).

How can I make an Azure Logic App only execute during a certain window of time?

I've got a logic app that runs every 15 minutes. I'd like to make it only run every 15 minutes between the hours of 8 AM and 4 PM, but I'm unable to figure out how to go about that.
My understanding thus far is that I can't add that condition to the Recurrence, which is set to 15 minutes, and that I'll probably have to make it so that every 15 minutes, if time is between 8 AM and 4 PM, do x... but I'm still struggling to figure out if I ought to be using the "Get current time" feature and using a conditional comparator - if this is the case, how do I make the comparison?
Thanks in advance!
I think you achieve it in using Recurrence trigger itself. As shown below I have it for every 5 minutes on Monday to Friday between 8 am to 7 pm
You can also go through this documentation for any additional details

SQL Server Select all except data where next row has datediff of less than 10 milliseconds

I'm using SQL Server 2017 and i'm facing an issue.
I have the following data (sample seen below).
What i want is to select all the cardnumbers, except these that are followed by an event that contains the same cardnumber while the result value is not ok.
Their time difference between these two events is at most 200 milliseconds (so i believe in the where clause it must be datediff(ms, cardnumberofpreviousevent, cardnumberofnextevent) > 200.
So in this case, the desirable outcome should be all the lines displayed above (line 426 to 433), except the checked line 432.
Can anyone give me some help? It will be much appreciated. Thank you.
Your answer is in your question.
Did you try :
where datediff(ms, cardnumberofpreviousevent, cardnumberofnextevent) > 200
If it does not work, please include your whole query, then I will advise how to alter it...

SQl Server I need to fix the error of "Timeout expired. The timeout period elapsed"

I know it's been asked a bunch of times but I can't seem to get the fixes I've read to solve my issue. I'm getting the SQL Server error that "the timeout period elapsed prior to completion of the operation or the server is not responding." I changed the setting under Tools>Options>Designers>"Override connection string time- out value" to 120 seconds as per this posting, but... it still times out after 30 seconds. I'm accessing the database from visual studio, working directly with it, and not with ado in client code. I'm open to suggestions... here's the query btw:
SELECT
Symbol
FROM
tblSymbolsMain
WHERE
((SELECT dbo.LatestDateInDailyPricingVolBySymbol(tblSymbolsMain.Symbol) AS Expr1) < dbo.RecentTradingDateByNumber(5))
In a nutshell, the goal is to return all stock symbols from a main symbols table that don't have a daily pricing data point in the pricing table for at least 5 trading days.
As always thanks in advance..
The code doesnt appear to be correct ... you have ...WHERE (SELECT...)
WHERE what?
Are you sure you are not after
SELECT MyCols FROM MyTable WHERE ID IN (...)
OR
SELECT MyCols FROM MyTable WHERE ID NOT IN (...)
Where (...) represents another select returning some sort of ID.
Otherwise of course you'd get a timeout. That select may return a count and WHERE 1 can go on and on and on...

How do I measure response time in seconds given the following benchmarking data?

We recently got some data back on a benchmarking test from a software vendor, and I think I'm missing something obvious.
If there were 17 transactions (I assume they mean successfully completed requests) per second, and 1500 of these requests could be served in 5 minutes, then how do I get the response time for a single user? Is this sort of thing even possible with benchmarking? I have a lot of other data from them, including apache config settings, but I'm not sure how to do all the math.
Given the server setup they sent, I want to know how I can deduce the user response time. I have looked at other similar benchmarking tests, but I'm having trouble measuring requests to response time. What other data do I need to provide here to get that?
If only 1500 of these can be served per 5 minutes then:
1500 / 5 = 300 transactions per min can be served
300 / 60 = 5 transactions per second can be served
so how are they getting 17 completed transactions per second? Last time I checked 5 < 17 !
This doesn't seem to fit. Or am I looking at it wrongly?
I presume be user response time, you mean the time it takes to serve a single transaction:
If they can serve 5 per second than it takes 200ms (1/5) per transaction
If they can serve 17 per second than it takes 59ms (1/17) per transaction
That is all we can tell from the given data. Perhaps clarify how many transactions are being done per second.

Resources