Victor Koch

06/08/2007 - 23:56 por Junior | Informe spam
Podrias postear nuevamente el link, ya que esta cortado
Gracias
http://support.microsoft.com/search...4&spid(
52&query=xml&adv

Un saludo, Víctor Koch.


"Junior" <Junior@discussions.microsoft.com> escribió en el mensaje
news:743643BE-D9BB-4365-B90C-C686AD1A7733@microsoft.com...

He intentado cargar el archivo (DATA.xml) a SQL Server 2000 usando el
archivo esquema Schema.xml , pero cuando termina la carga nada se ha


cargado

y no tengo ningun error, pero si elimino el namespace



xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs
d"


Lo puedo cargar sin problemas, como cargo el archivo sin eliminar el
namespace, ya que el tamaño del archivo es mas de 1 gibabyte

Procedimiento de caga load.vbs

set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload")
objBL.ConnectionString = "provider=SQLOLEDB.1;data
source=localhost;database=miDatabase;uid=sa;pwd=;"
objBL.ErrorLogFile = "C:\error.log"
objBL.Execute "C:\Schema.xml", "C:\Data.xml"
set objBL=Nothing


Archivo esquema Schema.xml

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema">
<xsd:element name="Registro" sql:relation="Sufisinterno" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Tipo" type="xsd:string" />
<xsd:element name="Identificacion" type="xsd:string" />
<xsd:element name="PrimerApellido" type="xsd:string" />
<xsd:element name="SegundoApellido" type="xsd:string" />
<xsd:element name="Nombre" type="xsd:string" />
<xsd:element name="Genero" type="xsd:string" />
<xsd:element name="PaisNacimiento" type="xsd:string" />
<xsd:element name="tmpFechaNaci" type="xsd:string" />
<xsd:element name="IdentificacionTitular" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

Archivo de datos data.xml

<?xml version="1.0" encoding="utf-8"?><PadronInternoPersonasFisicas



xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs
d"><Registro><Tipo>1</Tipo><Identificacion>0031977420010001709</Identificaci
on><PrimerApellido>FRESNEDA</PrimerApellido><SegundoApellido>MORENO</Segundo
Apellido><Nombre>HAROLD




AMED</Nombre><Genero>1</Genero><FechaNacimiento>13/09/1978</FechaNacimiento>
<PaisNacimiento>CO</PaisNacimiento><IdentificacionTitular>003197742001000170
9</IdentificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>
003860579</Identificacion><PrimerApellido>GONZALEZ</PrimerApellido><SegundoA
pellido>NIETO</SegundoApellido><Nombre>MARIA

DEL



CARMEN</Nombre><Genero>2</Genero><FechaNacimiento>15/10/1965</FechaNacimient
o><PaisNacimiento>CU</PaisNacimiento><IdentificacionTitular>C386579</Identif
icacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>013478458<
/Identificacion><PrimerApellido>FIGUEROA</PrimerApellido><SegundoApellido>VA
NEGAS</SegundoApellido><Nombre>JOSE

RAUL</Nombre><Genero>1</Genero><FechaNacimiento /><PaisNacimiento



/><IdentificacionTitular>013478458</IdentificacionTitular></Registro><Regist
ro><Tipo>1</Tipo><Identificacion>038041262</Identificacion><PrimerApellido>S
ALAZAR</PrimerApellido><SegundoApellido

/><Nombre>BLANCA



ESTELLA</Nombre><Genero>2</Genero><FechaNacimiento>26/03/2007</FechaNacimien
to><PaisNacimiento>US</PaisNacimiento><IdentificacionTitular>038041262</Iden
tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0438513
79</Identificacion><PrimerApellido>SOTO</PrimerApellido><SegundoApellido>CAL
DERON</SegundoApellido><Nombre>MARIO




ALBERTO</Nombre><Genero>1</Genero><FechaNacimiento>22/01/1982</FechaNacimien
to><PaisNacimiento>CR</PaisNacimiento><IdentificacionTitular>043851379</Iden
tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0461648
14</Identificacion><PrimerApellido>CROSSTY</PrimerApellido><SegundoApellido

/><Nombre>KEITH



ANTONIO</Nombre><Genero>1</Genero><FechaNacimiento>18/02/1957</FechaNacimien
to><PaisNacimiento




/><IdentificacionTitular>046164814</IdentificacionTitular></Registro><Regist
ro><Tipo>1</Tipo><Identificacion>046214376</Identificacion><PrimerApellido>G
ONZALEZ</PrimerApellido><SegundoApellido




/><Nombre>ENRIQUE</Nombre><Genero>1</Genero><FechaNacimiento>27/02/1937</Fec
haNacimiento><PaisNacimiento




/><IdentificacionTitular>046214376</IdentificacionTitular></Registro><Regist
ro><Tipo>1</Tipo><Identificacion>064RE001076001999</Identificacion><PrimerAp
ellido>MONTENEGRO</PrimerApellido><SegundoApellido>SANCHEZ</SegundoApellido>
<Nombre>LIDIA</Nombre><Genero>2</Genero><FechaNacimiento>28/10/1967</FechaNa
cimiento><PaisNacimiento




/><IdentificacionTitular>064RE001076001999</IdentificacionTitular></Registro

</PadronInternoPersonasFisicas>

Preguntas similare

Leer las respuestas

#1 Victor Koch
07/08/2007 - 14:23 | Informe spam
Si, aca va uno mas corto

http://tinyurl.com/2vfvh6

Un saludo, Víctor Koch.


"Junior" escribió en el mensaje
news:
Podrias postear nuevamente el link, ya que esta cortado
Gracias



http://support.microsoft.com/search...4&spid(
52&query=xml&adv>

Un saludo, Víctor Koch.


"Junior" escribió en el mensaje
news:
> He intentado cargar el archivo (DATA.xml) a SQL Server 2000 usando el
> archivo esquema Schema.xml , pero cuando termina la carga nada se ha
cargado
> y no tengo ningun error, pero si elimino el namespace
>



xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs
d"
>
> Lo puedo cargar sin problemas, como cargo el archivo sin eliminar el
> namespace, ya que el tamaño del archivo es mas de 1 gibabyte
>
> Procedimiento de caga load.vbs
>
> set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload")
> objBL.ConnectionString = "provider=SQLOLEDB.1;data
> source=localhost;database=miDatabase;uid=sa;pwd=;"
> objBL.ErrorLogFile = "C:\error.log"
> objBL.Execute "C:\Schema.xml", "C:\Data.xml"
> set objBL=Nothing
>
>
> Archivo esquema Schema.xml
>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:sql="urn:schemas-microsoft-com:mapping-schema">
> <xsd:element name="Registro" sql:relation="Sufisinterno" >
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="Tipo" type="xsd:string" />
> <xsd:element name="Identificacion" type="xsd:string" />
> <xsd:element name="PrimerApellido" type="xsd:string" />
> <xsd:element name="SegundoApellido" type="xsd:string" />
> <xsd:element name="Nombre" type="xsd:string" />
> <xsd:element name="Genero" type="xsd:string" />
> <xsd:element name="PaisNacimiento" type="xsd:string" />
> <xsd:element name="tmpFechaNaci" type="xsd:string" />
> <xsd:element name="IdentificacionTitular" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
>
> Archivo de datos data.xml
>
> <?xml version="1.0" encoding="utf-8"?><PadronInternoPersonasFisicas
>



xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs



d"><Registro><Tipo>1</Tipo><Identificacion>0031977420010001709</Identificaci



on><PrimerApellido>FRESNEDA</PrimerApellido><SegundoApellido>MORENO</Segundo
Apellido><Nombre>HAROLD
>



AMED</Nombre><Genero>1</Genero><FechaNacimiento>13/09/1978</FechaNacimiento>



<PaisNacimiento>CO</PaisNacimiento><IdentificacionTitular>003197742001000170



9</IdentificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>



003860579</Identificacion><PrimerApellido>GONZALEZ</PrimerApellido><SegundoA
pellido>NIETO</SegundoApellido><Nombre>MARIA
> DEL
>



CARMEN</Nombre><Genero>2</Genero><FechaNacimiento>15/10/1965</FechaNacimient



o><PaisNacimiento>CU</PaisNacimiento><IdentificacionTitular>C386579</Identif



icacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>013478458<



/Identificacion><PrimerApellido>FIGUEROA</PrimerApellido><SegundoApellido>VA
NEGAS</SegundoApellido><Nombre>JOSE
> RAUL</Nombre><Genero>1</Genero><FechaNacimiento /><PaisNacimiento
>



/><IdentificacionTitular>013478458</IdentificacionTitular></Registro><Regist



ro><Tipo>1</Tipo><Identificacion>038041262</Identificacion><PrimerApellido>S
ALAZAR</PrimerApellido><SegundoApellido
> /><Nombre>BLANCA
>



ESTELLA</Nombre><Genero>2</Genero><FechaNacimiento>26/03/2007</FechaNacimien



to><PaisNacimiento>US</PaisNacimiento><IdentificacionTitular>038041262</Iden



tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0438513



79</Identificacion><PrimerApellido>SOTO</PrimerApellido><SegundoApellido>CAL
DERON</SegundoApellido><Nombre>MARIO
>



ALBERTO</Nombre><Genero>1</Genero><FechaNacimiento>22/01/1982</FechaNacimien



to><PaisNacimiento>CR</PaisNacimiento><IdentificacionTitular>043851379</Iden



tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0461648



14</Identificacion><PrimerApellido>CROSSTY</PrimerApellido><SegundoApellido
> /><Nombre>KEITH
>



ANTONIO</Nombre><Genero>1</Genero><FechaNacimiento>18/02/1957</FechaNacimien
to><PaisNacimiento
>



/><IdentificacionTitular>046164814</IdentificacionTitular></Registro><Regist



ro><Tipo>1</Tipo><Identificacion>046214376</Identificacion><PrimerApellido>G
ONZALEZ</PrimerApellido><SegundoApellido
>



/><Nombre>ENRIQUE</Nombre><Genero>1</Genero><FechaNacimiento>27/02/1937</Fec
haNacimiento><PaisNacimiento
>



/><IdentificacionTitular>046214376</IdentificacionTitular></Registro><Regist



ro><Tipo>1</Tipo><Identificacion>064RE001076001999</Identificacion><PrimerAp



ellido>MONTENEGRO</PrimerApellido><SegundoApellido>SANCHEZ</SegundoApellido>



<Nombre>LIDIA</Nombre><Genero>2</Genero><FechaNacimiento>28/10/1967</FechaNa
cimiento><PaisNacimiento
>



/><IdentificacionTitular>064RE001076001999</IdentificacionTitular></Registro
></PadronInternoPersonasFisicas>
>




Respuesta Responder a este mensaje
#2 Junior
08/08/2007 - 21:44 | Informe spam
gracias

"Victor Koch" wrote:

Si, aca va uno mas corto

http://tinyurl.com/2vfvh6

Un saludo, Víctor Koch.


"Junior" escribió en el mensaje
news:
> Podrias postear nuevamente el link, ya que esta cortado
> Gracias
>
http://support.microsoft.com/search...4&spid(
> 52&query=xml&adv> >
>
> Un saludo, Víctor Koch.
>
>
> "Junior" escribió en el mensaje
> news:
> > He intentado cargar el archivo (DATA.xml) a SQL Server 2000 usando el
> > archivo esquema Schema.xml , pero cuando termina la carga nada se ha
> cargado
> > y no tengo ningun error, pero si elimino el namespace
> >
>
xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs
> d"
> >
> > Lo puedo cargar sin problemas, como cargo el archivo sin eliminar el
> > namespace, ya que el tamaño del archivo es mas de 1 gibabyte
> >
> > Procedimiento de caga load.vbs
> >
> > set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload")
> > objBL.ConnectionString = "provider=SQLOLEDB.1;data
> > source=localhost;database=miDatabase;uid=sa;pwd=;"
> > objBL.ErrorLogFile = "C:\error.log"
> > objBL.Execute "C:\Schema.xml", "C:\Data.xml"
> > set objBL=Nothing
> >
> >
> > Archivo esquema Schema.xml
> >
> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:sql="urn:schemas-microsoft-com:mapping-schema">
> > <xsd:element name="Registro" sql:relation="Sufisinterno" >
> > <xsd:complexType>
> > <xsd:sequence>
> > <xsd:element name="Tipo" type="xsd:string" />
> > <xsd:element name="Identificacion" type="xsd:string" />
> > <xsd:element name="PrimerApellido" type="xsd:string" />
> > <xsd:element name="SegundoApellido" type="xsd:string" />
> > <xsd:element name="Nombre" type="xsd:string" />
> > <xsd:element name="Genero" type="xsd:string" />
> > <xsd:element name="PaisNacimiento" type="xsd:string" />
> > <xsd:element name="tmpFechaNaci" type="xsd:string" />
> > <xsd:element name="IdentificacionTitular" type="xsd:string" />
> > </xsd:sequence>
> > </xsd:complexType>
> > </xsd:element>
> > </xsd:schema>
> >
> > Archivo de datos data.xml
> >
> > <?xml version="1.0" encoding="utf-8"?><PadronInternoPersonasFisicas
> >
>
xmlns="http://www.sugef.fi.cr/esquemas/SUG...Fisicas.xs
>
d"><Registro><Tipo>1</Tipo><Identificacion>0031977420010001709</Identificaci
>
on><PrimerApellido>FRESNEDA</PrimerApellido><SegundoApellido>MORENO</Segundo
> Apellido><Nombre>HAROLD
> >
>
AMED</Nombre><Genero>1</Genero><FechaNacimiento>13/09/1978</FechaNacimiento>
>
<PaisNacimiento>CO</PaisNacimiento><IdentificacionTitular>003197742001000170
>
9</IdentificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>
>
003860579</Identificacion><PrimerApellido>GONZALEZ</PrimerApellido><SegundoA
> pellido>NIETO</SegundoApellido><Nombre>MARIA
> > DEL
> >
>
CARMEN</Nombre><Genero>2</Genero><FechaNacimiento>15/10/1965</FechaNacimient
>
o><PaisNacimiento>CU</PaisNacimiento><IdentificacionTitular>C386579</Identif
>
icacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>013478458<
>
/Identificacion><PrimerApellido>FIGUEROA</PrimerApellido><SegundoApellido>VA
> NEGAS</SegundoApellido><Nombre>JOSE
> > RAUL</Nombre><Genero>1</Genero><FechaNacimiento /><PaisNacimiento
> >
>
/><IdentificacionTitular>013478458</IdentificacionTitular></Registro><Regist
>
ro><Tipo>1</Tipo><Identificacion>038041262</Identificacion><PrimerApellido>S
> ALAZAR</PrimerApellido><SegundoApellido
> > /><Nombre>BLANCA
> >
>
ESTELLA</Nombre><Genero>2</Genero><FechaNacimiento>26/03/2007</FechaNacimien
>
to><PaisNacimiento>US</PaisNacimiento><IdentificacionTitular>038041262</Iden
>
tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0438513
>
79</Identificacion><PrimerApellido>SOTO</PrimerApellido><SegundoApellido>CAL
> DERON</SegundoApellido><Nombre>MARIO
> >
>
ALBERTO</Nombre><Genero>1</Genero><FechaNacimiento>22/01/1982</FechaNacimien
>
to><PaisNacimiento>CR</PaisNacimiento><IdentificacionTitular>043851379</Iden
>
tificacionTitular></Registro><Registro><Tipo>1</Tipo><Identificacion>0461648
>
14</Identificacion><PrimerApellido>CROSSTY</PrimerApellido><SegundoApellido
> > /><Nombre>KEITH
> >
>
ANTONIO</Nombre><Genero>1</Genero><FechaNacimiento>18/02/1957</FechaNacimien
> to><PaisNacimiento
> >
>
/><IdentificacionTitular>046164814</IdentificacionTitular></Registro><Regist
>
ro><Tipo>1</Tipo><Identificacion>046214376</Identificacion><PrimerApellido>G
> ONZALEZ</PrimerApellido><SegundoApellido
> >
>
/><Nombre>ENRIQUE</Nombre><Genero>1</Genero><FechaNacimiento>27/02/1937</Fec
> haNacimiento><PaisNacimiento
> >
>
/><IdentificacionTitular>046214376</IdentificacionTitular></Registro><Regist
>
ro><Tipo>1</Tipo><Identificacion>064RE001076001999</Identificacion><PrimerAp
>
ellido>MONTENEGRO</PrimerApellido><SegundoApellido>SANCHEZ</SegundoApellido>
>
<Nombre>LIDIA</Nombre><Genero>2</Genero><FechaNacimiento>28/10/1967</FechaNa
> cimiento><PaisNacimiento
> >
>
/><IdentificacionTitular>064RE001076001999</IdentificacionTitular></Registro
> ></PadronInternoPersonasFisicas>
> >
>
>
>
>



email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida