Viewing 15 posts - 691 through 705 (of 13,849 total)
Thank you all for the help! Phil's suggestion worked for me, I was trying to avoid it as there is no leading index on the date columns.
I as well...
December 18, 2023 at 2:35 pm
I don't see why there should be a cast-iron association between tableAID and LastUpdateDateTime, assuming that any row, old or new, can be updated (and thus have its LastUpdateDateTime modified).
Instead,...
December 18, 2023 at 1:38 pm
While this is an interesting technique, I'd suggest that the C# script could easily be modified to do the actual copy/move, obviating the need for a Foreach loop. This would,...
December 18, 2023 at 9:00 am
Something like this, perhaps.
PrevSickBalance = LAG(Accrue_Sick_Balance,1,0) OVER (Partition By Employee_ID ORDER BY Payroll_Detail_ID)
December 14, 2023 at 5:48 pm
How about providing your sample data in consumable format, along with your desired results? You've been here long enough to know better
December 13, 2023 at 2:12 pm
That's a huge chunk of code and, in my opinion, asking such general questions is the sort of thing you'd employ a paid consultant to help with.
If you take the...
December 12, 2023 at 6:21 pm
In the one that doesn't work, I suspect it's because the TOP (1) is being applied before the join on StaffId.
If you were to push the StaffId into the subqueries...
December 12, 2023 at 3:22 pm
I just need to work out how to do this all dynamically, as the column Names and amount of columns can vary in the JSON.
Then you will need to...
December 12, 2023 at 10:27 am
You appear to be asking us to do your assignment for you, am I right? That table structure does not exist in the real world
December 12, 2023 at 9:21 am
My thoughts are that any password columns should be encrypted. No need to worry about DENY permissions if you do that.
December 11, 2023 at 4:01 pm
This is not an easy format to achieve what you want, because the array items are not linked to each other.
But if you were to add a key to the...
December 11, 2023 at 3:16 pm
Thank you
@JDate is getdate, i dont need that I have j_date that contains data, so pretty much this field j_date need format as mm/dd/yyyy
I get that. Just substitute your...
December 7, 2023 at 6:45 pm
Added local variables to make the code work in isolation. Your best bet is to output as a string:
DECLARE @J1 INT = 1;
DECLARE @JDate DATETIME = GETDATE...
December 7, 2023 at 3:55 pm
Do you have any other local drives with available space?
December 7, 2023 at 1:01 pm
Does the schema of the Access DB also change much?
If not, it would be better, in my opinion, to build a process to refresh the data in your SQL Server...
December 7, 2023 at 11:04 am
Viewing 15 posts - 691 through 705 (of 13,849 total)