Unix Technical Forum

SQL server image data

This is a discussion on SQL server image data within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi! Guys, May be this question is little stupid but I want to clarify this. Let suppose I have ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 02:34 AM
John
 
Posts: n/a
Default SQL server image data

Hi! Guys,
May be this question is little stupid but I want to clarify this.
Let suppose I have image data field in Sql server 2000 and I am uploading
an image of 10KB(thru asp.net application).
What would be the size for that table with image data field ?
Is it 10KB or less than 10KB or more than 10KB ?

Thanks
John
www.e-classifiedad.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 02:34 AM
Simon Hayes
 
Posts: n/a
Default Re: SQL server image data


"John" <john@e-classifiedad.com> wrote in message
news:b2e792c6.0404212057.efa4e44@posting.google.co m...
> Hi! Guys,
> May be this question is little stupid but I want to clarify this.
> Let suppose I have image data field in Sql server 2000 and I am uploading
> an image of 10KB(thru asp.net application).
> What would be the size for that table with image data field ?
> Is it 10KB or less than 10KB or more than 10KB ?
>
> Thanks
> John
> www.e-classifiedad.com


Greater than 10KB, because there will be some table metadata (and I'm
assuming you have other columns in the table also). And possibly a lot more,
if you include any indexes on other columns.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 02:35 AM
Google User
 
Posts: n/a
Default Re: SQL server image data

To check the size of the image column use data_legnth(<colname>). If
this column is the content of the file then the data_length(<colname>)
should be same as file size. The winodws explorer rounds the size upto
the nearest KB. You can click on the file properties to see the actual
bytes. Hope this helps.

Thanks
john@e-classifiedad.com (John) wrote in message news:<b2e792c6.0404212057.efa4e44@posting.google.c om>...
> Hi! Guys,
> May be this question is little stupid but I want to clarify this.
> Let suppose I have image data field in Sql server 2000 and I am uploading
> an image of 10KB(thru asp.net application).
> What would be the size for that table with image data field ?
> Is it 10KB or less than 10KB or more than 10KB ?
>
> Thanks
> John
> www.e-classifiedad.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com