简体   繁体   中英

csv upload to sql using powershell 2.0

why I am getting the below error on some machines with PowerShell 2.0. Working 100% on all machines that have PowerShell 4.0 and some machines with PowerShell 2.0

csv format 在此处输入图片说明

1;LNKD;LinkedIn Corp;NAS;Y;N;USD;US;12.31;321;65432;1

在此处输入图片说明

I assume, it is a formatting problem within the value for "Borrow" (or another number-based value). You should convert the dot-value (ie 12.31) to the right format your SQL Server uses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM