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. Creating Tables on Access/SQL/MSDE

Creating Tables on Access/SQL/MSDE

Scheduled Pinned Locked Moved Database
databasec++comquestion
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.
  • J Offline
    J Offline
    Jeremy Pullicino
    wrote on last edited by
    #1

    Hi, I need to create a set of functions that will aid in the creation of tables (and fields) on Access/MS SQL/MSDE databases. I would like as much as possible to keep the same source code for all three database types, even though there might be a couple of small differences. I am looking for different methods of creating tables/fields. Till now I have come across the following: SQL Queries ADOX Am I right in assuming that both these technologies will allow me to create tables/fields on Access/MS SQL/MSDE databases? Are there other alternatives that I should look at? Which would be the best one to use in terms of reusable code? Jeremy. Jeremy Pullicino C++ Developer Homepage

    M J 2 Replies Last reply
    0
    • J Jeremy Pullicino

      Hi, I need to create a set of functions that will aid in the creation of tables (and fields) on Access/MS SQL/MSDE databases. I would like as much as possible to keep the same source code for all three database types, even though there might be a couple of small differences. I am looking for different methods of creating tables/fields. Till now I have come across the following: SQL Queries ADOX Am I right in assuming that both these technologies will allow me to create tables/fields on Access/MS SQL/MSDE databases? Are there other alternatives that I should look at? Which would be the best one to use in terms of reusable code? Jeremy. Jeremy Pullicino C++ Developer Homepage

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Jeremy Pullicino wrote: SQL Queries Some syntaxt for ACCESS and SQLServer are different so you should be careful for that. If you use ADOX I think the only difference is connection string but maybe some functions are supported for one of them. there is no 100% way to do the same code.. Mazy No sig. available now.

      1 Reply Last reply
      0
      • J Jeremy Pullicino

        Hi, I need to create a set of functions that will aid in the creation of tables (and fields) on Access/MS SQL/MSDE databases. I would like as much as possible to keep the same source code for all three database types, even though there might be a couple of small differences. I am looking for different methods of creating tables/fields. Till now I have come across the following: SQL Queries ADOX Am I right in assuming that both these technologies will allow me to create tables/fields on Access/MS SQL/MSDE databases? Are there other alternatives that I should look at? Which would be the best one to use in terms of reusable code? Jeremy. Jeremy Pullicino C++ Developer Homepage

        J Offline
        J Offline
        Jeremy Pullicino
        wrote on last edited by
        #3

        ADOX sucks. Been a whole day on it and did not even manage to create a primary key... I will be try SQL queries now... maybe I should have gone for that option in the first place. Why do MS keep ADOX if it does not work? :mad::mad::mad::mad::mad: Jeremy Pullicino C++ Developer Homepage

        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