create new coldfusion datasources using CFML

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default create new coldfusion datasources using CFML

    Hi,
    I am trying to find a way with Coldfusion MX 6.1 to create a datasource
    programmatically via CFML. I think it may've worked under older versions by
    just adding the DSN on the server's ODBC panel, but that doesnt register with
    CFAdmin anymore and therefore becomes unusable to a CF site (thanks to lack of
    connectionstring in cfquery now).

    I am therefore wondering if anyone has a way to do this? we have a system that
    periodically archives off a portion of it's database to a new database with a
    date-based name, and it would be nice if the scripts that do this could also
    build the datasource for us, thus making the process 100% automated.

    Regards,
    Lars

    A3gis Guest

  2. Similar Questions and Discussions

    1. ColdFusion to create hi-res CMYK PDFs
      Hi, I am looking to create hi-res CMYK PDFs that include hi-res images at 300 dpi (print quality) using Cold Fusion to convert the data from Flash....
    2. Create Table Through Coldfusion
      Hello, I'm trying to create a table through Coldfusion, but I keep getting the following Oracle error: ORA-01031: insufficient privileges ...
    3. Coldfusion to create a PDF file from a query
      I use Coldfusion to create a PDF file from a query. Everything works fine, except that my PDF file only shows the first record from my query. If I...
    4. Using ColdFusion to create directories
      I was wondering if it is possible to use ColdFusion to dynamically create directories. For example, I have a form that a user fills out (First...
    5. Create Sort By Links In Coldfusion
      Hey everyone! I'm not sure who all in the Macromedia ColdFusion Community is familiar with ColdFusion, but for a class assignment, I need to create...
  3. #2

    Default Re: create new coldfusion datasources using CFML

    You could upgrade to MX 7 and then use the Admin API for this :D

    Or check out the service factory for 6.1.

    Good cf.Factory intro is at:
    [url]http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=10[/url]

    MikerRoo Guest

  4. #3

    Default Re: create new coldfusion datasources using CFML

    Champion, that's the ticket :)
    Cheers!
    A3gis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139