dbTalk Databases Forums  

DTS (DBTYPE_NUMERIC) error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS (DBTYPE_NUMERIC) error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Magni hansen
 
Posts: n/a

Default DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 04:46 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 "-
" imported into 'Pr' column.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 05:37 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


"Magni hansen" <mjh (AT) farodane (DOT) fo> wrote

Quote:
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 "-
" imported into 'Pr' column.



Reply With Quote
  #3  
Old   
Magni Hansen
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 09:01 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


"Magni hansen" <mjh (AT) farodane (DOT) fo> wrote

Quote:
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 "-
" imported into 'Pr' column.




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 09:53 AM



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


"Magni Hansen" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
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


"Magni hansen" <mjh (AT) farodane (DOT) fo> wrote in message
news:bbf801c3ec9e$7fb8a0e0$a501280a (AT) phx (DOT) gbl...
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 "-
" imported into 'Pr' column.






Reply With Quote
  #5  
Old   
Magni Hansen
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 10:06 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 (AT) discussions (DOT) microsoft.com> wrote in messag
news:C9BA82FA-A628-4F2D-B5C8-176F0597107D (AT) microsoft (DOT) com..
Quote:
The source value is Pr BCD(15,5) NOT NULL, viewing the value insid
Navision it looks like: 1.900,0
The driver i am using is: C/ODBC 32 bit, 2.10.00.1
I have downloaded version C/ODBC, 2.50 driver, but this was in conflic
with company server driver, so i am still using version 2.10.00.1
Magni Hanse
----- Allan Mitchell wrote: ----
what do the source values look like. This sounds like a driver issu
but
am interested to see the value
--
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" <mjh (AT) farodane (DOT) fo> wrote in messag
news:bbf801c3ec9e$7fb8a0e0$a501280a (AT) phx (DOT) gbl..
I am using DTS for import data from Navision to MS SQL DB
but i am getting this error when trying to import a BC
(15,5) into the MS SQL
Error msg: Insert error... ('Pr',DBTYPE_NUMERIC), statu
12: Invalid status for bound data
If i change the decimal(15,5) to varchar(30), i only get "
" imported into 'Pr' column


Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-06-2004 , 10:43 AM



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


"Magni Hansen" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
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..
Quote:
Have you any idea what is the best solution ?

Magni Hansen

----- 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 community
for SQL Server professionals - http://www.sqlpass.org


"Magni Hansen" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:C9BA82FA-A628-4F2D-B5C8-176F0597107D (AT) microsoft (DOT) com...
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
"Magni hansen" <mjh (AT) farodane (DOT) fo> wrote in message
news:bbf801c3ec9e$7fb8a0e0$a501280a (AT) phx (DOT) gbl...
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 "-
" imported into 'Pr' column.




Reply With Quote
  #7  
Old   
Magni Hansen
 
Posts: n/a

Default Re: DTS (DBTYPE_NUMERIC) error - 02-09-2004 , 02:51 AM



Access dont allow the precition of the decimal to be imported
Well that leaves me with one option.. manualy import through via ASP.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.