Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/06/2011, 07:27
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Ejemplos de BULK INSERT

INSERT INTO tabla_a insertar datos
(campos)
SELECT campos
FROM OPENROWSET(BULK 'path_archivo de texto',--File that are procesed
FORMATFILE='path_archivo_de_formato',--Format file, that file contains the info of the columns that are used in the fill of the table
FIRSTROW = 1--Row where the info start
) as t2


Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me