Skip to main content
Ashley R
November 28, 2022

Export ERD to MS Access SQL

  • November 28, 2022
  • 5 replies
  • 152 views

Hi

I am trying to use the export to SQL tool for my ERD and i'm a little confused. Will any of the systems provided (MySQL PostgreSQL SQL Server and Oracle SQL) work on Microsoft Access?

    Comments

    Micah
    Lucid community team
    November 28, 2022

    Hi Ashley thanks for posting in the Lucid community - I'm happy to help! The four DBMs you mentioned - MySQL PostgreSQL SQL Server and Oracle SQL - are the only ones for which Lucidchart formally provides import support.

    However because MS Access is a DBMS based on SQL it's likely that you can achieve a successful import if your data is formatted correctly. If you choose the SQL Server import option you can use the following as a template for how your CSV should be formatted: 

    postgresqlquizbowlpublicdatabase_migrationsapplied2timestamp with time zone
    postgresqlquizbowlpublicdatabase_migrationsname1character varying
    postgresqlquizbowlpublicload_data_versionsapplied3timestamp with time zone
    postgresqlquizbowlpublicload_data_versionschecksum2character varying
    postgresqlquizbowlpublicload_data_versionsname1character varying
    postgresqlquizbowlpublicevent_teamcreate_date4timestamp with time zone
    postgresqlquizbowlpublicevent_teamcreate_user_id3integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicevent_teamteam_id2integerPRIMARY KEY
    postgresqlquizbowlpublicevent_teamteam_id2integerFOREIGN KEYpublicteamteam_id
    postgresqlquizbowlpublicevent_teamevent_id1integerPRIMARY KEY
    postgresqlquizbowlpublicevent_teamevent_id1integerFOREIGN KEYpubliceventevent_id
    postgresqlquizbowlpublicevent_questioncreate_date9timestamp with time zone
    postgresqlquizbowlpublicevent_questioncreate_user_id8integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicevent_questionclose_timestamp7timestamp with time zone
    postgresqlquizbowlpublicevent_questionstart_timestamp6timestamp with time zone
    postgresqlquizbowlpublicevent_questionsequence5integer
    postgresqlquizbowlpublicevent_questionround_number4integer
    postgresqlquizbowlpublicevent_questionquestion_id3integerFOREIGN KEYpublicquestionquestion_id
    postgresqlquizbowlpublicevent_questionevent_id2integerFOREIGN KEYpubliceventevent_id
    postgresqlquizbowlpublicevent_questionevent_question_id1integerPRIMARY KEY
    postgresqlquizbowlpublicschoollast_mod_date10timestamp with time zone
    postgresqlquizbowlpublicschoollast_mod_user_id9integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicschoolcreate_date8timestamp with time zone
    postgresqlquizbowlpublicschoolcreate_user_id7integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicschoolstate_abbrev6character varying
    postgresqlquizbowlpublicschoolcity5USER-DEFINED
    postgresqlquizbowlpublicschoolnickname4USER-DEFINED
    postgresqlquizbowlpublicschoolmascot3USER-DEFINED
    postgresqlquizbowlpublicschoolname2USER-DEFINEDUNIQUE
    postgresqlquizbowlpublicschoolschool_id1integerPRIMARY KEY
    postgresqlquizbowlpublicsessionexpires3integer
    postgresqlquizbowlpublicsessionsession_data2text
    postgresqlquizbowlpublicsessionsession_id1character varyingPRIMARY KEY
    postgresqlquizbowlpublicslidelast_mod_date7timestamp with time zone
    postgresqlquizbowlpublicslidelast_mod_user_id6integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicslidecreate_date5timestamp with time zone
    postgresqlquizbowlpublicslidecreate_user_id4integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicslideurl3USER-DEFINED
    postgresqlquizbowlpublicslidename2USER-DEFINED
    postgresqlquizbowlpublicslideslide_id1integerPRIMARY KEY
    postgresqlquizbowlpublicevent_logcreate_date6timestamp with time zone
    postgresqlquizbowlpublicevent_logcreate_user_id5integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicevent_logdata4text
    postgresqlquizbowlpublicevent_logtype3USER-DEFINED
    postgresqlquizbowlpublicevent_logevent_id2integerFOREIGN KEYpubliceventevent_id
    postgresqlquizbowlpublicevent_logevent_log_id1integerPRIMARY KEY
    postgresqlquizbowlpublicquestion_typedescription3text
    postgresqlquizbowlpublicquestion_typename2USER-DEFINED
    postgresqlquizbowlpublicquestion_typequestion_type_value1character varyingPRIMARY KEY
    postgresqlquizbowlpublicuser_logincreate_date6timestamp with time zone
    postgresqlquizbowlpublicuser_logincreate_user_id5integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicuser_loginuser_agent4text
    postgresqlquizbowlpublicuser_loginsession_id3character varying
    postgresqlquizbowlpublicuser_loginlogin_ip2cidr
    postgresqlquizbowlpublicuser_loginuser_login_id1integerPRIMARY KEY
    postgresqlquizbowlpublicversioned_schemasha13character varying40
    postgresqlquizbowlpublicversioned_schemarevision2integer
    postgresqlquizbowlpublicversioned_schemaname1character varying
    postgresqlquizbowlpublicsubmissionlast_mod_date10timestamp with time zone
    postgresqlquizbowlpublicsubmissionlast_mod_user_id9integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicsubmissioncreate_date8timestamp with time zone
    postgresqlquizbowlpublicsubmissioncreate_user_id7integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicsubmissionpoints6integer
    postgresqlquizbowlpublicsubmissionis_correct5boolean
    postgresqlquizbowlpublicsubmissiontime_to_answer4numeric
    postgresqlquizbowlpublicsubmissionanswer3USER-DEFINED
    postgresqlquizbowlpublicsubmissionevent_question_id2integerFOREIGN KEYpublicevent_questionevent_question_id
    postgresqlquizbowlpublicsubmissionsubmission_id1integerPRIMARY KEY
    postgresqlquizbowlpubliceventlast_mod_date8timestamp with time zone
    postgresqlquizbowlpubliceventlast_mod_user_id7integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpubliceventcreate_date6timestamp with time zone
    postgresqlquizbowlpubliceventcreate_user_id5integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpubliceventend_time4timestamp with time zone
    postgresqlquizbowlpubliceventstart_time3timestamp with time zone
    postgresqlquizbowlpubliceventname2USER-DEFINED
    postgresqlquizbowlpubliceventevent_id1integerPRIMARY KEY
    postgresqlquizbowlpublicquestionlast_mod_date13timestamp with time zone
    postgresqlquizbowlpublicquestionlast_mod_user_id12integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicquestioncreate_date11timestamp with time zone
    postgresqlquizbowlpublicquestioncreate_user_id10integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicquestionlevel_id9character varying
    postgresqlquizbowlpublicquestionpoints8integer
    postgresqlquizbowlpublicquestionexplanation7USER-DEFINED
    postgresqlquizbowlpublicquestionquestion_type_value6character varyingFOREIGN KEYpublicquestion_typequestion_type_value
    postgresqlquizbowlpublicquestionanswer_value5USER-DEFINED
    postgresqlquizbowlpublicquestionanswer4USER-DEFINED
    postgresqlquizbowlpublicquestionoptions3text
    postgresqlquizbowlpublicquestionquestion2USER-DEFINED
    postgresqlquizbowlpublicquestionquestion_id1integerPRIMARY KEY
    postgresqlquizbowlpublicteamlast_mod_date8timestamp with time zone
    postgresqlquizbowlpublicteamlast_mod_user_id7integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicteamcreate_date6timestamp with time zone
    postgresqlquizbowlpublicteamcreate_user_id5integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicteammascot4USER-DEFINED
    postgresqlquizbowlpublicteamname3USER-DEFINEDUNIQUE
    postgresqlquizbowlpublicteamschool_id2integerFOREIGN KEYpublicschoolschool_id
    postgresqlquizbowlpublicteamteam_id1integerPRIMARY KEY
    postgresqlquizbowlpublicuser_accountlast_mod_date12timestamp with time zone
    postgresqlquizbowlpublicuser_accountlast_mod_user_id11integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicuser_accountcreate_date10timestamp with time zone
    postgresqlquizbowlpublicuser_accountcreate_user_id9integerFOREIGN KEYpublicuser_accountuser_id
    postgresqlquizbowlpublicuser_accountis_admin8boolean
    postgresqlquizbowlpublicuser_accountpassword7character varying
    postgresqlquizbowlpublicuser_accountlast_name6USER-DEFINED
    postgresqlquizbowlpublicuser_accountfirst_name5USER-DEFINED
    postgresqlquizbowlpublicuser_accountemail4USER-DEFINEDUNIQUE
    postgresqlquizbowlpublicuser_accountschool_id3integerFOREIGN KEYpublicschoolschool_id
    postgresqlquizbowlpublicuser_accountteam_id2integerFOREIGN KEYpublicteamteam_id
    postgresqlquizbowlpublicuser_accountuser_id1integerPRIMARY KEY

    I hope this helps! Please let me know if you have any additional questions. You can also reference the Entity Relationship Diagram article from the Lucidchart Help Center for information on how to import your database once you have created an output file. 

    Finally we're always looking for ways to improve Lucidchart and your feedback is the best way for us to do that. Would you mind adding your request for import from MS Access to our feature request form? Our development team utilizes ideas submitted here when prioritizing improvements to Lucidchart. Thanks for your request and apologies for any inconvenience!

    Ashley R
    Ashley RAuthor
    November 28, 2022

    I'm sorry I may have worded it differently or I'm just not understanding. I made an ERD on lucidchart and am trying to export the SQL code into Microsoft Access. Are you saying to use the SQL server option?

    Micah
    Lucid community team
    November 28, 2022

    Hi Ashley thanks for getting back to me and clarifying. Apologies for the misunderstanding - I thought you were attempting to import your database information from MS Access to create your ERD! Unfortunately MS Access is formally unsupported in this capacity too but one of these options may still work! All four of the scripts provided by the four SQL-based export options are quite similar and differ slightly in syntax (e.g. quotation marks vs. brackets). While I'm not able to provide specific information on what MS Access requires here I do recommend giving several of the options a try! While you may need to add data types indices or foreign keys regardless the provided scripts should serve as an effective starting point. 

    If you're able to determine that one of the scripts works as-is or if you were able to successfully modify one for MS Access to accept it we'd love to hear about it here!

    Ashley R
    Ashley RAuthor
    November 28, 2022

    Ok thank you so much!!

    Micah
    Lucid community team
    November 28, 2022

    Of course Ashley! Please let me know if there's anything else I can do to support your work.