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. Sqlserver

Sqlserver

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

    Difference between varchar and Nvarchar?

    I T L S 4 Replies Last reply
    0
    • I infobeena

      Difference between varchar and Nvarchar?

      I Offline
      I Offline
      infobeena
      wrote on last edited by
      #2

      Tags : Varchar ,NVarchar ,Varchar(n),NVarchar(n),SQL Server,String,Length,Difference. Hi Friends,in this post i would like to explain difference between Varchar & NVarchar in SQL Server. * The data type Varchar and NVarchar are the sql server data types, both will used to store the string values. Differences : 1 Character Data Type Varchar - Non-Unicode Data NVarchar - Unicode Data 2 Character Size Varchar - 1 byte NVarchar - 2 bytes 3 Maximum Length Varchar - 8,000 bytes NVarchar - 4,000 bytes 4 Storage Size Varchar - Actual Length (in bytes) NVarchar - 2 times Actual Length (in bytes) * The abbreviation for Varchar is Variable Length character String. * The abbreviation of NVarchar is uNicode Variable Length character String. Thank You...

      J 1 Reply Last reply
      0
      • I infobeena

        Difference between varchar and Nvarchar?

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        Frankly Google is more than enough for this kind of simple questions. So always search in web before asking questions in forums. What is the difference between varchar and nvarchar?[^]

        thatraja


        My Dad had a Heart Attack on this day so don't...
        Pompeyboy3 here
        | Nobody remains a virgin, Life screws everyone :sigh:

        1 Reply Last reply
        0
        • I infobeena

          Difference between varchar and Nvarchar?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          N

          Bastard Programmer from Hell :suss:

          S 1 Reply Last reply
          0
          • I infobeena

            Tags : Varchar ,NVarchar ,Varchar(n),NVarchar(n),SQL Server,String,Length,Difference. Hi Friends,in this post i would like to explain difference between Varchar & NVarchar in SQL Server. * The data type Varchar and NVarchar are the sql server data types, both will used to store the string values. Differences : 1 Character Data Type Varchar - Non-Unicode Data NVarchar - Unicode Data 2 Character Size Varchar - 1 byte NVarchar - 2 bytes 3 Maximum Length Varchar - 8,000 bytes NVarchar - 4,000 bytes 4 Storage Size Varchar - Actual Length (in bytes) NVarchar - 2 times Actual Length (in bytes) * The abbreviation for Varchar is Variable Length character String. * The abbreviation of NVarchar is uNicode Variable Length character String. Thank You...

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            infobeena wrote:

            3 Maximum Length
             
            Varchar - 8,000 bytes
            NVarchar - 4,000 bytes

            Wrong. It is characters not bytes. And both types in newer versions allow for a size of 'max' which allow for very large sizes.

            1 Reply Last reply
            0
            • I infobeena

              Difference between varchar and Nvarchar?

              S Offline
              S Offline
              SilimSayo
              wrote on last edited by
              #6

              The difference is: varchar - Nvarchar

              1 Reply Last reply
              0
              • L Lost User

                N

                Bastard Programmer from Hell :suss:

                S Offline
                S Offline
                SilimSayo
                wrote on last edited by
                #7

                That's not the difference. N is what you get when you divide NVarchar by Varchar.

                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