|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
<target>.PrimaryKey Merge ErrorBoth the data sent and received are accessed with strongly-typed datasets. With dsMapping ds = WS.WorkOrdersForReprint(StoreId) .EnforceConstraints = False .Merge(ds) End With The above generates this error message at the Merge statement: "<target>.PrimaryKey and <source>.PrimaryKey have different Length." The key length is 1 (one column) and type is integer for both ds and dsMapping. This works except for one table. Any ideas as to what is wrong and how to correct? Thanks. Are you sure that they don't differ fot that table?
And why do you use Lenght on int? -- Show quoteMiha Markic [MVP C#] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ "Tom_B" <T***@discussions.microsoft.com> wrote in message news:99E18F67-718B-49A8-B5E4-35D3768DF00D@microsoft.com... > Running a VB.Net console application that uses data from a VB.Net > webservice. > Both the data sent and received are accessed with strongly-typed datasets. > > With dsMapping > ds = WS.WorkOrdersForReprint(StoreId) > .EnforceConstraints = False > .Merge(ds) > End With > > The above generates this error message at the Merge statement: > > "<target>.PrimaryKey and <source>.PrimaryKey have different Length." > > The key length is 1 (one column) and type is integer for both ds and > dsMapping. > > This works except for one table. Any ideas as to what is wrong and how to > correct? > > Thanks. |
|||||||||||||||||||||||