Viewing 15 posts - 16 through 30 (of 80 total)
No, the script that puts the file into the folder from which the data flow loads it is simply testing for a folder existence, creating a folder if not present,...
July 22, 2022 at 1:02 pm
Does it with a 10 second delay.
July 22, 2022 at 12:53 pm
Oh wait, I think I only paused for 5ms and not 5secs. Will test again.
July 22, 2022 at 12:50 pm
The file is moved from an input to a staging folder
A Data Flow (the bit that randomly fails) the reads the file into SQL
The file is then moved from staging...
July 22, 2022 at 12:48 pm
That will match PageDefintions and PageDefintion giving a count of 2 for ID=2
Then can't you just change the search string to:
DECLARE @Find VARCHAR(MAX)='PageDefintion>'
?
July 12, 2022 at 2:51 pm
You don't need all those REPLACE functions.
You can just do
DECLARE @Find VARCHAR(MAX)='PageDefintion'
SELECT
Detail_Form
,LEN(@Find) ,(LEN(Detail_Form)-LEN(REPLACE(Detail_Form,@Find,'')))/LEN(@Find) AS OccurrenceCount
FROM dbo.Table1
July 12, 2022 at 2:34 pm
You can replace each of the 2 CTEs with Derived Tables still using Row_Number() to create your surrogate key
SELECT C1.Id
,C1.SinkCreatedOn
,C1.SinkModifiedOn
,C1.statecode
,C1.statuscode,
CASE WHEN ISNULL(CAST(C1.ts_primarysecondaryfocus AS...
July 11, 2022 at 1:32 pm
The input from Excel are key value pair(s)? Suppose the inputs were inserted into a temporary SQL Server table. Would/could it look something like this?
create table...
July 11, 2022 at 9:55 am
For 1, I tried a CTE to create a Month lookup table. No hardcoded string values
;WITH CTE_Months
AS
(
SELECT GETDATE() AS TheDate, LEFT(DATENAME(mm,GETDATE()),3) AS [MonthAbr],MONTH(GETDATE()) AS MonthOrder
UNION ALL
SELECT DATEADD(mm,1,TheDate),LEFT(DATENAME(mm,DATEADD(mm,1,TheDate)),3),MONTH(DATEADD(mm,1,TheDate))
FROM CTE_Months
WHERE...
July 11, 2022 at 8:30 am
For 1, I tried a CTE to create a Month lookup table. No hardcoded string values
;WITH CTE_Months
AS
(
SELECT GETDATE() AS TheDate, LEFT(DATENAME(mm,GETDATE()),3) AS [MonthAbr],MONTH(GETDATE()) AS MonthOrder
UNION ALL
SELECT DATEADD(mm,1,TheDate),LEFT(DATENAME(mm,DATEADD(mm,1,TheDate)),3),MONTH(DATEADD(mm,1,TheDate))
FROM...
July 8, 2022 at 2:54 pm
I have now restored the backup to completely different hardware and done a CheckDB and it was fine so the issue is very much with the Reporting DB MDF file...
May 19, 2022 at 1:09 pm
For reference, I've been referred to this article that infers that yes, a backup that is verified, check summed, and can be restored without error, might still be corrupt which...
May 19, 2022 at 12:28 pm
Interesting, and sadly, I actually cannot remember. I did drop the DB but can't remember if that was the first or second restore.
If we assume I didn't drop it and...
May 19, 2022 at 12:01 pm
Hi Jeffrey, this wasn't born out in testing.
Changing the File System Task from Move File to Copy File has the same problem
Also, manually copying manually moving the file didn't have...
October 22, 2021 at 2:10 pm
Viewing 15 posts - 16 through 30 (of 80 total)