Viewing 15 posts - 346 through 360 (of 2,658 total)
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
have a look at the code below.
basically I've created a temp table (on your case it would be a Permanente one) staging table to load the raw data
these types of...
November 11, 2023 at 10:26 pm
replace the strings and values with others - as long as the position and sizes are the same it will do - without it not much we can tell.
but regardless...
November 11, 2023 at 12:48 am
a text file would never look like that - that has formatting that would not be possible on a text file so you are showing us potentially a rendering of...
November 11, 2023 at 12:35 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...
November 10, 2023 at 10:35 am
Viewing 15 posts - 346 through 360 (of 2,658 total)