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. Transferring data from database to database

Transferring data from database to database

Scheduled Pinned Locked Moved C#
databasehelpcsharptutorialquestion
3 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.
  • S Offline
    S Offline
    Stephen Hurt
    wrote on last edited by
    #1

    This is not exactly a C# question, but I'm not sure where else to ask it. I have an Access database program I wrote some years earlier. I am porting it into C# and trying to import the data from the older database to a newer version of the same database. Some tables are not identical, so I am writing an import feature. The problem I am having is when importing from a memo or text field where the data includes " or ' characters since these characters are needed outside the SQL statement to indicate a text import. Example: "INSERT INTO [Table] ([Field1]) VALUES ('This is a 'very' large project.') Thanks in advance for any help. S Hurt

    L B 2 Replies Last reply
    0
    • S Stephen Hurt

      This is not exactly a C# question, but I'm not sure where else to ask it. I have an Access database program I wrote some years earlier. I am porting it into C# and trying to import the data from the older database to a newer version of the same database. Some tables are not identical, so I am writing an import feature. The problem I am having is when importing from a memo or text field where the data includes " or ' characters since these characters are needed outside the SQL statement to indicate a text import. Example: "INSERT INTO [Table] ([Field1]) VALUES ('This is a 'very' large project.') Thanks in advance for any help. S Hurt

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Stephen Hurt wrote:

      but I'm not sure where else to ask it.

      Stephen Hurt wrote:

      "INSERT INTO [Table] ([Field1]) VALUES ('This is a 'very' large project.')

      Well since that is a SQL statement I would think the SQL / ADO / ADO.NET forum might be helpful? ;)

      "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
      Colin Angus Mackay in the C# forum

      led mike

      1 Reply Last reply
      0
      • S Stephen Hurt

        This is not exactly a C# question, but I'm not sure where else to ask it. I have an Access database program I wrote some years earlier. I am porting it into C# and trying to import the data from the older database to a newer version of the same database. Some tables are not identical, so I am writing an import feature. The problem I am having is when importing from a memo or text field where the data includes " or ' characters since these characters are needed outside the SQL statement to indicate a text import. Example: "INSERT INTO [Table] ([Field1]) VALUES ('This is a 'very' large project.') Thanks in advance for any help. S Hurt

        B Offline
        B Offline
        BambooMoon
        wrote on last edited by
        #3

        I think you just double up the single quotes: Example: "INSERT INTO [Table] ([Field1]) VALUES ('This is a ''very'' large project.')

        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