i have this table:
Items
====
Barcode (text)
Des (text)
Price (double)
i made csv file on d:\Items.csv for fast insert (12345,computer,120.44).....
i try to insert like this (C# WinForm program):
Cmd = Conn.CreateCommand();
SQL = @"INSERT INTO Items SELECT * FROM [Text;DATABASE=" + @"d:" + @"\].[Items.txt];";
Cmd.CommandText = SQL;
Cmd.ExecuteNonQuery();
but i got 2 error:
1. Data type mismatch in criteria expression.
2. The field 'Items.Barcode ' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.
how to fix this ?
SQLlooks like when you debug it?