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 2000 Forums
 Import/Export (DTS) and Replication (2000)
 error importing from foxpro

Author  Topic 

isaacbs
Starting Member

10 Posts

Posted - 2003-07-07 : 19:13:07
when i try to import data from a foxpro database i get the following error

insert error, column 9('contact', DBTYPE_NUMERIC), status 12: Invalid status for bound data
Unspecified error

in foxpro contact is a numeric type (width 6, decimal 0)
and sql2k translates it as decimal of length 5

anybody has any idea of what is causing this behavior and how to solve it

thanks in advance
isaac

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-07-07 : 19:38:12
How are you importing the data?

Tara
Go to Top of Page

isaacbs
Starting Member

10 Posts

Posted - 2003-07-08 : 11:37:15
I created first a DSN pointing to the folder that contains the foxpro tables

Then I used the wizard to import the data using the foxpro tables as a source and sql2k as destination

I also tried creating the package manually but i get the same error message
Go to Top of Page

isaacbs
Starting Member

10 Posts

Posted - 2003-07-08 : 11:41:54
well its working now, i just made manually the sql statement for creating the table using different types than the ones that sql2k assigned and its working now

for example numeric in foxpro i changed it to int in sql2k instead of the decimal(6,0) that sql2k uses

thnx
Go to Top of Page

lis_ar
Starting Member

5 Posts

Posted - 2004-04-22 : 18:33:01
Do as the the partner "tduggan", has tell me....create a table with the columns and type of data that the table need, after import the data of the table to the created table.

Lucky.
Go to Top of Page
   

- Advertisement -