Skip to main content
Known Participant
November 20, 2009
Question

Import Datasources in ColdFusion9

  • November 20, 2009
  • 2 replies
  • 3547 views

I am wanting to go to ColdFusion 9 but is there a way to import your datasources at the server level into ColdFusion 9 so that you don't have to set each one up again? I am currently on ColdFusion 8. Thanks.

    This topic has been closed for replies.

    2 replies

    Inspiring
    November 21, 2009

    If you have an Enterprise or Developer licence, you can simply export all/some your settings into a CAR file, and reimport on the new server.

    --

    Adam

    BKBK
    Community Expert
    Community Expert
    November 20, 2009

    I thought nowadays Coldfusion does it automatically during installation. In any case, here is one way to do it for single-server Coldfusion installation on Windows. You can adapt it accordingly for your environment.

    Coldfusion stores the settings in the file neo-datasource.xml in the lib directory. It is, by default, C:\coldfusion8\lib. What you have to do is make a copy of the file to a temporary location elsewhere.

    Install Coldfusion 9. Stop Coldfusion 9. Go to the lib directory of the Coldfusion 9 installation. It is, by default, C:\coldfusion9\lib. Back up the file neo-datasource.xml, for example, by renaming it to neo-datasource_backup.xml. Copy the file neo-datasource.xml from the temporary location into C:\coldfusion9\lib.

    Coldfusion 9 now has the same datasource settings as the previous Coldfusion 8 installation. Restart Coldfusion 9.