Database not defined, but it is...

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

  1. #1

    Default Database not defined, but it is...

    I have been hunting around and trying a number of KB
    articles - I will list them later - but I cannot display
    database results in my web page.

    Here is the situation. I built the website in FP 2000. I
    have a few .asp pages in the site meant to connect with a
    database created in Access 2000 and stored in a folder in
    the website.
    I inserted the database results on a page within my web
    and was able to successfully add and verify the database.
    I have IIS 5.0 installed and configured on a Windows 2000
    box with the FrontPage Extenstions for testing.
    I have published to a subweb in the wwwroot and everything
    looks to be in order. Everytime I call a page that calls
    a DB I get the following:
    Database Results Error
    The database connection named 'database1' is undefined.

    This problem can occur if:
    * the connection has been removed from the web
    * the file 'global.asa' is missing or contains errors
    * the root folder does not have scripting permissions
    enabled
    * the web is not marked as an application root

    The connection has not been removed, I have renamed and
    then "recreated" the global.asa file as per a KB article,
    the root folder does indeed have scripting permissions
    enabled and the web IS an application root.

    ASP seems to be functioning properly as I am able to
    execute various scripts. I have tested this a number of
    different ways and I have been successful each time. The
    problems seem to start when I attempt to connect to a DB,
    any Access DB I have created and I have created and tested
    a number of them.

    I have tried these KB articles for a solution, but none
    has resolved the issue: 219170, 232612, 265323, 265174,
    204152, among others.

    The most telling one was 265174. The article says that if
    the =Application() variable returns nothing (which it
    did), one of the following conditions is true:
    The Global.asa file is not being executed; this is
    probably because of the folder not being configured as a
    program.
    The Connection String in the ASP code is not defined in
    the Web settings.

    It refers me to another article, but this does not resolve
    the issue either.

    Does anybody have any ideas?

    Thanks, Ann

    ann_nyc Guest

  2. Similar Questions and Discussions

    1. Why are some defined and some not???
      I have the following code, that pulls off what I am defining as the PID #, and then comparing that # in a <cfswitch>/<cfcase> statement to define a...
    2. To Many Fields Defined
      I'm attempting to pass in approx. 130 variables as an update to a database, but recieve the error message "To many field defined". Is there a way...
    3. Error : oRS not defined
      <INPUT TYPE=BUTTON NAME=cmdUpdate onclick="oRS.udpatebatch ()" Value="Update Records"> Any wrongs in this script? DS
    4. Defined result if
      I am attempting to write a function that returns a result (A1, A2, A3) if a hire date is between preset dates. If hire date is between 01/01/2002...
    5. How to test a hash of arrays for defined/not defined
      "Steve" <ineverlookatthis@yahoo.com> wrote in message news:f0d57f86.0306300420.403e83e7@posting.google.com... I think you want: $chosen =...
  3. #2

    Default Re: Database not defined, but it is...

    It's very difficult to follow a long story of a problem as opposed to seeing
    the actual error message that the server returns, the line on which the
    error exists, and any other relevant pieces of code that have to do with is
    happening (or supposed to be happening) on that line with the error.

    --

    Ray at home
    Microsoft ASP MVP


    "ann_nyc" <anonymous@discussions.microsoft.com> wrote in message
    news:ecde01c3f0be$56412bf0$a601280a@phx.gbl...
    > I have been hunting around and trying a number of KB
    > articles - I will list them later - but I cannot display
    > database results in my web page.
    >
    > Here is the situation. I built the website in FP 2000. I
    > have a few .asp pages in the site meant to connect with a
    > database created in Access 2000 and stored in a folder in
    > the website.
    > I inserted the database results on a page within my web
    > and was able to successfully add and verify the database.
    > I have IIS 5.0 installed and configured on a Windows 2000
    > box with the FrontPage Extenstions for testing.
    > I have published to a subweb in the wwwroot and everything
    > looks to be in order. Everytime I call a page that calls
    > a DB I get the following:
    > Database Results Error
    > The database connection named 'database1' is undefined.
    >
    > This problem can occur if:
    > * the connection has been removed from the web
    > * the file 'global.asa' is missing or contains errors
    > * the root folder does not have scripting permissions
    > enabled
    > * the web is not marked as an application root
    >
    > The connection has not been removed, I have renamed and
    > then "recreated" the global.asa file as per a KB article,
    > the root folder does indeed have scripting permissions
    > enabled and the web IS an application root.
    >
    > ASP seems to be functioning properly as I am able to
    > execute various scripts. I have tested this a number of
    > different ways and I have been successful each time. The
    > problems seem to start when I attempt to connect to a DB,
    > any Access DB I have created and I have created and tested
    > a number of them.
    >
    > I have tried these KB articles for a solution, but none
    > has resolved the issue: 219170, 232612, 265323, 265174,
    > 204152, among others.
    >
    > The most telling one was 265174. The article says that if
    > the =Application() variable returns nothing (which it
    > did), one of the following conditions is true:
    > The Global.asa file is not being executed; this is
    > probably because of the folder not being configured as a
    > program.
    > The Connection String in the ASP code is not defined in
    > the Web settings.
    >
    > It refers me to another article, but this does not resolve
    > the issue either.
    >
    > Does anybody have any ideas?
    >
    > Thanks, Ann
    >

    Ray at Guest

  4. #3

    Default Re: Database not defined, but it is...

    <<
    I have been hunting around and trying a number of KB
    articles - I will list them later - but I cannot display
    database results in my web page.

    Here is the situation. I built the website in FP 2000. I
    have a few .asp pages in the site meant to connect with a
    database created in Access 2000 and stored in a folder in
    the website.
    I inserted the database results on a page within my web
    and was able to successfully add and verify the database.
    I have IIS 5.0 installed and configured on a Windows 2000
    box with the FrontPage Extenstions for testing.
    I have published to a subweb in the wwwroot and everything
    looks to be in order. Everytime I call a page that calls
    a DB I get the following:
    Database Results Error
    The database connection named 'database1' is undefined.

    This problem can occur if:
    * the connection has been removed from the web
    * the file 'global.asa' is missing or contains errors
    * the root folder does not have scripting permissions
    enabled
    * the web is not marked as an application root

    The connection has not been removed, I have renamed and
    then "recreated" the global.asa file as per a KB article,
    the root folder does indeed have scripting permissions
    enabled and the web IS an application root.

    ASP seems to be functioning properly as I am able to
    execute various scripts. I have tested this a number of
    different ways and I have been successful each time. The
    problems seem to start when I attempt to connect to a DB,
    any Access DB I have created and I have created and tested
    a number of them.

    I have tried these KB articles for a solution, but none
    has resolved the issue: 219170, 232612, 265323, 265174,
    204152, among others.

    The most telling one was 265174. The article says that if
    the =Application() variable returns nothing (which it
    did), one of the following conditions is true:
    The Global.asa file is not being executed; this is
    probably because of the folder not being configured as a
    program.
    The Connection String in the ASP code is not defined in
    the Web settings.

    It refers me to another article, but this does not resolve
    the issue either.

    Does anybody have any ideas?

    Thanks, Ann
    >>
    Perhaps create a DSN called database1 as it sounds like that's what your
    connection string consists of.

    Also the [url]www.asp101.com[/url] Samples section has some good database examples.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


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

  5. #4

    Default Re: Database not defined, but it is...

    Thank you for the response. I had created a DSN, so alas,
    that is not my issue. Thank you for the link to the site.

    Ann
    >-----Original Message-----
    ><<
    >I have been hunting around and trying a number of KB
    >articles - I will list them later - but I cannot display
    >database results in my web page.
    >
    >Here is the situation. I built the website in FP 2000. I
    >have a few .asp pages in the site meant to connect with a
    >database created in Access 2000 and stored in a folder in
    >the website.
    >I inserted the database results on a page within my web
    >and was able to successfully add and verify the database.
    >I have IIS 5.0 installed and configured on a Windows 2000
    >box with the FrontPage Extenstions for testing.
    >I have published to a subweb in the wwwroot and
    everything
    >looks to be in order. Everytime I call a page that calls
    >a DB I get the following:
    >Database Results Error
    >The database connection named 'database1' is undefined.
    >
    >This problem can occur if:
    >* the connection has been removed from the web
    >* the file 'global.asa' is missing or contains errors
    >* the root folder does not have scripting permissions
    >enabled
    >* the web is not marked as an application root
    >
    >The connection has not been removed, I have renamed and
    >then "recreated" the global.asa file as per a KB article,
    >the root folder does indeed have scripting permissions
    >enabled and the web IS an application root.
    >
    >ASP seems to be functioning properly as I am able to
    >execute various scripts. I have tested this a number of
    >different ways and I have been successful each time. The
    >problems seem to start when I attempt to connect to a DB,
    >any Access DB I have created and I have created and
    tested
    >a number of them.
    >
    >I have tried these KB articles for a solution, but none
    >has resolved the issue: 219170, 232612, 265323, 265174,
    >204152, among others.
    >
    >The most telling one was 265174. The article says that
    if
    >the =Application() variable returns nothing (which it
    >did), one of the following conditions is true:
    >The Global.asa file is not being executed; this is
    >probably because of the folder not being configured as a
    >program.
    >The Connection String in the ASP code is not defined in
    >the Web settings.
    >
    >It refers me to another article, but this does not
    resolve
    >the issue either.
    >
    >Does anybody have any ideas?
    >
    >Thanks, Ann
    >>>
    >
    >Perhaps create a DSN called database1 as it sounds like
    that's what your
    >connection string consists of.
    >
    >Also the [url]www.asp101.com[/url] Samples section has some good
    database examples.
    >
    >Best regards,
    >J. Paul Schmidt, Freelance ASP Web Developer
    >[url]http://www.Bullschmidt.com[/url]
    >ASP Design Tips, ASP Web Database Demo, Free ASP Bar
    Chart Tool...
    >
    >
    >*** Sent via Developersdex [url]http://www.developersdex.com[/url]
    ***
    >Don't just participate in USENET...get rewarded for it!
    >.
    >
    ann_nyc 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