Create the database connection without using CFAdministrator Page

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

  1. #1

    Default Create the database connection without using CFAdministrator Page

    Anyone has idea of how to create the database connection without using the CF
    Administrator Data Source?
    I found an example of the cfquery with the connectionstring, but it doesnt
    work...

    <cfquery name="RS_Vendor" dbtype="dynamic"
    connectstring="DRIVER={SQL SERVER}; SERVER=(local);
    UID=;PWD=;DATABASE=test;">

    TQ for reply.

    BillyLim Guest

  2. Similar Questions and Discussions

    1. CFAdministrator page error
      I cannot access the CFAdmin page. Error "The page cannot be displayed" message in the browser
    2. Create Database Connection
      I'm trying, for the first time, to set up a MySQL database connection using Dreamweaver's Databases tab. Please note I can succesffully connect to...
    3. ASP page hangs on opening connection object to mdb database
      I have a number of websites running against several Access databases. Every once in a while (under relatively heavy load, but rarely more than 1...
    4. Create a DSNless connection IN VBscript to connect to an Oracle Database
      Cheers for all the great help!!! I have now got the connection working and i can now write to the database; but the problem i have now is i need...
    5. Can't create ADODB connection on one web page but works on the next web page
      I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 ...
  3. #2

    Default Re: Create the database connection without using CF Administrator Page

    > Anyone has idea of how to create the database connection without using the
    CF
    > Administrator Data Source?
    > I found an example of the cfquery with the connectionstring, but it
    doesnt
    > work...
    >
    > <cfquery name="RS_Vendor" dbtype="dynamic"
    > connectstring="DRIVER={SQL SERVER}; SERVER=(local);
    > UID=;PWD=;DATABASE=test;">
    As far as I know connectstring attribute does not work in MX anymore (only
    in CF5). If you're on CFMX 7 you could use the Admin API to create the
    datasource.

    --
    <mack />


    Neculai Macarie Guest

  4. #3

    Default Re: Create the database connection without using CFAdministrator Page

    Yup! I am using CFMX now, thank you for your reply!
    BillyLim Guest

  5. #4

    Default Re: Create the database connection without using CFAdministrator Page

    IN

    As in:

    <CFQUERY name="checkIT" datasource="anythingRegistered">
    SELECT * from Table1
    IN 'd:\data\source1.mdb'
    WHERE name = 'bob'
    </CFQUERY>
    Paul_B Guest

  6. #5

    Default Re: Create the database connection without using CFAdministrator Page

    Thanks for your reply. Is it possible to use this method to connect to other database such as SQL Server?
    BillyLim Guest

  7. #6

    Default Re: Create the database connection without using CFAdministrator Page

    I'm trying to do something similar, however maybe not for the same reasons. I
    have a new CF7.1 install on a Fedora Core 2 box. I've finally got CF installed,
    connected to Apache and running. However, I can't access the Admin area - I
    just get a "The Graphing service is not available" error. I'd love to be able
    to access the Admin area...however, if that's not possible with this server
    config, I'm hoping I can still get my legacy applications up and running by
    creating datasources without the admin panel. All databases will be local,
    using mySQL.

    Any help would be greatly appreciated!

    Thanks
    j

    solpath Guest

  8. #7

    Default Re: Create the database connection without using CFAdministrator Page

    Did you check out livedocs? There is a pretty thorough example of creating a datasource with the Admin api
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001734.htm[/url]
    mxstu Guest

  9. #8

    Default Re: Create the database connection without using CFAdministrator Page

    The reason why I have to use the connection string as the configuration for the
    database is because...

    In the past, it is part of my company standard policy for the coding side. As
    for example we doing for the ASP programming, we are more encourage to use
    connection string as our connector.

    And we will documentated any parameter we using and the modification can be
    done more easily when pass to another person instead of telling him the
    password of the coldfusion admin and allow him to change any other settings
    internally...

    I think Mxstu has provided a good example for to creating the datasource. It
    reminds me about somethings. If I am not mistaken, when I attend my first
    lesson for cold fusion tutorial. The tutor has created few coldfusion pages and
    ask us to execute it. It allows the configuration for datasource for each
    localhost to be automated.


    BillyLim 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