tsql - SQL Server- How to write variables and query results to Text file? -


how write using t-sql, variable values , query results text file, want keep appending.

you can use sql clr write whatever want out file. can either code or can use sql# library (i author , not free -- function -- not expensive either) , use file_writefile function write out text. allows appending data. library free functions not file system functions. can found at: http://www.sqlsharp.com/

if want try coding yourself, found example basic concept think asking for: http://www.mssqltips.com/tip.asp?tip=1662


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -