Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

data formatting with "no-break space alt0160".

$
0
0

Every month I export a Webpage(HTML) file from one of our
vendors, convert to .xlxs, perform some minor column data formatting,
convert to a text pipe delimited file to import into SQL for reporting.

This month my bulk insert failed on every row even though the
data looked 100% the same (side b=y side last months sucessful import and this months failed import) so I startedlooking intowhitespace, tried
thetrim and clean andonly running the following on
eachcolumn that contained a a date,time or comma seemed to work.

--=TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160)," ")))

The firsttimeI was working through itit
appeared the issue was only in the date/time columns and the data imported into
my table. After the fact while running into somenull results when I knew
there should be I noticed the named fields were showing up with "a`"
characters after each of the...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>