Und hier noch ein paar Details in Bezug auf das Speichern von BLOBs (z.B. Bildern) in der Datenbank:
Dies ist ein Auszug aus dem .NET Data Access Architecture Guide (DataAccess-Guideline von Microsoft) der neben den neuen Features von ADO.NET auch ein paar Worte �ber den Umgang mit dem SQL Server verliert: #### Auszug: ##### Where to Store BLOB Data ~~~~~~~~~~~~~~~~~~~~~ SQL Server 7.0 and later have improved the performance of working with BLOB data stored in the database. One of the reasons for this is that the database page size has increased to 8 KB. As a result, text or image data less than 8 KB no longer needs to be stored in a separate binary tree structure of pages, but can be stored in a single row. This means that reading and writing text, ntext, or image data can be as fast as reading or writing character and binary strings. Beyond 8 KB, a pointer is maintained within the row, and the data itself is held in a binary tree structure of separate data pages-with an inevitable performance impact. For more information about forcing text, ntext, and image data to be stored in a single row, see the Using Text and Image Data topic in SQL Server Books Online. A commonly used alternative approach to handling BLOB data is to store the BLOB data in the file system, and store a pointer (preferably a Uniform Resource Locator [URL] link) in a database column to reference the appropriate file. For versions earlier than SQL Server 7.0, storing BLOB data externally to the database in the file system can improve performance. However, improved BLOB support in SQL Server 2000, coupled with ADO.NET support for reading and writing BLOB data, makes storing BLOB data in the database a feasible approach. Advantages of Storing BLOB Data in the Database ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Storing BLOB data in the database offers a number of advantages: It is easier to keep the BLOB data synchronized with the remaining items in the row. BLOB data is backed up with the database. Having a single storage system can ease administration. BLOB data can be accessed through XML support in SQL Server 2000, which can return a base 64-encoded representation of the data in the XML stream. SQL Server Full Text Search (FTS) operations can be performed against columns that contain fixed- or variable-length character (including Unicode) data. You can also perform FTS operations against formatted text-based data contained within image fields-for example, Microsoft Word or Microsoft Excel documents. ######### ENDE ############ Und hier noch der Link dazu: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/ daag.asp gru�, marcus ----- Original Message ----- From: "Christian Freund" <[EMAIL PROTECTED]> To: "AspGerman Kaffeehaus" <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2002 1:09 AM Subject: [aspdecoffeehouse] Vergleich: FS oder DB Mal eine allgemeine - aber konkrete - Frage: Es geht um das Speichern von Bildern in der Datenbank oder im FileSystem: 1. Ist die Version FileSystem immer schneller als Datenbank? 2. Beziehen sich die Geschwindigkeitsangaben ( falls es welche gibt, w�rden sie mich sehr interessieren ) auf das Lesen oder Schreiben der Bilder? 3. Wie wirkt sich die Entscheidung darauf aus, ob mehr geschrieben oder mehr gelesen wird? 4. Wie sieht das ganze aus, wenn von einer "Ein-Rechner-L�sung" auf eine Farm portiert werden soll? 5. Wie sieht es aus, wenn es zu jedem "grossen" Bild eine kleine Vorschau gibt ( Vorschau wird immer zusammen mit Informationen aus der Datenbank ausgegeben) Ich w�re auch �ber Links zu diesem Thema dankbar. Christian | [aspdecoffeehouse] als [EMAIL PROTECTED] subscribed | http://www.aspgerman.com/archiv/aspdecoffeehouse/ = Listenarchiv | Sie k�nnen sich unter folgender URL an- und abmelden: | http://www.aspgerman.com/aspgerman/listen/anmelden/aspdecoffeehouse.asp | [aspdecoffeehouse] als [email protected] subscribed | http://www.aspgerman.com/archiv/aspdecoffeehouse/ = Listenarchiv | Sie k�nnen sich unter folgender URL an- und abmelden: | http://www.aspgerman.com/aspgerman/listen/anmelden/aspdecoffeehouse.asp
