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

  1. #1

    Default ASP Constants

    Hi,

    In order to create an ADO connection and gets it running, I have to declare
    the ADO constants as :

    "<!-- METADATA TYPE = "Typelib" File = "C:\Program Files\Fichiers
    communs\System\ADO\MSADO15.DLL" -->"

    What bothers me is that I don't like the hardcoded path. Is there a better
    and more generic way?

    Thanks,

    Jack


    Jack Guest

  2. Similar Questions and Discussions

    1. ADO Constants
      I'm trying to transfer an intranet app from one server to another. I'm having a problem with the ADO constants on the destination server. Our...
    2. constants
      hi, why should I use constants? thx for help Michael
    3. Using Constants
      I'm considering using constants for some predefined paths in my script, like HTML_DIR, INC_DIR. These values won't change and they will be global...
    4. VBS Constants
      I realize that this isn't a VBS newsgroup, but it's the only Microsoft newsgroup I read regularly so I hope that you'll be gentle with me. Where...
    5. RDoc now does constants
      I've added experimental support for documenting constants to RDoc. Right now it's only in the CVS version, and only the default HTML template makes...
  3. #2

    Default Re: ASP Constants

    You could just define the constants that you need and throw them in the same
    include that has your connection string and everything, or you can just use
    the actual values instead of named constants. (Don't start, Barrows!)

    Ray at work

    "Jack" <tardifj@inextenso.qc.ca> wrote in message
    news:iXWkb.25012$Ol.508569@read1.cgocable.net...
    > Hi,
    >
    > In order to create an ADO connection and gets it running, I have to
    declare
    > the ADO constants as :
    >
    > "<!-- METADATA TYPE = "Typelib" File = "C:\Program Files\Fichiers
    > communs\System\ADO\MSADO15.DLL" -->"
    >
    > What bothers me is that I don't like the hardcoded path. Is there a better
    > and more generic way?
    >
    > Thanks,
    >
    > Jack
    >
    >

    Ray at Guest

  4. #3

    Default Re: ASP Constants

    Jack wrote:
    > Hi,
    >
    > In order to create an ADO connection and gets it running, I have to
    > declare the ADO constants as :
    >
    > "<!-- METADATA TYPE = "Typelib" File = "C:\Program Files\Fichiers
    > communs\System\ADO\MSADO15.DLL" -->"
    >
    > What bothers me is that I don't like the hardcoded path. Is there a
    > better and more generic way?
    >
    > Thanks,
    >
    > Jack
    The path is not needed. See [url]http://www.aspfaq.com/show.asp?id=2112[/url]

    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 Guest

  5. #4

    Default Re: ASP Constants

    You either need the UUID, or you need the path if you want to include the
    TypeLibrary

    Or you can define the constants manually

    Or you can include the adovbs.inc file (however, this is kinda large - you
    might want to trim out the constants you don't need/want, and save as your
    own custom constants file)

    Cheers
    Ken

    "Jack" <tardifj@inextenso.qc.ca> wrote in message
    news:iXWkb.25012$Ol.508569@read1.cgocable.net...
    : Hi,
    :
    : In order to create an ADO connection and gets it running, I have to
    declare
    : the ADO constants as :
    :
    : "<!-- METADATA TYPE = "Typelib" File = "C:\Program Files\Fichiers
    : communs\System\ADO\MSADO15.DLL" -->"
    :
    : What bothers me is that I don't like the hardcoded path. Is there a better
    : and more generic way?
    :
    : Thanks,
    :
    : Jack
    :
    :


    Ken Schaefer 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