Viewing 15 posts - 61 through 75 (of 13,838 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...
April 1, 2025 at 7:27 am
On another note, you shouldn't be using double quotes around your field names. If you want to use anything, you should use open and close square brackets. "["...
March 31, 2025 at 8:13 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...
March 31, 2025 at 7:51 pm
By fall off, do you mean get deleted?
Why not keep all the data and simply have a view which select the last three years?
Otherwise, create a daily SQL Agent job...
March 31, 2025 at 6:17 pm
Instead of moving processed files to a single archive folder, create a timestamped folder in the target folder and move the file there.
You will never get collisions if you do...
March 28, 2025 at 7:03 pm
Can you provide the relevant table structure and an insert statement that fails?
LOL... love seeing people ask for that.
You think it's funny that people are trying to help you...
March 28, 2025 at 4:40 pm
I know nothing about Hadoop, sorry. Have you determined that the value you are expecting to see (2025-03-01 01:03:14) is exactly what is stored in the Hadoop database and hasn't...
March 26, 2025 at 3:38 pm
Regarding connections, in my opinion everything should be checked in to your VCS with development as your target. This avoids storing sensitive information in your VCS.
If developers need to repoint...
March 26, 2025 at 3:31 pm
Presumably this is in SSIS?
What is the source system? Are you sure that the value, at database level (rather than when viewed through an app, for example), is as you...
March 26, 2025 at 11:46 am
Can you provide some consumable sample data?
If a single account has multiple rows, how are those rows to be ordered?
March 26, 2025 at 10:50 am
We've got upwards of 40 SSIS solutions all stored in one GIT repository in teams. I thought this was the proper way to go. The problem is managing this...
March 26, 2025 at 9:50 am
Thanks Phil, I will give that a shot. Just curious, why did you set @var1 to NULL?
That was an artifact of me testing different combinations of values and nulls....
March 19, 2025 at 6:44 pm
DECLARE @Var1 DATETIME = NULL
,@Var2 DATETIME;
SELECT Result = CASE
...
March 19, 2025 at 4:30 pm
The LEFT_SHIFT and RIGHT_SHIFT functions in SQL Server provide an efficient way to manipulate numbers at the binary level. These functions are indispensable in tasks like data encryption, compression, and...
March 19, 2025 at 11:06 am
Viewing 15 posts - 61 through 75 (of 13,838 total)