Does anyone have any clear idea of how can the following be achieved?
I have two databases. The databases are the same. One is on the server and the other is on the client machine. Every day I need to back up the data from the client's database to the server's. But inside the tables I want to update only the last record (for the passed day). I do not need to update the records that are there already. ONLY THE LAST RECORD NEEDS TO BE UPDATED.
I suppose that the solution is somewhere in writing a query or asp code.
People, if you have any ideas, please, share them with me!
Thanks
[Ответ]
oleg_ef Ефа эт ты чтоль?
Ну так и читай только последнюю запись с клиента.
Там же у них есть поле id или еще какой индекс? т.е. они ведь у тебя пронумерованы наверняка.
А как написать запрос чтоб только последняя запись бролась я думаю ты найдеш в документации.
И ты уверен что пользуешся UPDATE а не INSERT ?
[Ответ]