DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN and DBMS

Sort:
You are not authorized to post a reply.





New Around Here





    Hi,

    is possible to run DNN with other DBMS?






    Veteran Member





      The answer is: yes, theoretically.

      The data access in DNN is realized as a provider, and the provider delivered is the SQL Server Provider. If you write another provider for the data access, you can use whatever database you want.

      This is quite complicated. You have to convert all the SQL scripts from T-SQL to the SQL you intend to support (PL/SQL for Oracle, mySQL etc.). And not only the scripts for the core system but for all extensions you use. That means you have to do that for every new version of DNN, any module etc.

      There have been projects for an Oracle provider (e.g. AcuitiDP - Oracle Data Provider for DotNetNuke (acuitisolutions.com)) and also mySQL afair, but none of them survived. The one I linked to ended with DNN 6.1.1 - and that is a long time ago.

      My recommendation is: stay away from this idea.

      Happy DNNing!
      Michael

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Connect





      New Around Here





        Thanks Michael, your explain clarify all my doubt






        Veteran Member





          Hello Everyone: 

          I want to first echo Michael's response.  I also want to be sure that I highlight one more point.  Michael is speaking about the underlying features/functionality that run DNN itself.  

          If you have a use case where you want to communicate with another database (of any kind), you can do that from your custom modules.  People have connected to all kinds of databases over the years, including various No-SQL DBs, MySQL, etc.  You just need to be sure the server where the application is being hosted has the appropriate drivers (if necessary), and you have a valid connection string with any firewall openings you may need.  






          Veteran Member





            The question was: is possible to run DNN with other DBMS?

            Although Will is right concerning single extensions that need access to any other database, DNN itself needs SQL Server.

            I also realized access to other databases using Linked Servers in SQL Server and/or (Web-)APIs that deliver (and/or manipulate if necessary) these data. If that was meant by the question please describe your usecase, I am sure that there are people here who can help.

            Happy DNNing!
            Michael

            Michael Tobisch
            DNN★MVP

            dnnWerk Austria
            DNN Connect





            New Around Here





              Hello Will, hello Michael

              my question is about DNN itself, not an extension module

              Thanks again






              Veteran Member





                Posted By progmr on 10/23/2023 7:08 AM

                Hello Will, hello Michael

                my question is about DNN itself, not an extension module

                Thanks again

                Thanks for the confirmation.  Then, Michael's advice is spot on.  You can indeed do this and there is built-in infrastructure to support it, but it's generally not worth the effort for many.  I even looked at it as a fun side project once to do a MySQL version for a derivative database, but dropped it myself once I saw the amount of effort required for all of the SProcs.  

                 

                You are not authorized to post a reply.

                These Forums are dedicated to the discussion of DNN Platform.

                For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                5. No Flaming or Trolling.
                6. No Profanity, Racism, or Prejudice.
                7. Site Moderators have the final word on approving / removing a thread or post or comment.
                8. English language posting only, please.

                Would you like to help us?

                Awesome! Simply post in the forums using the link below and we'll get you started.

                Get Involved