Viewing 15 posts - 721 through 735 (of 13,841 total)
A WHILE loop is a really slow way of generating this. Instead, consider using something like this, which does it fast! (Once again, thanks to Jeff Moden for the base...
November 14, 2023 at 11:02 pm
This is likely to be a permissions issue. The user executing the command (which will be the SQL Agent service user, by default) needs appropriate access to all of the...
November 14, 2023 at 2:22 pm
Do you receive any error messages?
November 14, 2023 at 11:25 am
Thanks so much. Can this be done in SSIS? Like the splits
Yes. In SSIS, you have access to C#, allowing very sophisticated levels of manipulation to be accomplished. But...
November 12, 2023 at 9:57 am
Thanks, Jeff. I made the assumption that the OP did not have a table 'TBL' containing a single column 'COLUMN1' and therefore that the addition of a suitable PK would...
November 10, 2023 at 11:56 am
Another version:
SELECT t.COLUMN1
,STRING_AGG (s.Item, ',') WITHIN GROUP(ORDER BY s.ItemNumber DESC)
FROM @TBL t
CROSS APPLY
(SELECT * FROM dbo.DelimitedSplit8K (t.COLUMN1,...
November 10, 2023 at 10:57 am
Frederico, Des thank you both for the examples. Taught me something new … appreciated.
November 10, 2023 at 10:52 am
If it was included then yes. Sorry, this is a different data set I put together. But the idea, process, and everything about the data is very similar.
Please script...
November 10, 2023 at 10:20 am
Also, if the %of duplicates is higher than the % of singles, then it may be better to copy the singles into a new table and switch out the...
November 10, 2023 at 10:10 am
You could also include a copy of the query here (use a Code block for formatting)
November 9, 2023 at 11:10 am
People here will need a lot more information before they can provide any sort of detailed assistance.
A good starting point will be to paste a copy of your actual execution...
November 9, 2023 at 11:09 am
It would be helpful if you could post your test data in consumable format, eg
DROP TABLE IF EXISTS #SomeTab;
CREATE TABLE #SomeTab(...)
INSERT #SomeTab(...)
SELECT ...
and also show us what...
November 9, 2023 at 9:49 am
SELECT * FROM #tbl_datafile_list WHERE Autogrow LIKE '% restricted %'
November 7, 2023 at 9:31 am
Not a dumb question at all. In my opinion, MS is not focusing at all on SSIS/SSAS.
If you have the choice of what to learn, Azure and DataFactory are the...
November 6, 2023 at 5:04 pm
Fair enough. I thought I had that error not long ago, and the reason was I had 'auto-pause' turned on for a particular Azure SQL DB and it had dozed...
November 6, 2023 at 4:45 pm
Viewing 15 posts - 721 through 735 (of 13,841 total)