Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Multiple DB's accessed based on login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multiple DB's accessed based on login

    New to this world.. has anyone built a web app using A5V10 that has identical separate secure databases for each user group (with a valid user id and passwords - indicates which db they belong to)? Each group would only have access to their db and new groups (Database's) should be able to be easily added.

    thanks

    #2
    Re: Multiple DB's accessed based on login

    Maybe I can clarify what I am asking. I am trying to find out the capabilities of A5v10 with respect to creating a common front door login and branching to separate instances. I am considering a multitenancy solution but have concerns about customizations, security, inappropriate data access, upgrade issues, performance impacts, etc..

    Comment


      #3
      Re: Multiple DB's accessed based on login

      There are several approaches you might consider.

      If you have separate SQL databases, but identical tables in each, you can build everything you need against one database using a connection string, then use login credentials to choose a different connection string to use for the logged-in user's database. This is pretty easy.

      Depending on what you're doing, any decent database expert might also suggest you consider keeping everything in one database, with appropriate fields and keys to separate the clients/users.
      -Steve
      sigpic

      Comment


        #4
        Re: Multiple DB's accessed based on login

        thyanks for your response and suggustions...Thought about the single database with multiple tenants but their may be way too many issues for that to be practical.. that is why I wanted to go the multiple database route. I figured I could make it work just wanted to know if there were any reasons why an app in A5V10 would have any issues with the multiple backends based on the logins.. and if there were anyone who has done this already with favorable results..

        Comment


          #5
          Re: Multiple DB's accessed based on login

          Zeke,

          Week after next, I'm going to show an application in the IADM web showcase that I'm developing that uses a single database for multiple clients, and show my process for keeping it all straight.

          So, if you can wait that long, this might help you decide what to do.

          Pat
          Pat Bremkamp
          MindKicks Consulting

          Comment


            #6
            Re: Multiple DB's accessed based on login

            Zeke,

            I have developed a customer service app for our mobile solution.

            Our Mobile Solution uses 2 databases
            1-PSQL
            2-MDB for blob information

            Plus we post back into our customers Accounting Software over
            30+ systems including Navision, Greatplains, Mas90, Macola, ES, Synchronics, Peachtree, AS400 Systems, Quickbooks, UNIX based Pams, ETC....

            And I connect to that too.
            So in Summary I have 3 databases I connect to and use the security built into Alpha to hide show features/buttons/views based on login for 3 outside databases plus native dbfs for some small files. No Problems.

            I have attached a screenshot:
            Summary of what is on the screen.
            1-The add Note button opens a dbf table that stores customer notes
            2-The little notepad button opens a grid to see all notes
            3-The get map button opens Google maps and show the customer on a map.
            4-The see a/r balance button goes to into Quickbooks database and gets the ar balances.
            5-The little dial button goes to the mobile mdb files and gets the time the drivers spend at each account.
            6-The little magnifier show a grids from the mdb for all time records filter after the beginning of the year.
            7-The button marked Filters goes out to a passive link table for over 1,200,000 line item records and shows a certain product only. Every nite that passivelink gets refreshed by a shortcut. Takes about 15 minutes.
            8 I missed the row expander and the book icon. Rowexpander opens a PSQL table for pricing and gives item specific pricing for the customer.
            9-that other icon runs a report against the PSQL database to show pricing to print for driver.

            So I do not think you have to worry.;)
            Nicholas Wieland
            LedgerSuite.com Corp
            [email protected]
            http://www.ledgersuite.com

            Comment


              #7
              Re: Multiple DB's accessed based on login

              I agree with Steve and Pat, 1 database is the way to go
              add a "sys_client_id" or "License_id" to all tables and filter by that
              Cheers
              Mauricio

              Comment


                #8
                Re: Multiple DB's accessed based on login

                1 database is the way to go
                If for no other reason than the maintenance hassle/headache you may end up with keeping multiple databases updated. There may be other circumstances that would warrant multiple databases but I am of a mind to consciously avoid it.
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: Multiple DB's accessed based on login

                  1-db is doable technically, but i favor multi-db scenario for the reason of fine-tuning/sizing each independently, contention, staying on line....as far as admin tasks as long as they can be scripted multi-db is just as 1-db.

                  Comment


                    #10
                    Re: Multiple DB's accessed based on login

                    Thanks for all the replies and info. One of the issues I will have with a single database is over coming customer reluctance to have their information co-mingling with their competitors (especially suppliers and customers). I know it shouldn't be a worry but many of them know just enough about IT to ask about the technical aspects of the system and make an issue out of it.

                    Comment


                      #11
                      Re: Multiple DB's accessed based on login

                      you can offer a dedicated server service (or even on site installation) for those cases, you would just duplicate you current db and app

                      (this services are normally much more expensive, using 1 db gives you the chance to offer a low cost solution to clients that are not so concerned about this issues)
                      Cheers
                      Mauricio

                      Comment


                        #12
                        Re: Multiple DB's accessed based on login

                        Hi, Rick... thanks for starting this thread. I'm curious if you came up with a solution as I have the same need as you. I'm also in Austin, BTW.

                        OR, Steve, your solution sounds like it would work...quote below. Would you care to give some clues about finding the help for this?
                        "If you have separate SQL databases, but identical tables in each, you can build everything you need against one database using a connection string, then use login credentials to choose a different connection string to use for the logged-in user's database. This is pretty easy."
                        Carol King
                        Developer of Custom Homebuilders' Solutions (CHS)
                        http://www.CHSBuilderSoftware.com

                        Comment


                          #13
                          Re: Multiple DB's accessed based on login

                          Just in case anyone is wondering we started coding for this and Alpha came out with the a new release that builds this into the grids... see the release notes from Sept 30th 2010... thanks...

                          Comment

                          Working...
                          X