Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Recordset Issue in XML file

Status
Not open for further replies.

atnpowell

Programmer
Joined
Mar 5, 2004
Messages
2
Location
GB
Hi
I'm writing a nested recordset to an xml file in a vb app, but am having a major problem. Two of my records are identical apart from one of the primary key values is lower case and the other is upper.
The XML file seems to assume they are the same and writes this..

rs:duplicate='true'

But they are two different records in my SQL database .!!

How can I write these two records to file successfully, as currently it throws up a duplicate record error when I try to read the recordset back into the database.
 
It's not the xml-file that does the thinking...
I guess you let SQL-server 2000 generate xml? In that case: are you sure that the records realy are different to SQL-server? Can you add unique index on your primary key-field?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top