• Aren't you missing a

    USE [ErrorLogStorage]

    GO

    in the database creation script? When I ran it, it created the ErrLogData table in master...

    Apart from that, a smart solution: why struggle with text files while you have a database 🙂