Here is an error that I caused using 'BCP in.'
SqlStatus = s1000
NativeError = 0
Error: Unexpected EOF in BCD data-file
CREATE TABLE [dbo].[Systems] (
[System_ID] [int] IDENTITY (1, 1) NOT NULL ,
[SystemType] [char] (12) NULL ,
[SysNumber] [char] (12) NULL ,
[SysAddr] [char] (12) NULL ,
[StationID] [char] (12) NULL ,
[Id] [char] (12) NULL ,
[Pims] [char] (8) NULL ,
[Location] [varchar] (35) NULL ,
[Platform_Desc] [varchar] (35) NULL ,
[Platform_ID] [varchar] (35) NULL ,
[Platform_Call] [varchar] (35) NULL ,
[TestNumber] [int]
) ON [PRIMARY]
The trouble was in [TestNumber], or maybe Nulls preceding it.
If [TestNumber] was in the last column or next to last column an error was produced.
When [TestNumber] was moved just past System_Id, the BCP 'in' worked well!
CREATE TABLE [dbo].[Systems] (
[System_ID] [int] IDENTITY (1, 1) NOT NULL ,
[TestNumber] [int],
[SystemType] [char] (12) NULL ,
[SysNumber] [char] (12) NULL ,
[SysAddr] [char] (12) NULL ,
[StationID] [char] (12) NULL ,
[Id] [char] (12) NULL ,
[Pims] [char] (8) NULL ,
[Location] [varchar] (35) NULL ,
[Platform_Desc] [varchar] (35) NULL ,
[Platform_ID] [varchar] (35) NULL ,
[Platform_Call] [varchar] (35) NULL
) ON [PRIMARY]
|