In my Access DB I am trying to write a single stored procedure (if possible) that will act upon multiple tables.
This procedure will be called via an external program (c#.net)
At present, I need to agg a new record to one table, query this table back to get the primary key of this new record, then do a second insert into a relational table to update the relational link. To my mind, there must be an easier way than sending 3 queries. If tehre was a conneciton loss / power cut etc between queries, then the data would be adrift and no use to anyone.
Any ideas appreciated
K
This procedure will be called via an external program (c#.net)
At present, I need to agg a new record to one table, query this table back to get the primary key of this new record, then do a second insert into a relational table to update the relational link. To my mind, there must be an easier way than sending 3 queries. If tehre was a conneciton loss / power cut etc between queries, then the data would be adrift and no use to anyone.
Any ideas appreciated
K