Database suddenly inaccessible

Discussion in 'Databases' started by cragi, May 23, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I haven't performed any updates on the site, but suddenly I get an error message on pages that access the database. The only modifications I was doing were on the directory permissions, and I reset those to see if that affected the database somehow. This is the message received:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

    /search/includes/db_open.asp, line 12




    The line of code its referring to is:
    Con.Open "Driver={SQL Server};Server=mssql05.discountasp.net;Network=DBMSSOCN;Database=DB_65955;Uid=XXXXXXXX;Pwd=XXXXXX"

    Where XXXXXXX refers to my username & Password
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    This is a common problem w/ ODBC

    Switch your code to OleDB should solve the problem, see http://kb.discountasp.net/article.aspx?id=10061


    quote:Originally posted by cragi

    I haven't performed any updates on the site, but suddenly I get an error message on pages that access the database. The only modifications I was doing were on the directory permissions, and I reset those to see if that affected the database somehow. This is the message received:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

    /search/includes/db_open.asp, line 12




    The line of code its referring to is:
    Con.Open "Driver={SQL Server};Server=mssql05.discountasp.net;Network=DBMSSOCN;Database=DB_65955;Uid=XXXXXXXX;Pwd=XXXXXX"

    Where XXXXXXX refers to my username & Password

    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page