How to write a SQL statement to return the size of media objects

This article describes how to write a SQL statement to return the size of media objects. Media attached to constituent records are stored in the MEDIA SQL table. The sizes can be determined by using the DataLength function.

Article
Number:53695

Products:

RODBA_RE

select datalength(OBJECT), * from MEDIA order by datalength(OBJECT) desc

Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.