The Merge method may create duplicate records when you try to update records with an AutoIncrement field (313540)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
This article was previously published under Q313540
This article refers to the following Microsoft .NET Framework Class Library namespaces:
- System.Data
- System.Data.OleDb
- System.Data.SqlClient
SYMPTOMS
When you update records with an AutoIncrement field, the Merge method of the DataSet object may create duplicate records.
WORKAROUND
To work around this behavior:
STATUSThis behavior is by design.REFERENCESFor additional information about ADO.NET, click the article number below
to view the article in the Microsoft Knowledge Base:
313590 INFO: Roadmap for ADO.NET
For additional information about related topics, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
310347 HOW TO: Fill a DataSet from a Data Source and Update Another Data Source by Using Visual Basic .NET
308055 HOW TO: Update a SQL Server Database by Using the SqlDataAdapter Object in Visual Basic .NET
Modification Type: | Minor | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbtshoot kbprb kbSqlClient kbSystemData KB313540 kbAudDeveloper |
---|
|