Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

prelazak na klijent server programiranje

[es] :: Pascal / Delphi / Kylix :: prelazak na klijent server programiranje

[ Pregleda: 4351 | Odgovora: 8 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon prelazak na klijent server programiranje19.04.2004. u 01:23 - pre 205 meseci
Da li je velika razlika izmedju programiranja klijent/server i programiranja sa lokalnom bazom podataka? Mislim da li bi mi trebalo jako puno vremena da savladam klijent/server programiranje ako znam sa lokalnom bazom?

I jos jedo slicno pitanje:

Ako sam uradio jedan program pomocu bde-a sa lokalnom bazom, da li bih to mogao da iskoristim kao osnovu za pravljenje slicnog programa koji radi u lokalnoj mrezi?
 
Odgovor na temu

morlic
Milos Orlic
Beograd

Član broj: 6081
Poruke: 735
*.111.eunet.yu



+1 Profil

icon Re: prelazak na klijent server programiranje19.04.2004. u 17:46 - pre 205 meseci
Evo kratkih saveta:

1. Bez BDE-a. Koristi DBExpress ili IBX ( ako pristupas InterBase-u).

2. Koristi pravu relacionu bazu podataka. Znaci bez access-a. Za pocetak InterBase ti je najbolji, jer trazi veoma malo pocetnog znanja da bi se nesto uradilo. Pored toga dosta je i brz. MS SQL trazi vise zezanja. Nesto slabije ili jace mislim da ti ne treba.

Tesko ces iz prve preci na pravo CS programiranje. Najverovatnije ces prvo uraditi aplikaciju koja moze preko mreze (pa makar i preko 127.0.0.1 varijante) da se veze na bazu (sto je jedna od osobina CS okruzenja). Sledeci korak je da startujes u isto vreme dve instance iste aplikacije (ili na dva racunara istovremeno) i da gledas sta se desava sa podacima dok ih istovremeno menjas u oba programa. Treba nauciti rad sa transakcijama i naravno dizajn baze moze (a ne mora uvek) biti drugaciji u odnosu na lokalnu bazu gde postoji samo jedan korisnik istovremeno.
 
Odgovor na temu

Ivan Golubović
AV market
Požarevac

Član broj: 3154
Poruke: 586
*.vdial.verat.net

Sajt: www.AVmarket.rs


+7 Profil

icon Re: prelazak na klijent server programiranje19.04.2004. u 21:40 - pre 205 meseci
Citat:
morlic:
Koristi pravu relacionu bazu podataka. Znaci bez access-a.


Objasni mi zašto je Access loš? Zapravo ne vidim zašto on ne bi radio u mreži?

Pozdrav.
 
Odgovor na temu

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon Re: prelazak na klijent server programiranje20.04.2004. u 00:42 - pre 205 meseci
Koju mi literaturu predlazete za pocetak klijent sevrer programiranja?
Da li bih za pocetak mogao da testiram program tako sto bi mi 1 komp bio i klijent i server?
Moze li neko da uradi ili mi da link zatako nesto neki jednostavan primer za klijent server programiranje, npr u interbase-u?
 
Odgovor na temu

morlic
Milos Orlic
Beograd

Član broj: 6081
Poruke: 735
*.116.EUnet.yu



+1 Profil

icon Re: prelazak na klijent server programiranje20.04.2004. u 09:19 - pre 205 meseci
Razlike su velike za ozbiljan rad. Evo malog izvoda iz MSDN-a:

Citat:

Database Server Advantages
The decision to use a client/server solution is driven primarily by two factors: scalability and reliability. If your solution needs to scale to serve more than 25 to 50 users, you should consider using a client/server solution instead of a file-server solution. A file-server database also has inherent reliability limitations because it is maintained as a file in the file system, which can easily become damaged if either the client or server computer (or the connection between them) fails during a transaction or other operation that writes to the database file. By isolating all database files under the control of a database server such as SQL Server, the client/server architecture can provide greater reliability and other advanced features that can't be furnished by the file-server architecture, such as the following:

Online backup
When you are using a database server, you can use an automatic scheduler to back up your database without having to exclude users from the database.

Durable transactions
SQL Server and MSDE log transactions so that updates made within a transaction can always be recovered or rolled back to the last consistent state if either the client or the server computer fails. Although the Microsoft Jet database engine and .mdb files also provide transactions, the transactions in .mdb files aren't managed by a separate transaction log and can fail without recovery if the database file becomes damaged.

Better reliability and data protection
If either a workstation or file server fails while an .mdb file is being written to, the database may be damaged. You can usually recover a damaged database by compacting and repairing the database, but you must have all users close the database before doing so. This rarely happens with a server database such as Microsoft SQL Server or MSDE.

Faster query processing
Using an .mdb file, regardless of where it is located, requires your solution to load the Jet database engine locally to process queries on the client. For large databases, this can involve moving a lot of data over the network. In contrast, SQL Server runs queries on the server, which is typically a much more powerful computer than the client workstations. Running queries on the server increases the load on the server more than would happen with an Access file-server solution, but it can reduce the network traffic substantially—especially if users are selecting a small subset of the data.

Advanced hardware support
Uninterruptible power supplies, hot-swappable disk drives, and multiple processors can all be added to the server with no changes to the client workstations.

Integrated Windows NT security
Both SQL Server and MSDE support using Windows NT® security accounts to authenticate users who are logging on to a database. This means that, unlike security for Access/Jet databases, if users are already logging on to a Windows NT network, you can use their existing Windows NT security groups and accounts to define permissions in your database, as an alternative to creating and maintaining accounts on the database server yourself.

Advanced server-side programming and support for business rules
Microsoft SQL Server and MSDE support a very feature-rich SQL dialect called Transact-SQL. Used in conjunction with features such as constraints and triggers, Transact-SQL allows you to define business and security rules on the server that are enforced equally among all users of the database. You can also use Transact-SQL to create stored procedures that run on your server to provide flexible and secure access to your data from any client.



Ako bi radi sa InterBase-om mozes koristiti knjigu "Delphi/Kylix klijent server programiranje" - Kompjuter biblioteka. Mozda nisam naslov pogodio sto posto :)

Mozes na jednom racunaru simulirati rad u mrezi.

Videcemo za primer...
 
Odgovor na temu

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon Re: prelazak na klijent server programiranje22.04.2004. u 01:15 - pre 205 meseci
Moze li mala pomoc oko interbase-a?
POcetnik sam u klijent server programiranju, pa bih zeleo da mi predlozite odakle da podjem, a i neki mali program ne bi bio los
Moze i neki mali tutorijal o nacinu koriscenja interbase-a
 
Odgovor na temu

morlic
Milos Orlic
Beograd

Član broj: 6081
Poruke: 735
*.110.eunet.yu



+1 Profil

icon Re: prelazak na klijent server programiranje22.04.2004. u 08:41 - pre 205 meseci
Strpi se par dana, piskaram nesto na tu temu.
 
Odgovor na temu

neuromancer
Darko Todorovic

Član broj: 2889
Poruke: 120
*.info-net.co.yu

Jabber: neuromancer@elitesecurity.org
ICQ: 347089233


Profil

icon Re: prelazak na klijent server programiranje22.04.2004. u 22:40 - pre 205 meseci
Pa pogledaj tutorial koji ti ide sa interbase-om, veoma je lepo napisan, dobro su objasnjeni svi pojmovi. Ja sam odatle poceo i prilicno dobro savladao neke osnovne stvari. E za nesto vise potrebna ti je ozbiljnija literatura.

pozdrav
MacBook Pro or iMac (intel Core Duo edition) user wannabe!!!
Uz malo srece i malo vise para... heh...
 
Odgovor na temu

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon Re: prelazak na klijent server programiranje24.04.2004. u 20:21 - pre 205 meseci
MOze li neko da mi napise neke osnovne pocetnicke stvati oko interbase-a, kao i neki primer funkcionisanja neke baze
 
Odgovor na temu

[es] :: Pascal / Delphi / Kylix :: prelazak na klijent server programiranje

[ Pregleda: 4351 | Odgovora: 8 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.