How to write or append to text file using sql?

Posted by aron on Stack Overflow See other posts from Stack Overflow or by aron
Published on 2010-05-12T11:38:12Z Indexed on 2010/05/12 11:44 UTC
Read the original article Hit count: 151

Filed under:
|

Hello,

in short i need to convert following C# code into SQL stored procedure

    foreach (var e in Entity)
    {
        if (File.Exists(e.Filename))
            File.AppendAllText(e.Filename,e.Content);
        else
            File.WriteAllText(e.Filename, e.Content);
    }

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about file-io