Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Image Data Type

Author  Topic 

amit_gtbit
Starting Member

3 Posts

Posted - 2007-08-16 : 10:38:39
pls. Help!
I am not getting that how to use the image datatype in sql server 2000
when i am inserting text to it and on retrieving it is showing hexadecimal string ...
I want to know all of your views on the usage of image datatype..
Thanks...

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-16 : 11:17:08
image datatype is used to store binary data.

for large text use varchar(8000) or text datatype.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

amit_gtbit
Starting Member

3 Posts

Posted - 2007-08-16 : 15:16:26
But i want to know that what is the purpose of introducing image datatype.
Their should be some history for it's name as image because if store the name of the image in the database that doesn't provide security to the image data so,
how it enforces security of Data.....
pls reply .... and clear my doubts....... thanks
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-16 : 15:38:17
i'm not quite sure what you're asking.
the name "image" probably came from sybase's predecessor to sql server (i could be wring here)

do not relate Image datatype with storing pictures in the database.
you can save any kind of file in the Image datatype. audio, image, zip... anything that can be converted to binary.

what problem are you having exactly?



_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-16 : 15:41:53
IMAGE datatype can be used to store large binary data of sizes greater than 8000 bytes, things you can't store with the TEXT datatype such as CHAR(0).



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-17 : 02:18:17
As I specified in the other thread, refer
http://www.aspfaq.com/show.asp?id=2149

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -