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. General Programming
  3. C#
  4. System.Nvarchar problem

System.Nvarchar problem

Scheduled Pinned Locked Moved C#
helptutorialquestion
6 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.
  • M Offline
    M Offline
    Mogaambo
    wrote on last edited by
    #1

    System.Nvarchar does not exist... does anyone know how to do this? bulkCopy.WriteToServer throws an exception because it cannot put a string into nvarchar... dc.DataType = System.Type.GetType("System.Nvarchar");

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    M P E 3 Replies Last reply
    0
    • M Mogaambo

      System.Nvarchar does not exist... does anyone know how to do this? bulkCopy.WriteToServer throws an exception because it cannot put a string into nvarchar... dc.DataType = System.Type.GetType("System.Nvarchar");

      “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Mogaambo wrote:

      System.Nvarchar does not exist

      Where did you read that it is a datataype in .Net?:confused:

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      L 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Mogaambo wrote:

        System.Nvarchar does not exist

        Where did you read that it is a datataype in .Net?:confused:

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Probably his MySQL or Oracle book :)

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        1 Reply Last reply
        0
        • M Mogaambo

          System.Nvarchar does not exist... does anyone know how to do this? bulkCopy.WriteToServer throws an exception because it cannot put a string into nvarchar... dc.DataType = System.Type.GetType("System.Nvarchar");

          “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          The DataType should be System.String.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          1 Reply Last reply
          0
          • M Mogaambo

            System.Nvarchar does not exist... does anyone know how to do this? bulkCopy.WriteToServer throws an exception because it cannot put a string into nvarchar... dc.DataType = System.Type.GetType("System.Nvarchar");

            “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

            E Offline
            E Offline
            enginco
            wrote on last edited by
            #5

            try this: SqlDbType.NVarChar

            I want to fly but I don't have wings

            M 1 Reply Last reply
            0
            • E enginco

              try this: SqlDbType.NVarChar

              I want to fly but I don't have wings

              M Offline
              M Offline
              Mogaambo
              wrote on last edited by
              #6

              System.String and SqlDbType.NVarChar , doesn't work it gives exception.

              “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

              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