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. Error in SSIS conversion [modified]

Error in SSIS conversion [modified]

Scheduled Pinned Locked Moved Database
databasesql-servercomhelpquestion
4 Posts 2 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
    DerekFL
    wrote on last edited by
    #1

    I have a SQL table that I am importing that has 2 columns title and description of type text that need to be converted to varchar(max). none of the 2 have more than 4000 chars and its English only. I created a data flow task with a transformation to convert both columns to string [DT_STR] 4000. My destination has both columns as varchar(MAX). I get a very informative error of Cannot create an OLE DB accessor. Verify that the column metadata is valid. When I GIS most suggest the conversion which I am already doing. Anyone been through this?

    modified on Monday, August 4, 2008 2:30 PM

    S 1 Reply Last reply
    0
    • D DerekFL

      I have a SQL table that I am importing that has 2 columns title and description of type text that need to be converted to varchar(max). none of the 2 have more than 4000 chars and its English only. I created a data flow task with a transformation to convert both columns to string [DT_STR] 4000. My destination has both columns as varchar(MAX). I get a very informative error of Cannot create an OLE DB accessor. Verify that the column metadata is valid. When I GIS most suggest the conversion which I am already doing. Anyone been through this?

      modified on Monday, August 4, 2008 2:30 PM

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #2

      If your destination column is Varchar(MAX), you've to convert it to DT_WSTR in your transformation.

      D 2 Replies Last reply
      0
      • S SimulationofSai

        If your destination column is Varchar(MAX), you've to convert it to DT_WSTR in your transformation.

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

        I tried this but then I get an error "Error at Insert Articles [Data Conversion [3463]]: Conversion from "DT_TEXT" to "DT_WSTR" is not supported".

        1 Reply Last reply
        0
        • S SimulationofSai

          If your destination column is Varchar(MAX), you've to convert it to DT_WSTR in your transformation.

          D Offline
          D Offline
          DerekFL
          wrote on last edited by
          #4

          I figured it out I had to convert to text stream and then use derived column add as new column (DT_STR,4000,1252)(DT_TEXT,1252)[Description] What a pain!

          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