Ayuda

10/09/2003 - 22:42 por luis suescun | Informe spam
Hola!! muy buenas las señoras tengan los señores...


Alguien me podria ayudar explicandome que hay de malo en lo siguiente...


drop table __midatos
create table __midatos (ccodigo varchar(6),cnombre varchar(30),cimporte int)
BULK INSERT __midatos FROM 'c:\MIARCHIVO.TXT'
WITH (FORMATFILE = 'c:\myformato.txt')

este es el archivo de formato:

7.0
3
1 SQLCHAR 0 6 '' 1 cCodigo
SQL_Latin1_General_CP1_CI_AS
2 SQLCHAR 7 37 '' 2 cNombre
SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 38 45 '' 3 cImporte
SQL_Latin1_General_CP1_CI_AS

almacenado en c:\myformato.txt

este es el archivo de datos:

050001DIANA V. SALAS.ACOSTA 26871613
050002MALO NIÑO MARIA ESTHER 49793512
050003PEREZ FRANCO MAITE 57430184
050004MONICA PATRICIA TEJEDA 57434078
050005BARROS GONZALEZ GLOIDA ISABEL 57427284
050006BRUGES MARIA FRANCISCA 40924773
050007MERCADO PELAEZ NAIMEN LISBET 56084766
050008SANCHEZ FERNANDEZ LILIANA ESTH57415446
050009FERNANDEZ MEJIA ROSA MARIA 49760091
050010YADILUZ GARCIA MORALES 49693054
050011SARIFE.S. MUGNO. S 22449391
050012ROBAYO DE PATIÑO JACKELINE 32654250
050013GL 37
050014MARIA LUISA OROZCO 49690215
040001VILLALBA SALGADO MIRIAM CONSUE22865310
040002INES MARIA DAUTT GARCIA 32872434
040003NORELIS EDITH BOLAÑOS DE A 22476642
040004DORIS MERCEDES FUENTES 32743567
040005ITALA ENEIDA RODGERS.P 32666829
040006RODRIGUEZ LUZ MARIA. 32645577
040007GRACE GUTIERREZ ORTEGA 32884990
040008CONSUELO CRISTINA GUERRERO 22616224
040009FONTALVO OSORIO YAMILE DEL S. 32705346

almacenado en c:\miarchivo.txt

y me sale este error

Servidor: mensaje 4860, nivel 16, estado 1, línea 3
No se puede insertar masivamente. El archivo 'c:\myformato.txt' no existe.
 

Leer las respuestas

#1 Isaías
11/09/2003 - 03:18 | Informe spam
¿Ya verifico que su archivo 'c:\MIARCHIVO.TXT', exista en
el disco C: de su SERVIDOR de la base de datos?, ¿acaso
esta asumiendo que el SQL esta buscando en su disco local
C:?

Saludos.

Preguntas similares