You are here: Re: Sum of Column of Blob type « MsSQL Server « IT news, forums, messages
Re: Sum of Column of Blob type

Posted by Plamen Ratchev on 04/10/07 21:46

"Erland Sommarskog" <esquel@sommarskog.se> wrote in message
news:Xns990F2D6DACA2Yazorman@127.0.0.1...
>
> you don't say whether you tried this, but I can see that it will fail
> with integer overflow. Howeever this should work:
>
> SELECT SUM(cast(datalength(document) as bigint)) FROM plan_report
>

Good catch Erland! I didn't see the big number and the overflow...

Plamen Ratchev
http://www.SQLStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация