Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: CAST Something AS M (binary) - ?
Thread ID: 143693 Message ID: 143803 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Friday, August 31, 2007 4:42:08 PM         
   


> >
> > Hi Ilya,
> >
> > I wouldn't expect NOCPTRANS clause to work as a parameter to the CAST() func. :) Try without, see if you get what you expect. If you really, really need to make sure that you don't have code page translation in your field, I think that you should first create a temp table with CREATE CURSOR and use it in your SQL command.
> >
> > Regards,
> > Yull
>
>
> Or use BLOB field:
>
> CAST(Something as BLOB)
> 

>
> -----------------
> Borislav Borissov
>
> Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
> The only thing normal about database guys is their tables.

Borislav,

I guess you have only Yull's response read, and (s)he has a good chunk of my original post cut out. Here it is:
"Out of bitter desperation, I even tried type VarBinary, i.e.
CAST(Something AS Q(LEN(Something)))
- but that gave me, well, binary data (and I need readable string, mind you).

Out of even more biiter desperation, I even tried type VarChar, i.e.
CAST(Something AS V(LEN(Something)))
- but that gave me just ordinary field of Char type with that data (and CR's appeared as those black rectangles, as they always do).

Out of total desperation, I even tried
CAST(Something AS W)
the result was the same as with Q, albeit in a Memo-like Blob field - and even my angelic patience runeth out. (|:<)"

So, since it is a text, not an image, BLOB is not an option here. (:<)

Regards,

Ilya

ENTIRE THREAD

CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 12:04:37 AM
RE: CAST Something AS M (binary) - ? Posted by Yull67 @ 8/31/2007 2:03:34 AM
RE: CAST Something AS M (binary) - ? Posted by Borislav Borissov @ 8/31/2007 9:00:13 AM
RE: CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 4:42:08 PM
RE: CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 4:33:42 PM
RE: CAST Something AS M (binary) - ? Posted by Yull67 @ 8/31/2007 4:54:00 PM
RE: CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 5:27:50 PM
RE: CAST Something AS M (binary) - ? Posted by Yull67 @ 8/31/2007 6:05:46 PM
RE: CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 6:33:09 PM
RE: CAST Something AS M (binary) - ? Posted by Cetin Basoz @ 8/31/2007 5:57:56 PM
RE: CAST Something AS M (binary) - ? Posted by Ilya Rabyy @ 8/31/2007 6:09:57 PM
RE: CAST Something AS M (binary) - ? Posted by Cetin Basoz @ 8/31/2007 11:32:32 PM