Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 bcp error

Author  Topic 

X002548
Not Just a Number

15586 Posts

Posted - 2010-04-27 : 13:24:00
Here's one I've never seen before


SQLState = 37000, NativeError = 173

Error = [Microsoft][ODBC SQL Server Driver][SQL Server]The definition for column 'Bonus' must include a data type.


Any ideas?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



X002548
Not Just a Number

15586 Posts

Posted - 2010-04-27 : 13:27:08
I love these 3rd party vendors....what garbage


CREATE TABLE [dbo].[execbonusfeedannV1](
[DRecord] [varchar](2) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[Bonus)8] [varchar](7) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[SS] [varchar](9) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[Field4] [varchar](3) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[EarningsCode] [varchar](3) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[DateBonusAmount] [varchar](34) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[Retired] [varchar](1) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL,
[IForget] [varchar](2) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NULL
) ON [PRIMARY]





Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-27 : 13:39:16
I guess the ")8" in the column name is throwing off bcp. Have you tried a view instead?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-04-27 : 14:58:08
They also have columns named Function that makes bcp puke

A little sp_rename before I start the process, bcp in, sp_rename back after



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -