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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to store word documents in sql server using ASP.Net 2.0??

How to store word documents in sql server using ASP.Net 2.0??

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
4 Posts 3 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.
  • K Offline
    K Offline
    kvPriya
    wrote on last edited by
    #1

    Hai, I’ve to store the contents in word/text documents along with the format in SQL Server table field. The document may be upto 3MB. But, the length of varbinary and varchar fields in SQL Server can be of 8000 at the max. Any suggestions….Please welcome. -Priya

    A 1 Reply Last reply
    0
    • K kvPriya

      Hai, I’ve to store the contents in word/text documents along with the format in SQL Server table field. The document may be upto 3MB. But, the length of varbinary and varchar fields in SQL Server can be of 8000 at the max. Any suggestions….Please welcome. -Priya

      A Offline
      A Offline
      Anshuman Singh
      wrote on last edited by
      #2

      take db field ntext

      Anshuman Singh [anshumas@rediffmail.com](mailto:Anshuman Singhanshumas@rediffmail.com)

      K 1 Reply Last reply
      0
      • A Anshuman Singh

        take db field ntext

        Anshuman Singh [anshumas@rediffmail.com](mailto:Anshuman Singhanshumas@rediffmail.com)

        K Offline
        K Offline
        kvPriya
        wrote on last edited by
        #3

        It's able to store only upto 250 characters. But, my file size may be upto 3MB.How can I store the content of such a file??

        G 1 Reply Last reply
        0
        • K kvPriya

          It's able to store only upto 250 characters. But, my file size may be upto 3MB.How can I store the content of such a file??

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          kvPriya wrote:

          It's able to store only upto 250 characters.

          Not at all. It's able to store up to 2147483648 characters. To store a binary file though, you should rather use the image data type. It's capable of storing up to 4 GiB.

          --- b { font-weight: normal; }

          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