![]() | |
#41
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#42
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#43
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#44
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#45
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#46
| |||
| |||
|
|
I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. |
#47
| |||
| |||
|
|
Harolds (harolds (AT) nospam (DOT) nospam) writes: I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. Could you post the CREATE TABLE statement for the table, and the format file? What happens if you specify the table as source instead of the query? If your able to track down the row that causes a problem, could you give an INSERT statement for it? Please also specify which version of SQL Server you are using. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#48
| |||
| |||
|
|
Harolds (harolds (AT) nospam (DOT) nospam) writes: I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. Could you post the CREATE TABLE statement for the table, and the format file? What happens if you specify the table as source instead of the query? If your able to track down the row that causes a problem, could you give an INSERT statement for it? Please also specify which version of SQL Server you are using. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#49
| |||
| |||
|
|
Harolds (harolds (AT) nospam (DOT) nospam) writes: I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. Could you post the CREATE TABLE statement for the table, and the format file? What happens if you specify the table as source instead of the query? If your able to track down the row that causes a problem, could you give an INSERT statement for it? Please also specify which version of SQL Server you are using. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#50
| |||
| |||
|
|
Harolds (harolds (AT) nospam (DOT) nospam) writes: I used you bcp out on a table in my db, and then tried bcp in as well as your bulk select and both returned an error. bcp out: bcp "select top 1000 * from activity.dbo.activity200807" queryout f:\testdata.dat -n -T format: bcp "activity.dbo.activity200807" format nul -n -f f:\testdata.fmt -T select: SELECT a.* FROM OPENROWSET(BULK N'f:\TestData.dat',FORMATFILE ='f:\testdata.fmt') as a error for bulk select: Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 20, column 6. Verify that the field terminator and row terminator are specified correctly. Could you post the CREATE TABLE statement for the table, and the format file? What happens if you specify the table as source instead of the query? If your able to track down the row that causes a problem, could you give an INSERT statement for it? Please also specify which version of SQL Server you are using. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |