Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Teradata truncating character fields when updated from Access

Posted on 2007-11-29
5
Medium Priority
?
995 Views
Last Modified: 2009-07-29
I'm trying to run a simple append query in Microsoft Access.  The query selects 3 character fields in a local table and appends them to a linked table (via ODBC) on a Teradata server - no where clause, conditionals, or data transformation.  The structure of the fields in the linked table is equivalent to that of the local table, as far as I can tell.  Local table has text fields of length 11, 15, and 15 characters; Teradata table has corresponding Varchar fields of length 11, 15, and 15.

The query completes successfully... but the resulting data in the Teradata table is truncated to half of the character length of the field. For example, a text value 'Enterprise' in the first field in the local table is stored in the Teradata table as 'Enter'.   This is consistent for all the character fields.  I tried an integer field as a test; this appears to append successfully without any truncation.

Is there some encoding issue I need to be aware of when moving data between MS-Access and Teradata?
0
Comment
Question by:Mckenzma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 75
ID: 20375277
Possibly this:

See this link:

http://allenbrowne.com/ser-63.html

mx
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 20375290
Make sure your TeraData engine is storing as Unicode ...
0
 

Author Comment

by:Mckenzma
ID: 20375376
How can I tell if the TeraData engine is storing as Unicode?
0
 
LVL 85
ID: 20375642
I have no idea; I'd assume there is some sort of management interface for the TeraData db (something like Enterprise Manager for SQL Server) where you could determine how the db is storing data.
0
 

Author Comment

by:Mckenzma
ID: 20376078
I found something that worked.  In the ODBC Data Source Administrator, I changed the session character set for the Teradata db from ASCII to UTF8.   The full character values are now stored in the Teradata db when I run the query.

Strangely, this change has destroyed my ability to browse linked Teradata tables from Access.  Every field displays "#Deleted".  Not of immediate importance to me... but curious.

I'll award the points.  Thanks for the idea.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question