Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Code to verify DSN

    Does anyone have a simple code that will verify whether or not the DSN
    I had the ISP set up is working? I can't seem to get it right...
    Thanks,

    Jeremy
    Jeremy Guest

  2. Similar Questions and Discussions

    1. VERIFY MY CODE
      my code is :<a href "http://admin.priorityclick.com/leadsadmin/basic authenticate.jsp?#session.admin_name##CFID=#CFID#CFTOKEN=#CFTOKEN# IS THIS...
    2. How to verify array
      Hi, Can someone tell me how to verify array. I read excel file and store it in the range array. However, if excel sheet some cell is empty. then...
    3. Perl code to verify web site (SSL) certificate
      I have been searching for a script that will allow me to connect to a https web site and confirm that the web server has valid dates and the...
    4. Verify cookies
      I'm having trouble verifying the cookie that I leave on a client's computer. Here is the code: <% Dim sPath, filesys, count, getValue, update,...
    5. XP ntbackup can't verify iis.dll
      I am experiencing a probably harmless but annoying problem when trying to make a system state backup using ntbackup on XP professional. Although...
  3. #2

    Default Re: Code to verify DSN

    Jeremy wrote:
    > Does anyone have a simple code that will verify whether or not the DSN
    > I had the ISP set up is working? I can't seem to get it right...
    > Thanks,
    >
    > Jeremy
    Don't bother. Use DSN-less connection strings, preferably with the native
    OLEDB provider for your database. MS has deprecated the OLEDB Provider for
    ODBC, so the use of DSN's is discouraged.

    See [url]www.connectionstrings.com[/url] or [url]www.able-consulting.com/ado_conn.htm[/url] for
    details.

    HTH,
    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  4. #3

    Default Re: Code to verify DSN


    Bob Wrote:
    > Don't bother. Use DSN-less connection strings, preferably > with the
    native OLEDB provider for your database. MS has > deprecated the OLEDB
    Provider for ODBC, so the use of > DSN's is discouraged.


    I'm having trouble with that because the ISP server has, from what they
    tell me, a UNIX file structure This is what I get when I do a
    server.mappath:

    \\H-FILER01\Webfolder\weburl\folder\..

    Since there isn't a clear windows path, I don't think I have a choice
    but to go via DSN, right??

    Jeremy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Jeremy Zifchock Guest

  5. #4

    Default Re: Code to verify DSN

    Jeremy Zifchock wrote:
    > Bob Wrote:
    >> Don't bother. Use DSN-less connection strings, preferably > with the
    > native OLEDB provider for your database. MS has > deprecated the OLEDB
    > Provider for ODBC, so the use of > DSN's is discouraged.
    >
    >
    > I'm having trouble with that because the ISP server has, from what
    > they tell me, a UNIX file structure This is what I get when I do a
    > server.mappath:
    >
    > \\H-FILER01\Webfolder\weburl\folder\..
    >
    > Since there isn't a clear windows path, I don't think I have a choice
    > but to go via DSN, right??
    >
    I've no experience with Unix boxes, but have you tried using the path you
    get from MapPath in a connection string?

    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  6. #5

    Default Re: Code to verify DSN

    That looks like a UNC path, not a "UNIX file structure"... ask the web host
    again. Are you sure you are running ASP pages on a Unix server (using
    ChiliSoft, ...?)? I think it is more likely that the file server is
    referenced differently, using a UNC share. See [url]http://www.aspfaq.com/2168[/url]
    for some information about connecting to an Access database on a separate
    share. Or, just upload the MDB file to your web root somewhere, and refer
    to it relatively. This other nonsense sounds like a real hassle.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:eac#nAROEHA.1644@TK2MSFTNGP09.phx.gbl...
    > Jeremy Zifchock wrote:
    > > Bob Wrote:
    > >> Don't bother. Use DSN-less connection strings, preferably > with the
    > > native OLEDB provider for your database. MS has > deprecated the OLEDB
    > > Provider for ODBC, so the use of > DSN's is discouraged.
    > >
    > >
    > > I'm having trouble with that because the ISP server has, from what
    > > they tell me, a UNIX file structure This is what I get when I do a
    > > server.mappath:
    > >
    > > \\H-FILER01\Webfolder\weburl\folder\..
    > >
    > > Since there isn't a clear windows path, I don't think I have a choice
    > > but to go via DSN, right??
    > >
    >
    > I've no experience with Unix boxes, but have you tried using the path you
    > get from MapPath in a connection string?
    >
    > Bob Barrows
    >
    > --
    > Microsoft MVP -- ASP/ASP.NET
    > Please reply to the newsgroup. The email account listed in my From
    > header is my spam trap, so I don't check it very often. You will get a
    > quicker response by posting to the newsgroup.
    >
    >

    Aaron Bertrand - MVP Guest

  7. #6

    Default Re: Code to verify DSN

    Sorry Bob, that reply was meant for Jeremy, not you.


    Aaron Bertrand - MVP Guest

  8. #7

    Default Re: Code to verify DSN

    Aaron Bertrand - MVP wrote:
    > Sorry Bob, that reply was meant for Jeremy, not you.
    NP - it made me take another look, which made me realize that you were
    right.
    Bob
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] 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