Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2006, 10:15 PM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SqlBulkCopy Help

Greetings,

I am new to the SqlBulkCopy operation provided by ADO.NET 2.0. I am
reading a pipe delimited text file into a datatable. I can bind the
datatable to a datagrid just fine.

When I try to run the SqlBulkCopy with this datatable I get this error

System.InvalidOperationException: The given value of type String from
the data source cannot be converted to type decimal of the specified
target column.

Unfortunately there is nothing that will tell me (that I have found)
that specifies the column that it is failing on. I have two questions.
 Is there a way I can tell which column is the offender and how do I
get around this?

If code needs to be posted let me know.

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
sqlBulkCopy problem aleahy ASP.NET 2.0 Professional 0 February 7th, 2006 12:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.