Solved

Text exported from Sql server 7 truncated

Posted on 2014-10-31
7
151 Views
Last Modified: 2014-11-03
Hi,
I'm migrating a legacy sql 7/VB app... Several Text fields defined length 16, hold plain and rtf tagged text variously.

It appears that the rich text field in the VB app successfully display the text,  plain or rtf,  at its full length as entered.

However when I export using Dts to Csv,  or access the SQL db using Access 2003 the text,  plain or in rtf tagged form,  truncated.

I've seen articles referring to a 255 character limit without specific syntax when storing text in SQL server older versions,  and wonder if same could apply to  export?

I've seen another article that refers to 1024 setting in odbc bindings,  but this seems inconsistent with Dts.

I've seen another article which refers to special characters causing text processing issues which would seem  relevant with the rtf tags being present.

It is possible to copy and paste the text using Windows clipboard..  But there are too many records to be practical.

Any guidance or suggestions gratefully received...
0
Comment
Question by:Ringah
  • 4
  • 3
7 Comments
 
LVL 13

Expert Comment

by:Norm Dickinson
ID: 40415650
Perhaps you could export those fields to the new database using a different field type, such as a memo type of field?
0
 

Author Comment

by:Ringah
ID: 40415664
Thanks for the feedback Norm... The server doesn't seem to support memo,  too old,  char only seems to be 8000 bytes,  but user defined might run...
0
 
LVL 13

Accepted Solution

by:
Norm Dickinson earned 500 total points
ID: 40415683
Or maybe export to a regular text file or RTF file and then import to the new database from the file?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:Ringah
ID: 40415690
Thanks Norm,  will try both..
0
 

Author Comment

by:Ringah
ID: 40419285
Turns out to be related to Dts.... Thanks for the pointer Norm,  if I hadn't have been using such an old version of SQL server you'd be spot on.
0
 
LVL 13

Expert Comment

by:Norm Dickinson
ID: 40419296
Thanks, Ringah. I hope it helped a little anyway. Feel free to accept the answer and award pointsif you don't mind and re-post the question with reference to what you tried in this question, if you need further information, as these questions do not get as much attention once we have interacted on them. You have an unlimited number of points and questions available as this is a time-based subscription. As experts, our only reward for helping - other than the satisfaction - is the point award for each question answered. See "The Experts" below - and then click on how to become an expert to see. You may have something to contribute and in doing so you may earn your membership here for free. It's worth looking into. Thanks and good luck!
0
 

Author Comment

by:Ringah
ID: 40419545
To expand,  and widen the horizons for anyone else who comes across similar problems,  for more recent versions of SQL migrating to a different file type,  whether larger or offering rtf support is probably the first course of action for anyone facing similar issues...

For older versions or where specific manipulation is required,  Dts packages offer a lot of options in both respects...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

685 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