Alpha Video Training
Results 1 to 2 of 2

Thread: Named Connection String

  1. #1
    Real Name
    Simon Angel
    Join Date
    Sep 2010
    St Albans, England

    Default Named Connection String

    I am sure this has been asked many times before.

    I am using the latest build of Alpha Five 10.5 and I am buidinga web app against a MS SQL Server database.

    It works using a named connection string on my local PC (to the database) however when I publish it the the server the connection string cannot be found.

    I have gone thru Web Project settings and clicked on the 'Named AlphaDAO connection strings' builder to selet the named connection and edit the connection to use the working connection and then cliecked OK. Then I have published the page & forms I am testing and get the following error: cannot find name connect string 'xxxxxxxxxxx' (or something similar).

    Could someone please help me as the whole project hinges on one named connect rather than editing every form and report.

  2. #2
    Real Name
    Jeff Fagerman
    Join Date
    Feb 2009
    Somerville, AL

    Default Re: Named Connection String

    This is an excellent question and one of the first I had also. The best answer I have so far, and I don't like it, is to use a named connection string. I use a system DSN to point to my database and then use the same named connection string for everything.

    This works great but there is a serious drawback. What if you need to have multiple instances of your program running simultaneously from different data sources? I don't have an answer for this. Perhaps some global variable is the answer but I have yet to find it.
    I hope this helps. I am by no means an expert and have many question myself (this being one of them).

Similar Threads

  1. cant find named connection
    By Steve Wood in forum Application Server Version 10 - Web/Browser Applications
    Replies: 16
    Last Post: 10-11-2010, 06:09 PM
  2. Named connection string in runtime
    By joellustigman in forum Alpha Five Version 10 - Desktop Applications
    Replies: 2
    Last Post: 07-14-2010, 10:50 PM
  3. MySQL Connection String help please
    By keelbolt in forum Alpha Five Version 10 - Desktop Applications
    Replies: 1
    Last Post: 05-11-2010, 03:31 AM
  4. connection string to Access
    By Larry Weidner in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 03-08-2010, 04:35 PM
  5. Named Connection string
    By urskumark in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 11-11-2008, 07:08 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts