Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SQL Passwords - Install Freeze

Engaged ,
Dec 07, 2010 Dec 07, 2010

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?

557
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 07, 2010 Dec 07, 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

Translate
Community Expert ,
Dec 07, 2010 Dec 07, 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)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 08, 2010 Dec 08, 2010

Perfect Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 15, 2010 Dec 15, 2010
LATEST

This worked well.

I was able to pull the data sources and make the updates in a single script.

And it fixed one of the installation issues...

Thanks again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources