Connect to a MS Access or MS SQL Server database

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

  1. #1

    Default Connect to a MS Access or MS SQL Server database

    How can i connect and perform select, insert, update and delete commands to an Access or SQL Server database without using ODBC DSNs?
    Juliano Nunes Guest

  2. Similar Questions and Discussions

    1. Connect to an Access database using DSN (in PHP)
      Hi all I'm wondering connect a Access db as easy as to a MySQL, using Windows|Database|Add connection. But this seems not working. I'm...
    2. help! i can't connect to my Access database.
      I have been trying to set up my Microsoft Access database as a datasource (locally on my computer). I've given it a data source name, and...
    3. How to use “RDS.Connect” to connect to a MS Access database?
      The example I am working from uses the following code which does not work: RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial ...
    4. Error while trying to connect to Access database within ASP
      I am getting an error message while trying to connect to an Access database within ASP. This error only occurs on my notebook computer and not on my...
    5. how can i connect with an access database
      i need to work with an mdb file which contains a lot of data that might be change a lot of times and must stay an mdb file (so i cant make this file...
  3. #2

    Default Re: Connect to a MS Access or MS SQL Server database

    Register your [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001254.htm[/url]
    , like
    <cfquery name="myQuery" datasource="myDatasourceName">
    select * from myTable;
    </cfquery>
    BKBK Guest

  4. #3

    Default Re: Connect to a MS Access or MS SQL Server database

    What do you mean "without using ODBC DSNs"? Do you mean using JDBC instead of
    ODBC? Or are you talking about DSN-less connections? I think CF5 used to offer
    the "connectString" attribute, which allowed DSN-less connections, but I don't
    think that is supported in MX6/7. You must register a DSN in the CF
    Administrator (as BKBK mentioned), or with MX7 you can create one using the
    Admin API. There may be a partial workaround for Access databases, but it
    would help if you tell us what you're trying to do.

    mxstu 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