Wednesday, March 7, 2012

contents of image fields

Hi,

I have a SELECT FROM TABLE query and in that table there is a field of type
image. Result of this select goes throug internet do its destination. But in
fact I need only to know if in this field is or not an image. Is there any
funciotn which gives me information about contents of image fields?

Regards, PaulIs there any funciotn which gives me information about contents of image

Quote:

Originally Posted by

fields?


The only thing SQL Server knows about image column contents is the
DATALENGTH. It is up to the application to interpret the contents. If you
store data of different types in the same column (not a good design, IMHO),
you'll need another column to indicate the type.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Koral" <koral00@.op.plwrote in message news:f7vir2$nur$1@.news.onet.pl...

Quote:

Originally Posted by

Hi,
>
I have a SELECT FROM TABLE query and in that table there is a field of
type image. Result of this select goes throug internet do its destination.
But in fact I need only to know if in this field is or not an image. Is
there any funciotn which gives me information about contents of image
fields?
>
Regards, Paul
>

No comments:

Post a Comment