We've got an application which generates letters to clients.
I've got a new requirement to "catch" any HIPAA letters going to a non-USA mailing addresses.
The standard HIPAA letter is stored in RTF format on a network share, but this letter may be modified at any time.
I have a SQLServer 2000 stored procedure that inserts/updates letters.
I was thinking that, within the stored procedure, I could attempt to compare the letter body with this standard HIPAA file by maybe using sp_OACreate to create an instance of the FileSystemObject COM object and using it to read the standard letter into a stored procedure variable.
Then I was thinking this would be a terrible idea.
Performance is probably not a big concern since we are talking maybe 1000 letters per day. Permissions are probably not a concern since users access SQLServer with their AD permissions and all also access to the standard HIPAA letter.
Thoughts?
A GoogleFight:
sp_OACreate bad idea yielded 272 hits.
sp_OACreate good idea yielded 799 hits.
I've got a new requirement to "catch" any HIPAA letters going to a non-USA mailing addresses.
The standard HIPAA letter is stored in RTF format on a network share, but this letter may be modified at any time.
I have a SQLServer 2000 stored procedure that inserts/updates letters.
I was thinking that, within the stored procedure, I could attempt to compare the letter body with this standard HIPAA file by maybe using sp_OACreate to create an instance of the FileSystemObject COM object and using it to read the standard letter into a stored procedure variable.
Then I was thinking this would be a terrible idea.
Performance is probably not a big concern since we are talking maybe 1000 letters per day. Permissions are probably not a concern since users access SQLServer with their AD permissions and all also access to the standard HIPAA letter.
Thoughts?
A GoogleFight:
sp_OACreate bad idea yielded 272 hits.
sp_OACreate good idea yielded 799 hits.