Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Best Approach For Designing Database

Best Approach For Designing Database

Scheduled Pinned Locked Moved Database
questioncsharpdatabasehelplearning
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    Hello. I am developing a small project in C#, in which I show chosen passages from a book. Now I am not sure how do I store these passages in database? Currently I am considering these two options 1 - Storing passages as pictures in folders BUT their paths in the database. My application will get these paths and load the content in the window. 2 - Storing the actual text content in the database and load it in the window. Can you please help me decide which way is better? Or is there any better way to do it? Thanks

    This world is going to explode due to international politics, SOON.

    J M L K 4 Replies Last reply
    0
    • A AmbiguousName

      Hello. I am developing a small project in C#, in which I show chosen passages from a book. Now I am not sure how do I store these passages in database? Currently I am considering these two options 1 - Storing passages as pictures in folders BUT their paths in the database. My application will get these paths and load the content in the window. 2 - Storing the actual text content in the database and load it in the window. Can you please help me decide which way is better? Or is there any better way to do it? Thanks

      This world is going to explode due to international politics, SOON.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Probably 2 but it could be 1. Some examples for 1. - text from illuminated book - ancient text whose translation is in doubt - legal documents where originals matter

      1 Reply Last reply
      0
      • A AmbiguousName

        Hello. I am developing a small project in C#, in which I show chosen passages from a book. Now I am not sure how do I store these passages in database? Currently I am considering these two options 1 - Storing passages as pictures in folders BUT their paths in the database. My application will get these paths and load the content in the window. 2 - Storing the actual text content in the database and load it in the window. Can you please help me decide which way is better? Or is there any better way to do it? Thanks

        This world is going to explode due to international politics, SOON.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Storing an image will give you the least amount of useful data, storing the text allows it to be searchable.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • A AmbiguousName

          Hello. I am developing a small project in C#, in which I show chosen passages from a book. Now I am not sure how do I store these passages in database? Currently I am considering these two options 1 - Storing passages as pictures in folders BUT their paths in the database. My application will get these paths and load the content in the window. 2 - Storing the actual text content in the database and load it in the window. Can you please help me decide which way is better? Or is there any better way to do it? Thanks

          This world is going to explode due to international politics, SOON.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          AmbiguousName wrote:

          Can you please help me decide which way is better?

          There is no "better" way; each has it's own advantages and disadvantages, and you'd need to check your requirements which suits better. On a folder;

          • You can have clashes in naming. Filenames must be unique.
          • You have the advantage of the virusscanner picking things up. Most scanners don't do databases.
          • You track an external asset

          In a database;

          • Easy with backups/restores; are you gonna backup that folder?
          • Centralized; no need to document outside-repositories
          • As easy to (hyper)link to as a document on a webserver. However, not being a file, the server cannot response to a header-request on it's freshness.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

          1 Reply Last reply
          0
          • A AmbiguousName

            Hello. I am developing a small project in C#, in which I show chosen passages from a book. Now I am not sure how do I store these passages in database? Currently I am considering these two options 1 - Storing passages as pictures in folders BUT their paths in the database. My application will get these paths and load the content in the window. 2 - Storing the actual text content in the database and load it in the window. Can you please help me decide which way is better? Or is there any better way to do it? Thanks

            This world is going to explode due to international politics, SOON.

            K Offline
            K Offline
            Krishna Kumar Soni
            wrote on last edited by
            #5

            Plz try this... http://stackoverflow.com/questions/5095533/storing-a-book-using-sql-server

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups