Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

bcp in Format File to Accept NULL for MONEY

$
0
0

I get error when it hits NULL for a MONEY columns 2006, 2007, 2008:

Error = [Microsoft][SQL Server Native Client 11.0]Invalid character value for cast specification

How do I change the format file? Thanks.

Format file:

11.0
7
1       SQLCHAR             0       12      ","      1     SalesPersonID                    ""
2       SQLCHAR             0       304     ","      2     FullName                         SQL_Latin1_General_CP1_CI_AS
3       SQLCHAR             0       100     ","      3     JobTitle                         SQL_Latin1_General_CP1_CI_AS
4       SQLCHAR             0       100     ","      4     SalesTerritory                   SQL_Latin1_General_CP1_CI_AS
5       SQLCHAR             0       30      ","      5     2006                             ""
6       SQLCHAR             0       30      ","      6     2007                             ""
7       SQLCHAR             0       30      "\r\n"   7     2008                             ""


Kalman Toth Database & OLAP Architect sqlusa.com
Paperback / Kindle: SQL Programming & Database Design Using Microsoft SQL Server 2012



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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