Viewing 15 posts - 331 through 345 (of 2,647 total)
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
reason why you got "double quotes" is because you set the field quote to an empty string - try the basic import
e.g. remove the following 2 options
, FIELDQUOTE = ''
,...
November 13, 2023 at 6:54 pm
first - while you mentioned you had "memory errors" the errors you supplied had nothing to do with memory, but only with a file format error when using the bulk...
November 13, 2023 at 4:10 pm
How can I automate this? Like if I had multiple of such files to import. Will I have to just follow the same process?
yes. a standard pattern for this...
November 12, 2023 at 10:12 am
whenever I see these errors on BCP its one of the following
...
November 12, 2023 at 8:42 am
Viewing 15 posts - 331 through 345 (of 2,647 total)