Alpha Video Training
Results 1 to 3 of 3

Thread: Connection Strings

  1. #1
    Real Name
    Join Date
    Jun 2010

    Default Connection Strings


    I have a web app (v10) that runs via a named connection string with alphadao. The database is MySQL and is located on another computer on my lan.

    Locally, the app works smoothly (and very fast). However when I push onto the server, it is still trying to connect to my local lan's IP address for the connection string (and not the server localhost).

    Any ideas how to get around this one?

    Thank you!

  2. #2
    Member NicholasWieland's Avatar
    Real Name
    Nicholas Wieland
    Join Date
    Apr 2008
    Huntington, NY

    Default Re: Connection Strings


    you need to setup and publish under the proper AlphaDAO connection string. You could go in and manually change the the connection string in a5_application file which should be in your webroot directory. See below the path alias section Connection1 change to be what the proper connection string should be.

    '-----------------------------------AlphaDAO Connection Strings ----------------------------------------------------------
    'This is a CR-LF delimited list of AlphaDAO connection strings.
    'Connection strings are encrypted. If you want to edit a connection string shown here, you can enter
    'an unencrypted connection string by ommitting the 'Encrypted:' prefix.

    Dim _AlphaDAO_ConnectionStrings as c
    _AlphaDAO_ConnectionStrings = <<%txt%

    'Create a global collection called '_A5_AlphaDAO_ConnectionStrings'
    'At run-time, your Xbasic scripts can lookup a connection string as follows:
    'myConnectionString = _A5_AlphaDAO_ConnectionStrings.get("myConnectionStringName")

    DIM global _A5_AlphaDAO_ConnectionStrings as U
    dim gv as p
    gv = global_variables()
    _A5_AlphaDAO_ConnectionStrings = loadConnectionStrings(gv, _AlphaDAO_ConnectionStrings, "AlphaDAO")

    if this does not help see video on path alias- 3 videos
    Nicholas Wieland Corp

  3. #3
    Real Name
    Join Date
    Jun 2010

    Default Re: Connection Strings

    Hi Nicholas

    That worked perfectly, thank you!

Similar Threads

  1. Help on character Strings
    By Clunes in forum Alpha Five Version 10 - Desktop Applications
    Replies: 14
    Last Post: 01-14-2010, 06:21 AM
  2. Connection Strings
    By monghe in forum Alpha Five Version 9 - Desktop Applications
    Replies: 2
    Last Post: 08-04-2009, 09:44 PM
  3. Changing Connection Strings during Runtime
    By audrummer15 in forum Alpha Five Version 9 - Desktop Applications
    Replies: 1
    Last Post: 08-04-2009, 01:13 AM
  4. Cannot Enter Certain Strings
    By Steve Andrews in forum Forum Usage
    Replies: 2
    Last Post: 09-27-2005, 11:44 AM
  5. Zero Length Strings?
    By Bill Walker in forum Alpha Five Version 5
    Replies: 18
    Last Post: 01-30-2004, 04:36 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