problem defining a custom connection string

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default problem defining a custom connection string

    Hi,
    could someone please help with a problem I am having. When I try to create a
    connection string using DW's custom connection string dialog/interface I get an
    error.

    The string I typed is:
    "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("bugdb.mdb")

    Error I get:
    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry
    key 'Temporary (volatile) Jet DSN for process 0x10cc Thread 0xa84 DBC
    0x12295254 Jet'.

    [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed

    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry
    key 'Temporary (volatile) Jet DSN for process 0x10cc Thread 0xa84 DBC
    0x12295254 Jet'.

    [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.

    I would really appreciate if somebody could help me out.
    Thanks,
    Sarb.

    singh83 Guest

  2. Similar Questions and Discussions

    1. Problem in defining next stage
      Hi all, I provide a simple login screen to the user, the username and password will be sent to Java that will deal with MySQL The code above...
    2. Custom Control with Connection String
      I have a custom control that makes connections to a SQL db. The controls works fine at run time, but it not able to get the connection string in my...
    3. Defining a variable problem
      I need some input on a relatively simple script problem, since I've been working it for 3 days .. checking the manual and this site with a...
    4. String not available/custom cursor
      Hi! I have problem when loading a .dcr file on web. I use WinNT, Director 8.0, and IE6.0 An error message saying "String not available"...
    5. connection string problem (going nutz)
      Can someone please provide me with an example conntection string to connect to an access database that is using jet security (mdw file)? I want...
  3. #2

    Default Re: problem defining a custom connection string

    > The string I typed is:
    > "Driver={Microsoft Access Driver (*.mdb)};DBQ=" &
    Server.MapPath("bugdb.mdb")


    try this string instead:

    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    Server.Mappath("\foldername\bugdb.mdb") & ";"


    --
    Nancy Gill
    Team Macromedia Volunteer for Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development




    Nancy Gill Guest

  4. #3

    Default Re: problem defining a custom connection string

    Hi,
    I tried the new string and it did not work. I got the following error msg:

    Could not find file 'd:\user\tlbugtracker\_mmServerScripts\bugdb.mdb

    The exact string i typed was:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.Mappath("bugdb.mdb") +
    ";"

    I changed '&' to '+' as i'm using javascript not vbscript.

    Is there anything else I can try??

    Thanks very much,

    Sarb.

    singh83 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