SQL Server 2008 Filestream Question - Anyone familiar?

Hello all,

So I setup the filestream attribute on a server and it looks setup correct.   I have a filegroup etc.    The question I have is the setup entailed still using a varbinary(max) along with unique Guid column.  I am noticing the files get created on the filesystem itself as expected.   One of the database guys though did a length check on the content field I have which is the varbinary(max) along with filestream attribute.   The length of that field coming back through query analyzer is the same size as the physical file being stored.   So for example a 4 meg file showing the length of that content field as 4 meg as well as the file is on the server.  

Am I correct in my assumption and some reading that although the length is showing 4 meg the actual file size is not growing on the data file itself it is showing that via the filegroup down to the physical file?   I am just trying to explain that we are not duplicating the size as it does look that way if you do a length check of the content filestream field.


Thanks all.
sbornstein2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sameer2010Commented:
I believe, DATALENGTH would give you length needed based on the actual data saved on the file server and not based on the column data.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.