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. Database & SysAdmin
  3. Database
  4. About the datatype size

About the datatype size

Scheduled Pinned Locked Moved Database
question
5 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.
  • D Offline
    D Offline
    Dhyanga
    wrote on last edited by
    #1

    Hi, I am creating one table and it has field like DetailInfo. Since the user can insert short or long details, I am wondering which particular datatype with maximum size to be used ? Well nvarchar has max 5000 but is there anyway i can use more than that size ? So shall I use nText or nvarchar in this case ? thanks in advance

    suchita

    P C 2 Replies Last reply
    0
    • D Dhyanga

      Hi, I am creating one table and it has field like DetailInfo. Since the user can insert short or long details, I am wondering which particular datatype with maximum size to be used ? Well nvarchar has max 5000 but is there anyway i can use more than that size ? So shall I use nText or nvarchar in this case ? thanks in advance

      suchita

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Which database? If Sql Server, look into nvarchar(max). :cool:

      D 1 Reply Last reply
      0
      • P PIEBALDconsult

        Which database? If Sql Server, look into nvarchar(max). :cool:

        D Offline
        D Offline
        Dhyanga
        wrote on last edited by
        #3

        Yes. Sql Server.

        suchita

        1 Reply Last reply
        0
        • D Dhyanga

          Hi, I am creating one table and it has field like DetailInfo. Since the user can insert short or long details, I am wondering which particular datatype with maximum size to be used ? Well nvarchar has max 5000 but is there anyway i can use more than that size ? So shall I use nText or nvarchar in this case ? thanks in advance

          suchita

          C Offline
          C Offline
          Corporal Agarn
          wrote on last edited by
          #4

          Note that nText is going away in future SQL server releases. The nvarchar(max) should do what you want.

          D 1 Reply Last reply
          0
          • C Corporal Agarn

            Note that nText is going away in future SQL server releases. The nvarchar(max) should do what you want.

            D Offline
            D Offline
            Dhyanga
            wrote on last edited by
            #5

            thanks. I used nvarchar(max). just trying to know which one holds large data like 2-3 pages. i haven't worked with large data before.

            suchita

            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