Re: error while using bcp...
From: miron (nospam_miron.berlin2_at_verizon.net)
Date: 08/03/04
- Next message: Adam Machanic: "Re: Comprable technique to Yukon's "WITH", in 2000?"
- Previous message: Joe Celko: "Re: Newbie Normalization Question"
- In reply to: John P: "error while using bcp..."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 03 Aug 2004 00:26:18 GMT
John,
I would look at the format file, or carefully walk step by step if
formatting is specified interactively. From here it appeared bcp is
instructed to use field width narrower then the value sql server query
selected. A query like this can help to determine the offending row
select primary_key_column, datalength( column_name ) as actual_data_length
from <table_name> where datalength( column_name ) > "desired_value"
-- cheers
Miron.
"John P" <JohnP@discussions.microsoft.com> wrote in message
news:C86A0589-DE18-4801-9476-E51CD5EB65B7@microsoft.com...
> Hello,
>
> Im getting the following when trying to bcp out a query w/ a lot of fields
>
> Starting copy...
> SQLState = S1000, NativeError = 0
> Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Warning: Server
data (3046 bytes) exceeds host-file field length (0 bytes) for field (1).
Use prefix length, termination string, or a larger host-file field size.
Truncation cannot occur for BCP out
> put files.
>
>
> I can't seem to figure out why this is happening...has anyone seen this
message before or know what could be causing it?
>
> I'd appreciate any feedback...
>
> Thanks!
>
> John
- Next message: Adam Machanic: "Re: Comprable technique to Yukon's "WITH", in 2000?"
- Previous message: Joe Celko: "Re: Newbie Normalization Question"
- In reply to: John P: "error while using bcp..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|