![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Which version of MSSQL? What data type is the column? Is ANSI_PADDING on or off for the column? If your column is char(1), then this would be expected, as char columns are padded out with spaces; a varchar should not be padded, though. If this doesn't help, I suggest you post (simplified) CREATE TABLE and INSERT statements to show exactly what your table and data look like. Simon |
#4
| |||
| |||
|
|
Simon Hayes wrote: Which version of MSSQL? What data type is the column? Is ANSI_PADDING on or off for the column? If your column is char(1), then this would be expected, as char columns are padded out with spaces; a varchar should not be padded, though. If this doesn't help, I suggest you post (simplified) CREATE TABLE and INSERT statements to show exactly what your table and data look like. Simon SQL Server 2000 Varchar 16 ANSI_PADDING is off. Give it a shot. Create a table with three columns, all varchar. Insert an empty string into each to get rid of any nulls. Then do a bcp out to an output file and let me know if you get the same results. Eric |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |