I'm having trouble with a column in my datasets.
I have a typed dataset, created from one of my tables in my SQL DB. I have an untyped dataset that contains my data. When I try to 'merge' the datasets I'm getting an exception because the typed DS has a unique key column that cannot be null.
Let me give a simplified example;
My typed DS has two columns:
stkD_ID - autoincrements, unique, int
stkD_Name - string
My untyped DS has two columns;
stkD_ID - ????
stkD_Name - string
I want to merge the data from the untyped DS into the typed DS having the unique indentifier created upon record submission into the DB (when I call the data adapater update method), not when I add records into my datasets. It's the database that tracks and cares about the unique ID's, not the application.
How do I setup the column in my untyped dataset to sync with my typed dataset? Other than this unique ID column, the datacolumns are identical.
TIA!!
Jeff W.
MCSE, CNE
I have a typed dataset, created from one of my tables in my SQL DB. I have an untyped dataset that contains my data. When I try to 'merge' the datasets I'm getting an exception because the typed DS has a unique key column that cannot be null.
Let me give a simplified example;
My typed DS has two columns:
stkD_ID - autoincrements, unique, int
stkD_Name - string
My untyped DS has two columns;
stkD_ID - ????
stkD_Name - string
I want to merge the data from the untyped DS into the typed DS having the unique indentifier created upon record submission into the DB (when I call the data adapater update method), not when I add records into my datasets. It's the database that tracks and cares about the unique ID's, not the application.
How do I setup the column in my untyped dataset to sync with my typed dataset? Other than this unique ID column, the datacolumns are identical.
TIA!!
Jeff W.
MCSE, CNE