Skip to main content
csgaraglino
Known Participant
December 7, 2010
Answered

SQL Passwords - Install Freeze

  • December 7, 2010
  • 1 reply
  • 559 views

Ok, so during an update from CF5 to MX7 I ran into a major snag and don't want to run into it again. My SQL passwords all have a percent sign in the pw. The MX migration tool was not able to deal with this? I was able to get past the Importing Settings screen manually and manually update each DB registration pw (pain). I have another server to do and don't want to manually do it again - is theer a way that I can chgange all the PW berfore I start the upgrade without having to do them one at a time?

    This topic has been closed for replies.
    Correct answer Charlie Arehart

    Wow, you're going old school. Fortunately, there are some of us "old guys" around.

    Though for CF7 forward you would use the Admin API to do that, for CF5 and before there was a set of undocumented functions, and I'm pretty sure that the one you'd want is CF_SETDATASOURCEPASSWORD(). To change the password for datasource "MyDSN" to "xyz", use this:

    /charlie arehart

    charlie@carehart.org

    Providing CF and CFBuilder troubleshooting services

    at http://www.carehart.org/consulting

    1 reply

    Charlie Arehart
    Community Expert
    Charlie ArehartCommunity ExpertCorrect answer
    Community Expert
    December 8, 2010

    Wow, you're going old school. Fortunately, there are some of us "old guys" around.

    Though for CF7 forward you would use the Admin API to do that, for CF5 and before there was a set of undocumented functions, and I'm pretty sure that the one you'd want is CF_SETDATASOURCEPASSWORD(). To change the password for datasource "MyDSN" to "xyz", use this:

    /charlie arehart

    charlie@carehart.org

    Providing CF and CFBuilder troubleshooting services

    at http://www.carehart.org/consulting

    /Charlie (troubleshooter, carehart. org)
    csgaraglino
    Known Participant
    December 8, 2010

    Perfect Thanks!