Viewing 15 posts - 331 through 345 (of 2,651 total)
ty with the path within double quotes - note that I didn't escape them below - but you will need to do that for sure (possibly a double double quote)
November 20, 2023 at 11:07 am
its all in this line
" , STRING_AGG(coalesce(t3.word, t2.value), '|') within group (order by t2.ordinal) as Modified"
plus the group by bt.original
string_agg converts from rows to a single column - and the...
November 19, 2023 at 6:58 pm
install-module won't work for this - sqlps is not the same as sqlserver modules. if this was SQL 2022 you could tell SQL Agent to use SQLSERVER module instead of...
November 19, 2023 at 11:28 am
look at this link then https://www.pythian.com/blog/powershell-error-sqlps-ps1-cannot-loaded-running-scripts-disabled-system
but heed the advise on the bottom - do not use native SQL PowerShell and instead use a command file to run with the most...
November 19, 2023 at 9:36 am
the code you gave us is already doing it in "small" chunks - indeed its doing it on the smallest possible chunk size.
I didn't get it. the...
November 19, 2023 at 9:34 am
easy google - should always be first point of reference
November 19, 2023 at 1:04 am
can you get used to post data in a consumable way - see on code below one way of doing it.
one way below to achieve what you need
November 18, 2023 at 7:08 pm
the code you gave us is already doing it in "small" chunks - indeed its doing it on the smallest possible chunk size.
and that is what should not be done...
November 18, 2023 at 9:45 am
and something I've noticed - your SQL settings are default ones - you should change them - maxdop normally should not be set to zero, and Cost Threshold for Parallelism...
November 17, 2023 at 3:37 pm
the issue should be clearer even for someone not experienced.
there is no index on the FIRST_NM - so for each update it needs to do a table scan.
add a index on...
November 17, 2023 at 2:02 pm
That is a very ugly file. Guessing it came from a mainframe?
It may be faster and more supportable to learn some python to preclean and format the file than...
November 16, 2023 at 6:30 pm
as Brian said you should not be trying to convert as is but rather understand the requirements and do fresh and better code targetting SQL Server.
for the particular error you...
November 15, 2023 at 8:16 pm
you better give us your .ps1 file - and if using powershell you really should be outputting a valid CSV file instead of dumping the output of the command into...
November 14, 2023 at 4:14 pm
you can't - googling show you lots of threads on that and the answer is always the same.
depending on what you are trying to accomplish there are ways to bypass...
November 14, 2023 at 11:47 am
AV blocking powershell
Access to that networkshare not set correctly (both to the location of the csv file and to the PS script itself.)
you can check it by using a using...
November 13, 2023 at 10:19 pm
Viewing 15 posts - 331 through 345 (of 2,651 total)