Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/11/2014, 12:13
Avatar de iislas
iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 16 años, 9 meses
Puntos: 180
Respuesta: Guardar Procedimiento Almacenado en un txt

Claro con BCP

Código SQL:
Ver original
  1. DECLARE @strbcpcmd NVARCHAR(MAX)
  2. SET @strbcpcmd = 'bcp  "EXEC asmary..usp_Contract_SelectByEmpId -1,1" queryout "C:\test.txt" -w -C OEM -t"$" -T -S'+@@servername    
  3. EXEC master..xp_cmdshell @strbcpcmd
__________________
MCTS Isaias Islas