Hi
I've got a few problems concerning how to interface with a web side database that is currently maintained by a php web site.
At the moment I am trying to maintain a table full of standing data from within my VB.NET app. I have downloaded all the remote currencies into my local db. The remote db has PK on currencyId which is also an autonumber. My local PK is currencyId but this has no autonumber.
The 1st problem arose when I tried to create a new currency locally using a datagrid. As currencyId isnt a autonumber the update failed. Fair Enough.
But then I started thinking about how the whole process can work. I think a limitation would be to only allow changes to be made locally. e.g. Remove the currency page from the website.
But if i have 10 currencys locally and remotely and I create an extra 2 (id 11, 12) and then removed id=11 before saving, the code would try to create a currency with id = 12 on the remote web site db. As this is an autonumber it would change it to id =11 so the remote and the local db would be out of sync.
Should I remove the autonumber from the remote db?
Has anybody done anything like this before? Any tips from anyone would be good !
Thanks
Darren
I've got a few problems concerning how to interface with a web side database that is currently maintained by a php web site.
At the moment I am trying to maintain a table full of standing data from within my VB.NET app. I have downloaded all the remote currencies into my local db. The remote db has PK on currencyId which is also an autonumber. My local PK is currencyId but this has no autonumber.
The 1st problem arose when I tried to create a new currency locally using a datagrid. As currencyId isnt a autonumber the update failed. Fair Enough.
But then I started thinking about how the whole process can work. I think a limitation would be to only allow changes to be made locally. e.g. Remove the currency page from the website.
But if i have 10 currencys locally and remotely and I create an extra 2 (id 11, 12) and then removed id=11 before saving, the code would try to create a currency with id = 12 on the remote web site db. As this is an autonumber it would change it to id =11 so the remote and the local db would be out of sync.
Should I remove the autonumber from the remote db?
Has anybody done anything like this before? Any tips from anyone would be good !
Thanks
Darren