Viewing 15 posts - 46 through 60 (of 61 total)
Good point Phil. I do believe DATEADD(year, -3, GETDATE()) Takes leap year into account, I'm too lazy to load test data. also I would not delete data from a table...
March 31, 2025 at 8:01 pm
You can add to your SP after records are created or execute another SP that deletes the records over 3 years old. You need to have a date for when...
March 31, 2025 at 7:02 pm
a simpler way is to run Powershell Script:CheckforSameFileNames.ps1 before processing files

Script Code below
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
Write-Host "Execution policy set to Unrestricted for...
March 29, 2025 at 12:42 am
What helps me, I would flowchart the entire process and then create your SSIS Package.
March 28, 2025 at 7:39 pm
Couldn't you check if the file exists In the destination folder first and if so move to unproccessed folder and then continue processing the next file?
March 28, 2025 at 7:20 pm
This might help: https://stackoverflow.com/questions/30498478/ssis-change-date-add-local-timezone-in-data-flow
March 26, 2025 at 3:56 pm
Yes, I searched and came across "Jeff Moden's infamous delimitedSplit8K function". I was looking for an alternative way. I will implement Jeff Moden's infamous delimitedSplit8K function. Thanks for the reply.
December 5, 2022 at 7:25 pm
Correction I need help with also the first name because I'm getting the middle Initial in my first name results;Example First Name Results= John J
December 3, 2022 at 11:15 pm
Hey Phil,
You are correct had 30,000+ records with the word "Responsibility" misspelled and 400+ spelled correctly. Ran replace function to correct the misspelling.
SELECT Pos1 = CHARINDEX('Total Paid amount is $',...
February 22, 2022 at 12:18 am
Phil,
I'm getting this error. Here is my sql statement:
SELECT Notes, NoteId
,TotalPaid = SUBSTRING(Notes, c.Pos1, c.Pos2 - c.Pos1)
FROM dbo.NoteReceive
CROSS APPLY
(
SELECT Pos1 = CHARINDEX('Total Paid amount...
February 21, 2022 at 1:46 pm
Never mind Phil, I got it. Thank you for your help. also thank you Jonah.
February 21, 2022 at 1:39 pm
Thanks Phil,
I'm sorry for such a novice question(New to SQL) I have this information in a Notes Field along with an ID Field in a table. How do I reference...
February 21, 2022 at 1:18 pm
Hi Phil,
I'm trying to exact the Payment information (In Red). My problem is they all have different starting positions, I did the Charindex recommend by Johan and I get 42,43,44,45,46...
February 21, 2022 at 12:54 pm
Thank you Johan,
I tried the Charindex and I'm able to find the starting position. I have multiple positions 42,43,44,45,46. What's the best way to go about this? a Case statement...
February 21, 2022 at 12:47 pm
Viewing 15 posts - 46 through 60 (of 61 total)