Convert Db connection for use on web

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

  1. #1

    Default Convert Db connection for use on web

    I've developed my site with all testing done on my PC. Now I want to upload the
    entire site to the web, but what do I change my DB Connection string to?
    Currently it is:
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="false"
    ' Catalog=""
    ' Schema=""
    Dim MM_connNJB_STRING
    MM_connNJB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=C:\Inetpub\wwwroot\NJB\Database\books.mdb;"
    %>
    But what would it be if I'm using, for example "www.njb.co.uk" please?

    raycafc Guest

  2. Similar Questions and Discussions

    1. Net connection without Internet connection whoas
      Hi does flash media server 2 require a connection to the internet i'm using the evaluation version on a computer which is not connected to the...
    2. "Contribute cannot verify your connection information"- Every other problem ruled out, but still no connection
      Hi, first, please allow me to give you the background info Client OS - Windows 2000/XP Pro Version - Contribute 2.01 - I installed the patch from...
    3. One NFS connection fine, one NFS connection slow
      Ok, this is all a bit odd. I will draw an ascii picture and hope it survives in Google: sun server | .------mandrake...
    4. Do I need to Convert with Convert.ToInt32(session("myNumber")) ?
      Hello, I have this session("myNumber") = 888 Dim intNumber As Integer a) intNumber = session("myNumber") b) intNumber =...
    5. Have internet connection but not workgroup connection.
      In article <Xns93B9BBF24CB33adfslur0mdoaur03jadl@207.46.248.16>, Frank Dreyfus <fdreyfus@nyw.com> wrote: I've written a web site that should help...
  3. #2

    Default Re: Convert Db connection for use on web

    YOu can use an ASP file to find the 'location' of your live site path.

    I have a copy you can download, once unzipped, upload it to your website, next
    to your home page, then browse to it, note the path it gives you.

    Normally your database will go in a DB folder next to the www or htdocs
    folder, so you just adjust the path given to accomodate this.

    URL = [url]www.cgw3.co.uk/uploads/location.zip[/url]


    Originally posted by: raycafc
    I've developed my site with all testing done on my PC. Now I want to upload
    the entire site to the web, but what do I change my DB Connection string to?
    Currently it is:
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="false"
    ' Catalog=""
    ' Schema=""
    Dim MM_connNJB_STRING
    MM_connNJB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=C:\Inetpub\wwwroot\NJB\Database\books.mdb;"
    %>
    But what would it be if I'm using, for example "www.njb.co.uk" please?



    CarlGrint Guest

  4. #3

    Default Re: Convert Db connection for use on web

    Thanks for your help. However I still have a problem...
    Your program gave me a string of:
    C:\Inetpub\vhosts\notjustbooks.co.uk\httpdocs\njb\ YourDB.mdb and I've tried
    various permutations of this, such as:
    httpdocs\njb\books.mdb, but I get errors returned, such as:
    'c:\httpdocs\njb\books.mdb' is not a valid path. Make sure that the path name
    is spelled correctly and that you are connected to the server on which the file
    resides. So it still seems to think I'm using a local server rather than the
    web itself. So I'd be grateful for any further help.

    Thanks again




    raycafc Guest

  5. #4

    Default Re: Convert Db connection for use on web

    Depending on the folder name of the db try

    C:\Inetpub\vhosts\notjustbooks.co.uk\db\books.mdb

    Originally posted by: raycafc
    Thanks for your help. However I still have a problem...
    Your program gave me a string of:
    C:\Inetpub\vhosts\notjustbooks.co.uk\httpdocs\njb\ YourDB.mdb and I've tried
    various permutations of this, such as:
    httpdocs\njb\books.mdb, but I get errors returned, such as:
    'c:\httpdocs\njb\books.mdb' is not a valid path. Make sure that the path name
    is spelled correctly and that you are connected to the server on which the file
    resides. So it still seems to think I'm using a local server rather than the
    web itself. So I'd be grateful for any further help.

    Thanks again






    CarlGrint Guest

  6. #5

    Default Re: Convert Db connection for use on web

    I haven't tried it yet, but if you're specifying C: doesn't that mean that you're testing on your PC?
    raycafc Guest

  7. #6

    Default Re: Convert Db connection for use on web

    I was just copying the string you pasted from the page I gave you...so that is
    why C is there, but don't forget the hosting server is a PC to, it has C, D, E
    drives just like your home pc, so it has to be one or the other.


    Originally posted by: raycafc
    I haven't tried it yet, but if you're specifying C: doesn't that mean that
    you're testing on your PC?



    CarlGrint Guest

  8. #7

    Default Re: Convert Db connection for use on web

    Can't it be a relative link instead of a root link taking place form your
    home folder like:
    notjustbooks.co.uk\db\books.mdb

    or even
    db\books.mdb

    On Sun, 6 Mar 2005 15:37:39 +0000 (UTC), CarlGrint
    <webforumsuser@macromedia.com> wrote:
    > I was just copying the string you pasted from the page I gave you...so
    > that is
    > why C is there, but don't forget the hosting server is a PC to, it has
    > C, D, E
    > drives just like your home pc, so it has to be one or the other.
    >
    >
    > Originally posted by: raycafc
    > I haven't tried it yet, but if you're specifying C: doesn't that mean
    > that
    > you're testing on your PC?
    >
    >
    >


    --
    Alexandro Colorado
    ------------------------------
    Support Engineer
    InterAKT Online
    [url]http://www.interaktonline.com[/url]
    Tel: 40(21) 312.5312
    Alexandro Colorado Guest

  9. #8

    Default Re: Convert Db connection for use on web

    I find this connection thing so confusing, but I've sorted it anyway. Thanks to
    those who helped, maybe I didn't ask the right question, but eventually I
    managed to sort it with the following:
    MM_connNJB_STRING = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" &
    Server.MapPath("Database\books.mdb")

    raycafc 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