If you're using a format file and you've specified a MAXLENGTH property of say 10. Using the FIRSTROW property on the BULK INSERT will fail if your field name is longer than the MAXLENGTH. The FIRSTROW property skips rows but validates against the MAXLENGTH you've specified.For instance should you have a VARCHAR(10) field specified in a table:CREATE TABLE [dbo].[Demo]( [ID] [int] IDENTITY(1,1) NOT NULL, [Name] [varchar](10) NULL, [Description] [varchar](10) NULL,PRIMARY KEY CLUSTERED ( [ID] ASC)
↧