[Mono-list] SqlBulkCopy Error: Incorrect syntax near ','

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Thu Jul 2 03:53:40 EDT 2009

On Tue, 2009-06-30 at 13:56 -0700, Lazar wrote:
> Hi there,
> I am trying to use mono to import data into a Microsoft SQL Server from a
> Linux machine. The code is written in C# and makes use of the SqlBulkCopy
> class. The program runs just fine on a Windows platform, and there are no
> issues discovered when checked with the Mono Migration Analyzer. When the
> program is executed under mono (both versions 2.0.1 and 2.4.2 have been
> tried) on a machine running Ubuntu 9.04 it runs fine until it gets to the
> WriteToServer(DataTable) call, and then the following error is displayed:
> Incorrect syntax near ','.
> System.Data.SqlClient.SqlException: Incorrect syntax near ','.
>   at System.Data.SqlClient.SqlConnection.ErrorHandler (System.Object sender,

We're going to need more information in order to debug this. Could you
provide a small program with the smallest statement possible that
reproduces the problem? If so -> http://mono-project.com/Bugzilla.



More information about the Mono-list mailing list