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. where to store big data?

where to store big data?

Scheduled Pinned Locked Moved Database
databasehelpquestion
5 Posts 4 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.
  • Y Offline
    Y Offline
    Yelow
    wrote on last edited by
    #1

    Hi all, I create a application that use SQL to store documents like picture files, sound files...Should i use image data type to store these files or just the path to the file or something else? please help me to figure out the best solution. Thank in advance!

    A 1 Reply Last reply
    0
    • Y Yelow

      Hi all, I create a application that use SQL to store documents like picture files, sound files...Should i use image data type to store these files or just the path to the file or something else? please help me to figure out the best solution. Thank in advance!

      A Offline
      A Offline
      albCode
      wrote on last edited by
      #2

      Sure you have to use Image datatype. The Image data type can store up to 2GB of binary data, which also enables it to store standard text data.

      Y R 2 Replies Last reply
      0
      • A albCode

        Sure you have to use Image datatype. The Image data type can store up to 2GB of binary data, which also enables it to store standard text data.

        Y Offline
        Y Offline
        Yelow
        wrote on last edited by
        #3

        Thank albCode, but can you compare the performance btw 2 solutions: 1. Store the whole file in Image datatype field. 2. Store the path to the file only.

        J 1 Reply Last reply
        0
        • Y Yelow

          Thank albCode, but can you compare the performance btw 2 solutions: 1. Store the whole file in Image datatype field. 2. Store the path to the file only.

          J Offline
          J Offline
          jonathan15
          wrote on last edited by
          #4

          You need to think about how youe application will be used. Storing the file will make queries etc a lot slower but in some cases it may be the only way. If you store the path only then each client will need to be able to access that path (typically using a mapped drive). So if you are using a purely server based application like a web app or even a small LAN based client server application storingthe path may be best. Jon

          1 Reply Last reply
          0
          • A albCode

            Sure you have to use Image datatype. The Image data type can store up to 2GB of binary data, which also enables it to store standard text data.

            R Offline
            R Offline
            r stropek
            wrote on last edited by
            #5

            If you use SQL2005 you should use varbinary(max). image should not be used any more. Rainer Stropek Visit my blog at http://www.cubido.at/rainers

            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