Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

When using FIRSTROW

$
0
0
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)

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>