Viewing 15 posts - 136 through 150 (of 220 total)
When eyeballing the data, how do you know where the start and end are? Is there any logic that can be applied to every single row? E.g everything after the...
February 25, 2016 at 8:12 am
What do you mean by 'looks dodgier'? Does it not return the correct data?
What's the issue with the first query in your recent post? Also, the second query can't be...
February 25, 2016 at 7:51 am
No problem.
It might be worth trying to find out why it happens in case it's likely to continue with a trigger.
You can use:
EXEC msdb.dbo.sp_start_job @jobid = 'job id of dds'
(https://msdn.microsoft.com/en-gb/library/ms186757(v=sql.100).aspx)
February 25, 2016 at 7:41 am
Ah I see. You could find the job ID of the data driven subscription by using the reportserver database, and then simply execute this job in your trigger.
Do you know...
February 25, 2016 at 6:59 am
If you're able to do data-driven subscriptions, why not just do that? I wouldn't have thought it would be much work to set up.
February 25, 2016 at 6:18 am
After adding your sample data into some temporary tables, this returned the same results as above:
SELECTp.PayID,
e.Name,
c.Name,
SUM(p.Amt1) SumAmt1,
SUM(p.Amt2) SumAmt2
FROM#UserPayments p
INNER JOIN#Employees e ON p.EmpID = e.EmpID
INNER JOIN#Companies c ON p.ComID...
February 25, 2016 at 6:06 am
I've used SSIS for something similar before and can walk you through what I did if that's an option for you?
Essentially I had an SSIS package run by a SQL...
February 25, 2016 at 5:52 am
It's not really irrelevant if it helps someone make the most sensible suggestion. I would usually use a function, but there may be instances where a procedure is better. Your...
February 25, 2016 at 5:41 am
What does the WHERE clause currently look like?
February 25, 2016 at 4:41 am
How straightforward is your function 'dbo.fnInsurance'? Is it possible to create a function from SH-SQL01 utilising the linked server?
I think one option is to use OpenQuery: https://msdn.microsoft.com/en-gb/library/ms188427(v=sql.100).aspx
E.g
SELECT ...
February 24, 2016 at 9:43 am
Sean Lange (2/24/2016)
jakebeliveau (2/24/2016)
tindog (2/24/2016)
SELECT NT_ID,
100 * Frequency / (SUM(Frequency) OVER ())...
February 24, 2016 at 8:55 am
jakebeliveau (2/24/2016)
tindog (2/24/2016)
SELECT NT_ID,
100 * Frequency / (SUM(Frequency) OVER ()) PercentageOfTotal
FROM ........
ETA:...
February 24, 2016 at 8:38 am
Are you after something like this:
SELECT NT_ID,
100 * Frequency / (SUM(Frequency) OVER ()) PercentageOfTotal
FROM ........
ETA: prefix with...
February 24, 2016 at 8:26 am
Could you post some sample data please? Will be easier to help.
Regards
Not A Gent
February 24, 2016 at 8:12 am
Viewing 15 posts - 136 through 150 (of 220 total)