I have a database created to track inventory. The back-end is SQL server & front-end is in Access. I populate the "person" table (name, position #, title, phone...) based
on data from our HR department. I need to update the table on a regular basis. Once I get an updated file, I'd like to repopulate the table, keeping the position # (KEY) in the table, but changing all other fields related to that position.
For example:
Currently in the Person table:
Position Name Title Room ...
1111 JOE SMITH Manager 101 ...
2222 Jane Doe Peon 102 ...
3333 Jesse James Robber 103 ...
In my new extract file, Position 2222 has been reassigned to
Betty Boop in room 105. I don't want to drop the whole table and recreate it because there are several tables related to it. So I'd want my result to be:
Position Name Title Room ...
1111 JOE SMITH Manager 101 ...
2222 Betty Boop Analyst 105 ...
3333 Jesse James Robber 103 ...
If a postion number already exists, I want to repopulate the fields in that record. If it doesn't exist, I want to add a new record to the table.
The way that I've populated the table in the past is to use Data Transformation Services, Import Data Wizard. I go through the screens and match up the fields in my extract (excel) file to the fields in my Person table. Obviously this won't work to change data, because using the wizard it tries to add new records.
I don't know how to change data without dropping & recreating the table.
Sorry for the long-winded question, but I didn't know an easier way to ask.
thanks,
Heather
on data from our HR department. I need to update the table on a regular basis. Once I get an updated file, I'd like to repopulate the table, keeping the position # (KEY) in the table, but changing all other fields related to that position.
For example:
Currently in the Person table:
Position Name Title Room ...
1111 JOE SMITH Manager 101 ...
2222 Jane Doe Peon 102 ...
3333 Jesse James Robber 103 ...
In my new extract file, Position 2222 has been reassigned to
Betty Boop in room 105. I don't want to drop the whole table and recreate it because there are several tables related to it. So I'd want my result to be:
Position Name Title Room ...
1111 JOE SMITH Manager 101 ...
2222 Betty Boop Analyst 105 ...
3333 Jesse James Robber 103 ...
If a postion number already exists, I want to repopulate the fields in that record. If it doesn't exist, I want to add a new record to the table.
The way that I've populated the table in the past is to use Data Transformation Services, Import Data Wizard. I go through the screens and match up the fields in my extract (excel) file to the fields in my Person table. Obviously this won't work to change data, because using the wizard it tries to add new records.
I don't know how to change data without dropping & recreating the table.
Sorry for the long-winded question, but I didn't know an easier way to ask.
thanks,
Heather