Solved

Text exported from Sql server 7 truncated

Posted on 2014-10-31
7
138 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now