Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/04/2012, 09:33
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: Problema con uso de FIRSTROW

estas seguro de que en tu archivo la primer columna es la 1 porque no pruebas moviendo este valor empezando con 3 y ves que valores mete y asi sucesivamente o prueba con esto:

Código SQL:
Ver original
  1. SELECT *
  2.       FROM  OPENROWSET(BULK  'C:\folder\store\18042012170710.csv',--File that are procesed
  3.       FORMATFILE='c:\format.Xml',--Format file, that file contains the info of the columns that are used in the fill of the table
  4.       FIRSTROW =2 --Row where the info start
  5.        ) AS t2

para que veas que valores obtiene el bulk insert

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