R
Remco Hulshoff
I'm not quite sure this is the correct group te post this so please correct
me if 'm wrong.
My goal is to synchronize the contents of a offline access database with a
online sql-server. In order to do this in a robust manner i'm trying to
implement to following steps:
1. Clone Table to Table2 in the sql-server
2. fill Table2 with the data from the access database
3. rename Table to Table1 (sql-server)
4. rename Table2 to Table (sql-server)
5. remove Table1 (sql-server)
The problems start with the cloning. I am currently trying to do this using
ADOX via interop but i am running into various problems here. I need a full
clone of the original table with all its columns, indexes, keys and
properties.
My questions to this group:
1. Is ADOX the way to do this?
2. the Columns.Append method expects either: (ADOX.Column) or (string,
DataTypeEnum, long). I'm trying to use the first one but i can't seem to get
the optional parameters working (in c# they are not optional and i can't
find the correct values). I'm having the same problems with Indexes.Append
etc
Any help would be highly apreciated,
Remco Hulshoff
me if 'm wrong.
My goal is to synchronize the contents of a offline access database with a
online sql-server. In order to do this in a robust manner i'm trying to
implement to following steps:
1. Clone Table to Table2 in the sql-server
2. fill Table2 with the data from the access database
3. rename Table to Table1 (sql-server)
4. rename Table2 to Table (sql-server)
5. remove Table1 (sql-server)
The problems start with the cloning. I am currently trying to do this using
ADOX via interop but i am running into various problems here. I need a full
clone of the original table with all its columns, indexes, keys and
properties.
My questions to this group:
1. Is ADOX the way to do this?
2. the Columns.Append method expects either: (ADOX.Column) or (string,
DataTypeEnum, long). I'm trying to use the first one but i can't seem to get
the optional parameters working (in c# they are not optional and i can't
find the correct values). I'm having the same problems with Indexes.Append
etc
Any help would be highly apreciated,
Remco Hulshoff