In MySQL you can quite simply read a file with SELECT load_file('foo.txt')
and write to a file with SELECT 'text' INTO DUMPFILE 'foo.txt'
.
I am looking for a way to do this in MSSQL 2000 without using any external tools, just with queries or stored procedures.