Groups | Blog | Home
all groups > sql server dts > february 2004 >

sql server dts : DTS (DBTYPE_NUMERIC) error


Magni hansen
2/6/2004 2:46:38 AM
I am using DTS for import data from Navision to MS SQL DB,
but i am getting this error when trying to import a BCD
(15,5) into the MS SQL.

Error msg: Insert error... ('Pr',DBTYPE_NUMERIC), status
12: Invalid status for bound data.

If i change the decimal(15,5) to varchar(30), i only get "-
Magni Hansen
2/6/2004 7:01:09 AM
The source value is Pr BCD(15,5) NOT NULL, viewing the value inside Navision it looks like: 1.900,00

The driver i am using is: C/ODBC 32 bit, 2.10.00.11

I have downloaded version C/ODBC, 2.50 driver, but this was in conflict with company server driver, so i am still using version 2.10.00.11

Magni Hansen

----- Allan Mitchell wrote: -----

what do the source values look like. This sounds like a driver issue but I
am interested to see the values

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]


Magni Hansen
2/6/2004 8:06:08 AM
If i change the destination column to varchar, then it only imports a "-" why is that so ?.

I have hardcoded a ASP script, which takes out the 'Pr' column value from Navision and inserts it to MS SQL in a while statement, then it's imported corerectly.. this is not a long term solution.. because the right solution is by making a schedule for the DTS.

Have you any idea what is the best solution

Magni Hanse

----- Allan Mitchell wrote: ----

this value 1.900,00 will not go into a decimal in SQL Server



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP
www.allisonmitchell.com - Expert SQL Server Consultancy
www.SQLDTS.com - The site for all your DTS needs
I support PASS - the definitive, global communit
for SQL Server professionals - http://www.sqlpass.or


"Magni Hansen" <anonymous@discussions.microsoft.com> wrote in messag
news:C9BA82FA-A628-4F2D-B5C8-176F0597107D@microsoft.com..
[quoted text, click to view]
Allan Mitchell
2/6/2004 11:37:26 AM
what do the source values look like. This sounds like a driver issue but I
am interested to see the values

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Allan Mitchell
2/6/2004 3:53:13 PM
this value 1.900,00 will not go into a decimal in SQL Server.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Allan Mitchell
2/6/2004 4:43:50 PM
Urrgggh

Does sound odd though doesn't it.

What about using the same driver and importing to Access?

I am trying to see whether we can attribute it to DTS or a driver related
issue



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]
Navision and inserts it to MS SQL in a while statement, then it's imported
corerectly.. this is not a long term solution.. because the right solution
is by making a schedule for the DTS..
[quoted text, click to view]

AddThis Social Bookmark Button