Data Migration
- From: WPedersen <Wayne.Pedersen@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Aug 2006 09:22:29 -0400
Hello -
I'm trying to migrate data from an Access 2000 database to SQL 2005 Express. Both databases have the same schema.
Most primary keys are Auto Increment fields. I'm having the issue that even if I set primary key manually in my code, the Auto Increment rules seem to override this. This is very undesirable, as it would corrupt the relationships of existing data when I read from Access and Write to SQL.
How can I add rows to the SQL database bypassing the Auto Increment value?
i.e.:
ds_SQL.tblCompany.row(x).item("CompanyID") = ds_Access.tblCompany.row(x).item("CompanyID")
The data migrates, but the Auto Increment value is used. I'm using typed datasets, ensured the ReadOnly value is False in the Dataset, and even tried turning off Auto Increment at the Dataset level.
Thanks - I'm lost....
Wayne P.
.
- Follow-Ups:
- Re: Data Migration
- From: Dave Sexton
- Re: Data Migration
- From: Dave Sexton
- Re: Data Migration
- Prev by Date: Re: remote Debugging vs2005 - impossible to configure
- Next by Date: Re: ASP .NET 2.0 Performance
- Previous by thread: remote Debugging vs2005 - impossible to configure
- Next by thread: Re: Data Migration
- Index(es):
Relevant Pages
|