I have a document table in a SQL Server 2008 R2 database with a structure like this:
id | date_created | file_path | file_type
---+--------------+-----------------------+--------------------
1 | 2016-11-14 | \\server\docs\123.doc | application/msword
2 | 2016-11-15 | \\server\imgs\456.png | image/png
I need to determine the file size of a subset of documents. So I have a query that will select certain rows from the document table (based on their ID) and I would need to find out what the total file size is of that set of documents. I did some Googling (before coming here of course) but most things I can find related to files/SQL is about log file sizes which is obviously NOT what I want.
Any and all help is appreciated as always! Thanks!