Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/08/2011, 13:35
pxko_xt
 
Fecha de Ingreso: julio-2011
Mensajes: 19
Antigüedad: 12 años, 9 meses
Puntos: 1
Pregunta Respuesta: Concatenar a nombre la fecha del dia

Cita:
Iniciado por Libras Ver Mensaje
Select GetDate()

Declare @fecha datetime
set @fecha=''
selecT @fecha=GETDATE()

bulk insert tcsv
from 'C:\daily\papercut-print-log-'+ convert(varchar(20),@fecha) + '.csv'
with
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
}


Prueba con esto :)

Saludos!



OK ya lo probeee y me marka lo siguinete.....

Msg 102, Level 15, State 1, Line 8
Incorrect syntax near '+'.
Msg 319, Level 15, State 1, Line 9
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '}'.


espero me puedas ayudar esque en todos mis instenntos kasi me marka lo mismo...