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. Web Development
  3. ASP.NET
  4. Save html content to SqlServer

Save html content to SqlServer

Scheduled Pinned Locked Moved ASP.NET
questionhtmldatabase
4 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.
  • F Offline
    F Offline
    freshonlineMax
    wrote on last edited by
    #1

    Hello I want to save large data in database. This data is string and may be contains up to 2 pages. -> Which field i should choose for it in SqlServer 2005? -> I want to save line breaks (Enter Key) and retrive the text from database like i saved it before to database, Somebody says i should save it in html format! How can i do it? Tanx

    V K R 3 Replies Last reply
    0
    • F freshonlineMax

      Hello I want to save large data in database. This data is string and may be contains up to 2 pages. -> Which field i should choose for it in SqlServer 2005? -> I want to save line breaks (Enter Key) and retrive the text from database like i saved it before to database, Somebody says i should save it in html format! How can i do it? Tanx

      V Offline
      V Offline
      Viral Upadhyay
      wrote on last edited by
      #2

      In SqlServer 2005 You can use varchar(max), or nvarchar(max) for this purpose. It is same as varchar or nvarchar, only difference is that it can store large value.

      Viral YahooID : just_viral My Site : www.theseoworld.info

      1 Reply Last reply
      0
      • F freshonlineMax

        Hello I want to save large data in database. This data is string and may be contains up to 2 pages. -> Which field i should choose for it in SqlServer 2005? -> I want to save line breaks (Enter Key) and retrive the text from database like i saved it before to database, Somebody says i should save it in html format! How can i do it? Tanx

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

        hello freshonlineMax, do you want to save HTML page ??? if yes then use BLOB method to save the data and use the image field in SQLserver the size of this field is 16 bit i think it will helpful for U, if you want to save HTML page regards, -koolprasad2003

        N-Joy

        1 Reply Last reply
        0
        • F freshonlineMax

          Hello I want to save large data in database. This data is string and may be contains up to 2 pages. -> Which field i should choose for it in SqlServer 2005? -> I want to save line breaks (Enter Key) and retrive the text from database like i saved it before to database, Somebody says i should save it in html format! How can i do it? Tanx

          R Offline
          R Offline
          Rahul Babu
          wrote on last edited by
          #4

          Save that in 'Text' format. You can save upto many pages. You can retrieve back the original thing..

          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