Viewing 15 posts - 1,186 through 1,200 (of 13,878 total)
We use a third party tool 'ControlM' to create jobs, execute them since we have hundreds of jobs which run everyday so the ask is to run the job...
September 24, 2022 at 10:29 am
The refinements continue!
WITH BaseData
AS (SELECT Data = ISNULL(t.Data, LAG(t.Data, 1, NULL) OVER (ORDER BY rt.yearwk))
,Week = rt.yearwk
...
September 24, 2022 at 10:22 am
Using aliases for table names is also a good idea. Shortens the query and improves readability.
Any one of those left joins could be increasing the number of rows returned beyond...
September 23, 2022 at 9:57 am
Is it so difficult to use code blocks?
SELECT dbo.TrainingHeader.TrainingID
,dbo.TrainingHeader.TrainingNumber
,dbo.TrainingHeader.TrainingTypeID
,dbo.TrainingHeader.TrainingParticipantType
...
September 23, 2022 at 9:42 am
Try this (as my query gets uglier and uglier!):
WITH BaseData
AS (SELECT Data = ISNULL(t.Data, LAG(t.Data, 1, NULL) OVER (ORDER BY rt.yearwk))
...
September 22, 2022 at 2:54 pm
One more question though. When we assign primary key to a column it creates clustered index by default on that column but I know that in future I will be...
September 22, 2022 at 11:03 am
Referring to staging tables as temporary tables is confusing!
For each of the staging tables, create a stored procedure. This stored proc should take care of 'changing the things you want'...
September 22, 2022 at 9:44 am
Are you inserting from the temporary tables to the same 'permanent' table in each case? Or are there different targets?
100,000,0 is not a number – please clarify.
I'd suggest doing the...
September 22, 2022 at 9:14 am
It might be a better option - if using TRY/CATCH - to THROW the error instead of using RAISERROR.
I'd be interested to hear your reasoning.
September 22, 2022 at 8:02 am
Here is a better version, which avoids the creation of a zero row when the preceding row was at the end of the month:
WITH BaseData
AS (SELECT Data...
September 22, 2022 at 8:00 am
Sorry for the delayed response. This gets closer, I think:
WITH BaseData
AS (SELECT Data = ISNULL(t.Data, LAG(t.Data, 1, NULL) OVER (ORDER BY rt.yearwk))
...
September 21, 2022 at 3:39 pm
I recommend deploying your SSIS packages to SSISDB and running them from there.
Also, did you try this?
September 21, 2022 at 11:22 am
Try out the following code. You will see that the error generated in the first proc is captured in the second.
CREATE OR ALTER PROCEDURE dbo.ErrorTest1
AS
BEGIN
...
September 21, 2022 at 10:16 am
OK, so the process could be
2. Copy file to <filename>_<invoiceId>.xlsx
3. Overwrite existing target file with empty except headings 'template' file
4. Process next InvoiceId
September 16, 2022 at 2:41 pm
If the file rename task is added after the Data Flow, doesn't that achieve your aim?
If a new empty target Excel 'template file' has to be copied over after the...
September 16, 2022 at 2:38 pm
Viewing 15 posts - 1,186 through 1,200 (of 13,878 total)