New call-to-action
Results 1 to 2 of 2

Thread: SQL Named Connection String Alias not replaced

  1. #1
    "Certified" Alphaholic
    Real Name
    Chris Tappan
    Join Date
    Jun 2009
    Marietta, GA

    Default SQL Named Connection String Alias not replaced

    I had a post last week about this and found a temporary workaround functional enough, but after a few days of holiday, I'm back to dealing with the reality of it.

    My server's connection string alias isn't replacing my development machine connection string alias when published and run. If I make the local machine's named connection string that of the server's connection string and publish, it works on the server, meaning that the application server is operating based on the local named connection string. But for development purposes, the server's connection string doesn't work on the local machine for obvious reasons.

    All had worked fine until I got a new development machine, on which I've loaded the latest release of Alpha, restored a backed-up database project, and attached copies of our database to the new machine's SQL Server databases. Because the new machine has a different connection string (note that only the PC name has changed--i.e. it was Bob\SQLEXPRESS and now it's Joe\SQLEXPRESS), I made the change in Alpha so that the local named connection string worked properly. But as soon as I published a grid to the server, the application server threw up server connection errors and caused significant problems until I figured out the workaround.

    Can anyone tell me how to correct this problem? I'd be quite grateful.

  2. #2
    Member rogerrabbit222's Avatar
    Real Name
    Kanishka "KayBee" Basak
    Join Date
    Mar 2009
    Pune, India

    Default Re: SQL Named Connection String Alias not replaced

    You could try this.

    1. Goto Web-Projects
    2. Goto Menu Bar > Manage Connection String > AlphaDAO Connection Strings
    3. Edit the Names Connection String with the parameter values for the server JOE\SQLEXPRESS
    4. Clean the target Publish folder on you Development machines C:\A5Webroot Folder
    5. Do a refresh clean publish of the code. but Do not run it.
    6. Copy the entire published code from the C:\A5Webroot folder and copy it to you Server's A5Webroot folder
    7. Goto the Application Server settings on the Server JOE; Re-Start the server.
    8. Run the application on the browser.

    This is dirty method of doing such a thing. Some times what happens is that you would need to Re-Start the Application Server to initialize any new changes to your web-application.

Similar Threads

  1. Named Connection String
    By TheMobileGuru in forum Alpha Five Version 10 - Desktop Applications
    Replies: 1
    Last Post: 09-23-2010, 06:20 PM
  2. Named connection string in runtime
    By joellustigman in forum Alpha Five Version 10 - Desktop Applications
    Replies: 2
    Last Post: 07-14-2010, 09:50 PM
  3. Employing SQL connection string alias
    By iamko in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 04-29-2010, 05:03 PM
  4. Named Connection string
    By urskumark in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 11-11-2008, 06:08 AM
  5. Connection String Alias in Grid component
    By andi in forum Application Server Version 8
    Replies: 0
    Last Post: 06-05-2007, 09:50 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