I have recently moved from access client/server to access client / sql 2000 server and I am looking into ways i can speed up my code.
Scenario:
I have one table of Orders, each row contains an OrderNo field and a MainOrderNo field. When shipped the orders can be combined, at this time the MainOrderNo is set to contain the OrderNo with the despatch details against it.
I need to create a weekly report showing the despatch details against EVERY order that was combined.
Currently I have a Stored Proc creating a table full of the current weeks orders, I need a method of changing the despatch details of every order that has the MainOrderNo field populated.
All the data I need is in the table I have created but how do i update the dataset in the stored procedure?
I know I can use the access client to create recordsets and loop though changing the fields but I am looking for a way to do all the processing server side.
Any help greatly appreciated.
Simon
Scenario:
I have one table of Orders, each row contains an OrderNo field and a MainOrderNo field. When shipped the orders can be combined, at this time the MainOrderNo is set to contain the OrderNo with the despatch details against it.
I need to create a weekly report showing the despatch details against EVERY order that was combined.
Currently I have a Stored Proc creating a table full of the current weeks orders, I need a method of changing the despatch details of every order that has the MainOrderNo field populated.
All the data I need is in the table I have created but how do i update the dataset in the stored procedure?
I know I can use the access client to create recordsets and loop though changing the fields but I am looking for a way to do all the processing server side.
Any help greatly appreciated.
Simon