easiest way for beginner to start database?

  • Thread starter Thread starter mp
  • Start date Start date
Like I said, you would do better to use XML and populate a list. XML
is a text file and much, much easier to work with, unless you want to
do 100s of users and deal with atomic transactions.

Unless he wants to do >1 user *or* updates.

Arne
 
Thank you. Useful for those rare times that you want to use a SQL
database for read only operations from inside of Silverlight, using
WCF service. I've added this to my toolbox for such rare occasions.
Situations where a Silverlight app may require data from external
sources are not at all rare. It is difficult for me to even visualize
a non-trival Silverlight app which doesn't involve moving data up and
down the wire.

In any case the indirection provided by a webservice conceals the
actual data store and its type. The client deals with the DTOs
provided by the webservice. There is no reason for the client to care
if the data is read from/written to an SQL server, an XML document, a
flat file or something else.

regards
A.G.
 
SL----web service----database

works fine.

For rather obvious reasons no one would want to do:

SL----database

That's interesting, thanks. It explains why web services are used in
this thread tutorial by Jesse Liberty explaining SL and DBs.

RL
 
If loosing data being rare is good enough, then a lot of
things is possible.

But usually people care about their data.


The DB should recover fine (if it is a database server with a log
file - MS SQLServer, IBM DB2, Oracle DB, Sybase ASE,
MySQL with InnoDB tables, PostgreSQL etc.).

That is what databases do.


SL----web service----database

works fine.

I bought a book by Papa called Data Driven Services for Silverlight2
that discusses setting up a web service for SL, and I was able to set
up and consume a simple web service. Thanks to you and A.G. of this
thread.

But I stand by my statement that XML is a cheap and easy way to mimic
a database. For example, nearly every example I see uses XML or hard
coded values, not a SQL query and a dB, to populate a list, GridView /
DataGrid, or combo box for example.

RL
 
Back
Top