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. MSAccess DB import to SQL server using C#

MSAccess DB import to SQL server using C#

Scheduled Pinned Locked Moved C#
databasequestioncsharpsql-serversysadmin
3 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.
  • N Offline
    N Offline
    new2pgrmg
    wrote on last edited by
    #1

    Hello Friends, I need to import a MSAccess Database to SQL server 2005 using C# code. My question will be is it possible to do so?--I googled and am yet to find a satisfactory answer.So i thought i will post the question. Also is it possible to import a txt file to MSAccess? If yes can you guys give me any links please. Thanking You all

    M 1 Reply Last reply
    0
    • N new2pgrmg

      Hello Friends, I need to import a MSAccess Database to SQL server 2005 using C# code. My question will be is it possible to do so?--I googled and am yet to find a satisfactory answer.So i thought i will post the question. Also is it possible to import a txt file to MSAccess? If yes can you guys give me any links please. Thanking You all

      M Offline
      M Offline
      Mark J Miller
      wrote on last edited by
      #2

      TXT to Acess: google search for "Access import txt" Access to SQL Server: google search for "sql server database import wizard" If you only need to import the access database once, there's no reason to write a program to do it. If you need to import the database on a regular basis, then all you need to do is run the import wizard once, then when the wizard prompts you to "Save SSIS" package, save it as a local file. Then you can simply setup a scheduled job to run dtexec and import the database. If you need more control than that look at the SQL Data Compare tool from RedGate software www.red-gate.com[^].

      Mark's blog: developMENTALmadness.blogspot.com Funniest variable name: lLongDong - spotted in legacy code, was used to determine how long a beep should be. - Dave Bacher

      N 1 Reply Last reply
      0
      • M Mark J Miller

        TXT to Acess: google search for "Access import txt" Access to SQL Server: google search for "sql server database import wizard" If you only need to import the access database once, there's no reason to write a program to do it. If you need to import the database on a regular basis, then all you need to do is run the import wizard once, then when the wizard prompts you to "Save SSIS" package, save it as a local file. Then you can simply setup a scheduled job to run dtexec and import the database. If you need more control than that look at the SQL Data Compare tool from RedGate software www.red-gate.com[^].

        Mark's blog: developMENTALmadness.blogspot.com Funniest variable name: lLongDong - spotted in legacy code, was used to determine how long a beep should be. - Dave Bacher

        N Offline
        N Offline
        new2pgrmg
        wrote on last edited by
        #3

        Thank you Mark,I will check this.

        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