Viewing 15 posts - 16 through 30 (of 375 total)
I like the idea of source control. Makes sense. I prefer an on-prem solution vs github etc. Can I do this in SS? Or do I need an external program? ...
July 9, 2025 at 3:40 am
Actually...I ended up moving them manually. No need for code.
July 6, 2025 at 4:51 am
and working well with what solution?
i used Ken's solution. works great!
July 1, 2025 at 5:48 am
i just tried the clustered index approach. it worked. thank you for this!!
June 30, 2025 at 10:48 pm
thank you both. the code is working great now.
June 30, 2025 at 9:21 pm
Thank you both. The line numbers got added. I ran the BULK INSERT code and the entire text file got added to one row vs separate rows. I don't think...
June 30, 2025 at 6:17 pm
it won't let me post the formatfile so here is a picture of it:
June 30, 2025 at 1:45 am
Not sure what is going on here. I posted a reply twice but it never got posted. I will try again. Sorry for any spam.
I did some research and it...
June 30, 2025 at 1:43 am
I tried the batch approach yesterday. There are over 5000 units and one unit took about 6 seconds to run. If I did this in batches of one unit at...
June 26, 2025 at 3:38 pm
this works! thank you so much!!!
I tried the query on a much larger dataset and after 4.5 hours it is still running. The dataset has about 10million records. Is there...
June 25, 2025 at 6:52 pm
I forgot to include the expected results. Sorry about that. Here you go:
June 23, 2025 at 11:27 pm
I think this is what you are looking for.
-- For each test_date, determine the last date to count in a 10 date range
; WITH DateAnalysis AS
(SELECT...
June 23, 2025 at 11:07 pm
Got data? What if you use OUTER/CROSS APPLY to retrieve the top N records? Prove it doesn't work. Provide some data.
My SQL skills are not too sharp. I am...
June 19, 2025 at 7:04 pm
Got data? What if you use OUTER/CROSS APPLY to retrieve the top N records? Prove it doesn't work. Provide some data.
np. here you go:
drop table if...
June 19, 2025 at 7:02 pm
Can you not insert a rolling 10 days window? Something along the lines of
PERCENT_RANK() OVER (PARTITION BY year ORDER BY date DESC ROWS BETWEEN 10 PRECEDING...
June 19, 2025 at 3:27 pm
Viewing 15 posts - 16 through 30 (of 375 total)