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. text , ntext datatypes ( PLEASE HELP )

text , ntext datatypes ( PLEASE HELP )

Scheduled Pinned Locked Moved Database
helpdatabasequestion
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.
  • A Offline
    A Offline
    abdelhameed81
    wrote on last edited by
    #1

    hi all every time i add a column to my table with the type text or ntext all what is entered in the database is only the first 16 characters. it happened also with all my colleagues plz help me with this problem abdelhameed81

    M J 2 Replies Last reply
    0
    • A abdelhameed81

      hi all every time i add a column to my table with the type text or ntext all what is entered in the database is only the first 16 characters. it happened also with all my colleagues plz help me with this problem abdelhameed81

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      How is the column defined? How are you inserting text into the column? Mark

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        How is the column defined? How are you inserting text into the column? Mark

        A Offline
        A Offline
        abdelhameed81
        wrote on last edited by
        #3

        the column is created in the design view of the SQL enterprise manager and the data is inserted to it from an ASP.Net application abdelhameed81

        M 1 Reply Last reply
        0
        • A abdelhameed81

          hi all every time i add a column to my table with the type text or ntext all what is entered in the database is only the first 16 characters. it happened also with all my colleagues plz help me with this problem abdelhameed81

          J Offline
          J Offline
          Jerry Hammond
          wrote on last edited by
          #4

          FWIW text is a datatype that will be deprecated in future versions of SQL Server. Keep that in mind as you develop your tables. varchar or nvarchar are the best choice in my nosey opinion.

          "We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky

          1 Reply Last reply
          0
          • A abdelhameed81

            the column is created in the design view of the SQL enterprise manager and the data is inserted to it from an ASP.Net application abdelhameed81

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            What is the max length of the text for the column? I meant can you post code snippet showing how you do the insert? Database is SQL Server? Mark

            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