Hi Tommaso,
[quoted text, click to view] > The database is the right place in order to do data warehouse, reporting and
> so on not a container of all.
Unless it's a relational database, of course.
Just to cite a few examples, ASP.NET session state or the ASP.NET 2.0 provider
infrastructure data such as membership and roles are commonly stored today in
Microsoft Sql Server, a well known RDBMS. This shows that databases aren't
only for data warehousing and reporting.
Session State Modes on MSDN:
http://msdn2.microsoft.com/en-us/library/ms178586.aspx Configuring ASP.NET 2.0 Application Services to Use SQL Server 2000 / 2005 on
MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/configaspnet_sql.asp
[quoted text, click to view] > make sense to store binary data in database?
Serialization into Sql Server, for example, provides relational storage for
the binary data, which is otherwise usually controlled by a file-numbering
system outside of the database. This method of relational persistence isn't
enforced by simple database constraints that ensure the integrity of the data,
but instead only by your code - if done correctly. If each file, commonly
graphical images, are to be saved in reference to a primary key in a database
then it makes sense in some circumstances to just store the data in the
database row along with the related data.
Controlling the serialization of an object and storing it in the database is a
flexible alternative to other persistence mechanism and can be used in
WinForms and web apps to persist complex object graphs without having to write
some proprietary xml schema or file-numbering system that introduces the
possibility for more bugs and requires you to author I/O, which databases
handle for you efficiently, behind the scenes.
Xml object graphs could be used instead to provide a more flexible alternative
to binary serialization. Sql Server supports xpath to query the serialized
structure, in place.
Using XPath Queries on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ac_mschema_3gab.asp?frame=true
--
Dave Sexton
[quoted text, click to view] "Tommaso Caldarola" <ilbecchino@lcimitero.it> wrote in message
news:4543105f$1_2@x-privat.org...
> matt@mailinator.com wrote:
>> hey all,
>>
>> now id like to put it to practice. however....none of the articles i
>> found had database examples -- all were files. how do i insert a memory
>> stream into the database? (im currently usesing oracle, so this would
>> be into a table w/ a CLOB column).
>
> make sense to store binary data in database?
>
> The database is the right place in order to do data warehouse, reporting and
> so on not a container of all.
>