dbTalk Databases Forums  

contents of image fields

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss contents of image fields in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Koral
 
Posts: n/a

Default contents of image fields - 07-22-2007 , 07:33 AM






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



Reply With Quote
  #2  
Old   
Dan Guzman
 
Posts: n/a

Default Re: contents of image fields - 07-22-2007 , 07:43 AM






Quote:
Is there any funciotn which gives me information about contents of image
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 (AT) op (DOT) pl> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.