Viewing 15 posts - 1,546 through 1,560 (of 2,883 total)
if I understand right, you want to do an insert into 2 different temp tables from a CTE in a single query? If so, I don't think that is possible. ...
September 8, 2020 at 8:48 pm
My approach - get a monitoring tool to grab the data for you rather than watching things yourself and check the tool over a large timeline to get a baseline.
And...
September 4, 2020 at 8:10 pm
I think the easiest way would be to join the tables in the query, but that may not be possible. Failing that, I think your second dataset would need a...
September 4, 2020 at 6:44 pm
Another approach would be to go back to your query where you have all of those CTE's and UNION all of the data from the non-master table in your second...
September 4, 2020 at 4:13 pm
a_car11 - Just so I understand the question correctly, you want to get all of the records that ONLY exist in 1 of the 50 tables, correct? I just want...
September 3, 2020 at 10:15 pm
I think you will want to look into windowing functions. in this particular example, remove your GROUP BY and change your SUM to:
,SUM(B.MappedAmont) OVER (PARTITION BY A.BudgetId,...
August 28, 2020 at 9:03 pm
Offhand, I am not sure if activity monitor could do that, but I would not be surprised. If I remember right, it opens a transaction when you open it and...
August 28, 2020 at 8:45 pm
Not entirely sure why that would need to be "DNSLess"... you can use DNS without using ODBC. But maybe I'm just misunderstanding the terminology.
Which brings me back to the first...
August 28, 2020 at 5:57 pm
My first thought - what is the error?
Without the error message, it is hard for us to help.
Also, when you say "DNSLess", i am assuming you mean you are connecting...
August 28, 2020 at 4:23 pm
Something like this i think should work:
USE [Admin];
GO
SELECT
*
FROM[myTable];
DECLARE @CastedCols NVARCHAR(MAX);
SELECT
@CastedCols = COALESCE( @CastedCols + N','
, N''
) + N'CAST(' + QUOTENAME([c].[name]) +...
August 26, 2020 at 10:05 pm
One solution may be to reduce the number of NCI's.
But, before looking at that, it may not hurt to grab an execution plan and see what is happening when you...
August 26, 2020 at 9:53 pm
My opinion - the execution log on the task scheduler is not the approach I would take. That will tell you the success/error code for the last command executed. If,...
August 26, 2020 at 6:54 pm
To me this sounds like either:
A - permissions
B - drive letter vs FQDN
I would check that SVCSQL$ has permissions to the files and folders and also check if "D:\TEST" is...
August 26, 2020 at 5:16 pm
I think the best way to find individuals from this forum would be to post what the project is and hope someone interested comes along. That or reach out to...
August 26, 2020 at 2:48 pm
I expect that you have either 2 Tablix's in the report OR you have the hidden property set on the column of the single Tablix that has your data that...
August 26, 2020 at 2:26 pm
Viewing 15 posts - 1,546 through 1,560 (of 2,883 total)