Hi anexiole,

Since nobody else has answered your question, I'll take a shot at it...

My guess is that a "blob" in ms-sql has an internal length of 255, and somehow your "Microsoft Enterprise console" is simply reformatting it, to remove extra spaces.

You haven't shown what your output looks like, so it's hard to be sure, but if that is what's happening, how about just doing the same thing in Perl?  Try something like the following:

foreach my $elem(%{$res}) { if (defined($res->{$elem}->{'IssueText'})) { my $result = $res->{$elem}->{'IssueNo'}; $result =~ s/\s+$//; # Delete trailing whitespace debug (20,"$result:Current IssueText-\"$result\"\n|); } }

(Note that I've cleaned up the multiply-concatenated qq syntax which made things a bit more difficult to read).

Does that give you something more like what you're getting with "Microsoft Enterprise console"?


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

In reply to Re: DBI::Sybase -retrieving BLOB values from ms-sql question by liverpole
in thread DBI::Sybase -retrieving BLOB values from ms-sql question by anexiole

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.