dbTalk Databases Forums  

unexpected truncate

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


Discuss unexpected truncate in the microsoft.public.sqlserver.dts forum.



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

Default unexpected truncate - 09-06-2005 , 03:41 AM






I have a simple ODBC link where I import an "income" in dollars. There are no
errors, but when i look in my selection it has truncate some of income. It
deletes 2 zero's from the input.

For example, it suppose to be $21000, but is shows up like 210.
But $21111.11 is not effected.
And to make it even more stranger, in the preview mode of the transform data
task it shows the right results.

I have tried to several datatypes, like money, float and int. And all give
the truncated results.

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

Default Re: unexpected truncate - 09-06-2005 , 01:19 PM






What is the data source that you must use ODBC?

To help us try to recreate.

What is the Source datatype and value and what is the destination
datatype.

Allan

"red_ferrari" <red_ferrari (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have a simple ODBC link where I import an "income" in dollars. There
are no
errors, but when i look in my selection it has truncate some of income.
It
deletes 2 zero's from the input.

For example, it suppose to be $21000, but is shows up like 210.
But $21111.11 is not effected.
And to make it even more stranger, in the preview mode of the transform
data
task it shows the right results.

I have tried to several datatypes, like money, float and int. And all
give
the truncated results.


Reply With Quote
  #3  
Old   
red_ferrari
 
Posts: n/a

Default Re: unexpected truncate - 09-09-2005 , 03:19 AM



Thank you for your interest, here is some more info.

Source: Sybase database
Connection: Sybase System 11
Source Datatype: money N,M1

I tried different destination datatype, but then I saw it already went wrong
at the selection.

To recreate the problem,
1. Start up, Import and Export Data from Microsoft SQL Server.
2. In Choose a Data Source select;
Data Source: Other (ODBC Data Source)
User/System DSN: [the Sybase System connection]
If needed a username and password.
Press Next.
3. In Choose Destination
Destination: Microsoft OLE DB Provider for SQL Server
Database: tempdb
I have SQL Server Desktop Engine with mixed authentication, so I choose
Server: (local)
Select, Use Windows Authentication
Press Next.
4. In Specify Table Copy or Query
Select Copy table(s) and view(s) from the source database
Press Next.
5. Select the Sybase Database, Next.
6. Run immediately, Next
7. Press Finish.

After this I in the table, the truncated money amount.

"Allan Mitchell" wrote:

Quote:
What is the data source that you must use ODBC?

To help us try to recreate.

What is the Source datatype and value and what is the destination
datatype.

Allan

"red_ferrari" <red_ferrari (AT) discussions (DOT) microsoft.com> wrote in message
news:79FCDB4E-578A-4262-A155-5CE235E3796E (AT) microsoft (DOT) com:

I have a simple ODBC link where I import an "income" in dollars. There
are no
errors, but when i look in my selection it has truncate some of income.
It
deletes 2 zero's from the input.

For example, it suppose to be $21000, but is shows up like 210.
But $21111.11 is not effected.
And to make it even more stranger, in the preview mode of the transform
data
task it shows the right results.

I have tried to several datatypes, like money, float and int. And all
give
the truncated results.



Reply With Quote
  #4  
Old   
red_ferrari
 
Posts: n/a

Default Re: unexpected truncate - 09-09-2005 , 03:35 AM



I forgot to mention I am using
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
(Build 2195: Service Pack 4)


"red_ferrari" wrote:

Quote:
Thank you for your interest, here is some more info.

Source: Sybase database
Connection: Sybase System 11
Source Datatype: money N,M1

I tried different destination datatype, but then I saw it already went wrong
at the selection.

To recreate the problem,
1. Start up, Import and Export Data from Microsoft SQL Server.
2. In Choose a Data Source select;
Data Source: Other (ODBC Data Source)
User/System DSN: [the Sybase System connection]
If needed a username and password.
Press Next.
3. In Choose Destination
Destination: Microsoft OLE DB Provider for SQL Server
Database: tempdb
I have SQL Server Desktop Engine with mixed authentication, so I choose
Server: (local)
Select, Use Windows Authentication
Press Next.
4. In Specify Table Copy or Query
Select Copy table(s) and view(s) from the source database
Press Next.
5. Select the Sybase Database, Next.
6. Run immediately, Next
7. Press Finish.

After this I in the table, the truncated money amount.

"Allan Mitchell" wrote:

What is the data source that you must use ODBC?

To help us try to recreate.

What is the Source datatype and value and what is the destination
datatype.

Allan

"red_ferrari" <red_ferrari (AT) discussions (DOT) microsoft.com> wrote in message
news:79FCDB4E-578A-4262-A155-5CE235E3796E (AT) microsoft (DOT) com:

I have a simple ODBC link where I import an "income" in dollars. There
are no
errors, but when i look in my selection it has truncate some of income.
It
deletes 2 zero's from the input.

For example, it suppose to be $21000, but is shows up like 210.
But $21111.11 is not effected.
And to make it even more stranger, in the preview mode of the transform
data
task it shows the right results.

I have tried to several datatypes, like money, float and int. And all
give
the truncated results.



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.