Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7938603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:51:18+00:00 2026-06-03T22:51:18+00:00

I am under: Windows XP MSSQL 2005 Rails 3.0.9 activerecord-sqlserver-adapter tinytds When I try

  • 0

I am under:
Windows XP
MSSQL 2005
Rails 3.0.9
activerecord-sqlserver-adapter
tinytds

When I try to retrieve content of field with xml type I encounter with issue that xml string is cut.

Thank in advance for help

This is xml that is stored in DB (sorry for Russian letters):

<application>
  <patent-type>Заявка на винахід</patent-type>
  <title>WAY</title>
  <native-number>inner123</native-number>
  <inid51 type="array" />
  <inid54>
    <x54-title-ukr>WAY</x54-title-ukr>
    <x54-title-rus />
    <x54-title-eng />
  </inid54>
  <applicants type="array">
    <applicant order="1">
      <app-person>physical</app-person>
      <app-name-ukr>Drobyazko Ob Ob</app-name-ukr>
      <app-addr-ukr>Ukrainka</app-addr-ukr>
      <app-country>UA</app-country>
      <app-kzo />
      <app-name-rus />
      <app-addr-rus />
      <app-name-eng />
      <app-addr-eng />
    </applicant>
    <applicant order="2">
      <app-person>physical</app-person>
      <app-name-ukr>Stetsenko Ser Vol</app-name-ukr>
      <app-addr-ukr>Kyiv</app-addr-ukr>
      <app-country>UA</app-country>
      <app-kzo />
      <app-name-rus />
      <app-addr-rus />
      <app-name-eng />
      <app-addr-eng />
    </applicant>
  </applicants>
  <inventors type="array">
    <inventor order="1">
      <inv-name-ukr>Drobyazko Ob Ob</inv-name-ukr>
      <inv-addr-ukr>Ukrainka</inv-addr-ukr>
      <inv-country>UA</inv-country>
      <inv-publ>Ні</inv-publ>
      <inv-name-rus />
      <inv-addr-rus />
      <inv-name-eng />
      <inv-addr-eng />
    </inventor>
    <inventor order="2">
      <inv-name-ukr>Stetsenko Ser Vol</inv-name-ukr>
      <inv-addr-ukr>Kyiv</inv-addr-ukr>
      <inv-country>UA</inv-country>
      <inv-publ>Ні</inv-publ>
      <inv-name-rus />
      <inv-addr-rus />
      <inv-name-eng />
      <inv-addr-eng />
    </inventor>
  </inventors>
  <priorities>
    <priority-cfg>
      <type>prr-none</type>
      <prr-date />
      <prr-numb />
      <is-priority-3x />
      <is-priority-62 />
      <is-priority-66 />
    </priority-cfg>
    <priority-3x type="array" />
    <priority-62 type="array" />
    <priority-66 type="array" />
  </priorities>
  <inid86>
    <x86-numb />
    <x86-date />
  </inid86>
  <inid87>
    <x87-numb />
    <x87-date />
  </inid87>
  <representative>
    <repr-name>Drobyazko Ooo KKK</repr-name>
    <repr-regnum>200</repr-regnum>
    <repr-person>legal</repr-person>
  </representative>
  <address>
    <addr-country>UA</addr-country>
    <addr-zipcode />
    <addr-region />
    <addr-town-type>м.</addr-town-type>
    <addr-town-val>Kyiv</addr-town-val>
    <addr-rayon />
    <addr-street-type>вул.</addr-street-type>
    <addr-street-val />
    <addr-building-type>буд.</addr-building-type>
    <addr-building-val />
    <addr-room-type>кв.</addr-room-type>
    <addr-room-val />
    <addr-addressee-person>physical</addr-addressee-person>
    <addr-addressee>Drobyazko Dkkd Lll</addr-addressee>
    <addr-tel>2323232</addr-tel>
    <addr-fax />
    <addr-email />
    <full-address>м. Kyiv, UA; Drobyazko Dkkd Lll</full-address>
  </address>
  <flags>
    <force-publication />
    <patent-foreign />
  </flags>
</application>

Using Eclaim.find(1).app_xml I am getting the content of field mentioned above.
Also I am writing xml field to file File.open(“c:/w.txt”, ‘wb’) { |f| f.write Eclaim.find(100003).app_xml }

Content of file (size 2070 bytes) is:

<application><patent-type>Заявка на винахід</patent-type><title>WAY</title><native-number>inner123</native-number><inid51 type="array"/><inid54><x54-title-ukr>WAY2</x54-title-ukr><x54-title-rus/><x54-title-eng/></inid54><applicants type="array"><applicant order="1"><app-person>physical</app-person><app-name-ukr>Drobyazko Ob Ob</app-name-ukr><app-addr-ukr>Ukrainka</app-addr-ukr><app-country>UA</app-country><app-kzo/><app-name-rus/><app-addr-rus/><app-name-eng/><app-addr-eng/></applicant><applicant order="2"><app-person>physical</app-person><app-name-ukr>Stetsenko Ser Vol</app-name-ukr><app-addr-ukr>Kyiv</app-addr-ukr><app-country>UA</app-country><app-kzo/><app-name-rus/><app-addr-rus/><app-name-eng/><app-addr-eng/></applicant></applicants><inventors type="array"><inventor order="1"><inv-name-ukr>Drobyazko Ob Ob</inv-name-ukr><inv-addr-ukr>Ukrainka</inv-addr-ukr><inv-country>UA</inv-country><inv-publ>Ні</inv-publ><inv-name-rus/><inv-addr-rus/><inv-name-eng/><inv-addr-eng/></inventor><inventor order="2"><inv-name-ukr>Stetsenko Ser Vol</inv-name-ukr><inv-addr-ukr>Kyiv</inv-addr-ukr><inv-country>UA</inv-country><inv-publ>Ні</inv-publ><inv-name-rus/><inv-addr-rus/><inv-name-eng/><inv-addr-eng/></inventor></inventors><priorities><priority-cfg><type>prr-none</type><prr-date/><prr-numb/><is-priority-3x/><is-priority-62/><is-priority-66/></priority-cfg><priority-3x type="array"/><priority-62 type="array"/><priority-66 type="array"/></priorities><inid86><x86-numb/><x86-date/></inid86><inid87><x87-numb/><x87-date/></inid87><representative><repr-name>Drobyazko Ooo KKK</repr-name><repr-regnum>200</repr-regnum><repr-person>legal</repr-person></representative><address><addr-country>UA</addr-country><addr-zipcode/><addr-region/><addr-town-type>м.</addr-town-type><addr-town-val>Kyiv</addr-town-val><addr-rayon/><addr-street-type>вул.</addr-street-type><addr-street-val/><addr-building-type>буд.</addr-building-type><addr-building-val/><addr-room-type>кв.</addr-room-type><addr-room-val/><addr-addressee-person>physical</addr-addressee-

It looks like Rails truncates content of xml field to 2070 bytes.

Could Someone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:51:20+00:00Added an answer on June 3, 2026 at 10:51 pm

    I see this question a lot and there is a really simple answer. SQL Server has a setting called TEXTSIZE (1) that is set to a relatively small size for DBLIB/TinyTDS connections. Here recently I made the adapter set this to a size that would mimic a default ODBC connection (2). We also have a section in our README (3) for older versions of the adapter that allow you to configure the connection so you can do, among other things, set the TEXTSIZE too.

    • (1) http://msdn.microsoft.com/en-us/library/ms186238.aspx
    • (2) https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/commit/8c9f89e0d7d4b32ae10a011cb2bc2c24de13fe1a
    • (3) https://github.com/rails-sqlserver/activerecord-sqlserver-adapter#configure-connection–app-name
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a new rails application which I have created under Windows 7 by
Under Windows, I have used a program called Dependency Walker to examine the libraries
Under windows, this F# code will extend a file from say 12 bytes out
I am creating screenshots under Windows and using the LockBits function from GDI+ to
I have IIS running under Windows XP. I have .html files with classic ASP
Trying to build Xuggler under Windows. Xuggler is core native code functions wrapped into
I have a game that currently runs under Windows and Mac OS X and
Can I get a threads suspend count under Windows CE, using C or Visual
I am going to program a GUI under windows (will be about 10,000 line
I wrote a game years ago (under Windows 95) in Pascal. Since then over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.