5 de octubre de 2011

Escribir a un archivo de texto (ver 2)

master..xp_cmdshell 'bcp master..sysobjects out c:\file.bcp -S -U -P -c '
exec master..xp_cmdshell 'echo hello > c:\file.txt'
exec master..xp_cmdshell 'echo appended data >> c:\file.txt'
exec master..xp_cmdshell 'echo more data >> c:\file.txt'

No hay comentarios:

Publicar un comentario