Ver Mensaje Individual
  #4  
Antiguo 28-04-2011
luchifer luchifer is offline
No confirmado
 
Registrado: jul 2007
Ubicación: Santa Cruz - Bolivia
Posts: 50
Reputación: 0
luchifer Va por buen camino
Exportar e importar desde SQL

Utiliza el comando BCP desde el comand prompt o ejecutalo como comando externo, es genial. Te paso un formato reducido que me funciono perfectamente


microemp es la base de datos, linvfis es la tabla e invent.txt el archivo plano
lmovpro tambien es otra tablas

//OUT para bajar IN para subir

Formato simple //bcp microemp..linvfis out "invent.txt" -c -T

Formato con sentencia sql //bcp "select * from microemp..lmovpro where fecha='26/03/2011'" queryout movpro.txt -c -T
Responder Con Cita