Jheff,
There are several apps that do this https://marketplace.atlassian.com/search?query=smart%20attachments That would be a better route then SQL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.