From: Inter-Biz, U. u i. <ne...@in...> - 2004-03-10 14:45:18
|
Does Firebird.NET provide disconnected mode or it is using Transactions to work with multi-user access? For example if I us DataAdapter to get local copy of data from certain table, and then I change and insert new records in this table. One of fields is autoinc field. There can be many users making new inserts on their client PCs (to same table). Does Firebird.NET emulate MS disconnected mode presented for e.g. SQLServer (meaning, when calling Update data are transfered to DataSource, and autoinc fields are recreated on server - values can differ from those defined in local table)? I hope that you understand what I am asking. I worked with FB using Delphi 7, but now I started using VC#.NET and I have some little experience when using SQL Server with it. |
From:
<car...@te...> - 2004-03-10 16:09:29
|
Hello: > I hope that you understand what I am asking. I'm not sure if i understand well, sorry. If what you need is tat the values of an "auntoinc" field to be generated in the server, i think you will need to use generators and triggers ( Before insert ). -- Best regards Carlos Guzmán Álvarez vigo-Spain |
From: Inter-Biz, U. u i. <ne...@in...> - 2004-03-11 17:41:36
|
I always use generators and triggers, of course. But, here is better example. Test enviroment includes Firebird server and some PocketPC. Application running on PocketPC allows me to connect to server (let us suppose that!) in the morning. Using Fill I get all required data on my PocketPC and I close the connection to database. With my PocketPC I am working whole day somewhere in the woods, collecting new data about something. I put these new data into localy stored tables and I want to Update it using DataAdapter back to server in the evening. Let's say there are two tables - first has an unique identifier and second uses these ID as foreign key. All data are entered without connection to server on field, and data should be updated to server in the evening (there is no way to be connected to server during day). Does DataAdapter localy make unique identifiers (on server defined with triggers/generators)? If not, how can I make relation between two tables described previously? It is important that when posting data to server all these values are recalculated and changed using cascade updates.. Let us suppose, there are few users using their PocketPCs on the same way. All of them make local copies of some tables in the morning, then they make some field work collecting data, and finally they want to update data and post it to server in the evening. In that case, all of them could have same localy defined unique identifiers, and these should be changed when updating data to server. Is that possible using Firebird .NET provider? I am asking it because that's one of examples I heard on Microsoft ADO.NET training session. That is a kind of usage of their disconnected database access mode.So I was wondering if it works like that with Firebird. |
From:
<car...@te...> - 2004-03-13 13:03:14
|
Hello: > Let's say there are two tables - first has an unique identifier and second > uses these ID as foreign key. All data are entered without connection to > server on field, and data should be updated to server in the evening (there > is no way to be connected to server during day). > Does DataAdapter localy make unique identifiers (on server defined with > triggers/generators)? No, and i'm not sure that the SqlDataAdapter will do that, i will try to do a test next week using MSDE. > Is that possible using Firebird .NET provider? I am asking it because that's > one of examples I heard on Microsoft ADO.NET training session. There are online information about that session ?? -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From:
<car...@te...> - 2004-03-17 23:00:05
|
Hello: > Does DataAdapter localy make unique identifiers (on server defined with > triggers/generators)? Huummm can you confirm that the sample of the training session referes to the DataAdapter class and not the DataSet class ?? ( i have done a little test and the DataSet generates a new id for a new column if it have set AutoIncremement, AutoIncrementSeed and AutoIncrememtStep properties ) -- Best regards Carlos Guzmán Álvarez Vigo-Spain |