Problem with bulk insert
  Home FAQ Contact Sign in
microsoft.public.sqlserver.xml only
 
Advanced search
POPULAR GROUPS

more...

microsoft.public.sqlserver.xml Profile…
 Up
Problem with bulk insert         


Author: VicToro
Date: Feb 27, 2007 07:28

Hi all,

I am newbie in all the stuff about xml importing into sql server.

What I try to do is simple. It is take an xml file and drop it into a
table. I am using VS2005, SQLXML 4.0 and SQL Server 2000 (I think
there is no problem of compatibility)

When I run my program using the SQLXMLBulkLoad4Class class,
everythings seems to run perfect and there is no errors. But when I
check my DB there isnt any record inserted.

My schema is:
Show full article (1.43Kb)
1 Comment
RE: Problem with bulk insert         


Author: Monica Frintu [MSFT]
Date: Mar 30, 2007 14:20

Hello,

This happens because your xml doesn't match the schema definition.

You have to update the schema as follows:
Show full article (2.37Kb)
no comments