sqllite

0

Mam pytanie jak korzystać z bazy sqllite mając ją na serwerze ftp a nie dysku lokalnym, na dysku nie ma problemu bo to po prostu plik który nadpisujemy ale jak to zrobić na ftp w razie korzystania z niej przez kilka osób na raz?

0

tak nie przejdzie - ftp nie jest od udostępniania baz danych

0

możesz mi pomóc chciałbym żeby baza była dostępna przez sieć jak to zrobić?

0

jeśli chodzi o sqlite to po pierwsze przeczytaj to

sqlite FAQ napisał(a)

(5) Can multiple applications or multiple instances of the same application access a single database file at the same time?

Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time, however.

SQLite uses reader/writer locks to control access to the database. (Under Win95/98/ME which lacks support for reader/writer locks, a probabilistic simulation is used instead.) But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time. On Windows, Microsoft's documentation says that locking may not work under FAT filesystems if you are not running the Share.exe daemon. People who have a lot of experience with Windows tell me that file locking of network files is very buggy and is not dependable. If what they say is true, sharing an SQLite database between two or more Windows machines might cause unexpected problems.

We are aware of no other embedded SQL database engine that supports as much concurrency as SQLite. SQLite allows multiple processes to have the database file open at once, and for multiple processes to read the database at once. When any process wants to write, it must lock the entire database file for the duration of its update. But that normally only takes a few milliseconds. Other processes just wait on the writer to finish then continue about their business. Other embedded SQL database engines typically only allow a single process to connect to the database at once.

However, client/server database engines (such as PostgreSQL, MySQL, or Oracle) usually support a higher level of concurrency and allow multiple processes to be writing to the same database at the same time. This is possible in a client/server database because there is always a single well-controlled server process available to coordinate access. If your application has a need for a lot of concurrency, then you should consider using a client/server database. But experience suggests that most applications need much less concurrency than their designers imagine.

When SQLite tries to access a file that is locked by another process, the default behavior is to return SQLITE_BUSY. You can adjust this behavior from C code using the sqlite3_busy_handler() or sqlite3_busy_timeout() API functions.

jeśli będzie Ci to odpowiadało to aby mieć dostęp do bazy z różnych maszyn musisz ją mieć na czymś do czego odnosisz się jak do zwykłego dysku (dysk sieciowy, napęd wirtualny z netu, itp), jednakże jak pisze powyżej system plików musi posziadać mechanizm read/write locks.
Ja proponował bym jakąkolwiek inną bazę client-server zamiast sqlite, bo tutaj taka sprawdzi się znacznie lepiej (nie trzeba udostępniać plików a jedynie port tcp/udp)

0

dzięki za odpowiedź, czy znasz jakieś rozwiązanie bazodanowe na delphi 7 personal czy zostaje mi przesiadka na turbo delphi?

0

personal nie ma wsparcie dla baz - jeśli chodzi o firebirda to kiedyś były uib, które miały specjalną wersję dla D personal z własnym TDataSet

0

ściągnąłem no i niestety brak dbrtl

1 użytkowników online, w tym zalogowanych: 0, gości: 1