SQL Server 2008.

  • SQL Server 2008

    Login:sa

    Password:12345

    ODBC - Am I doing it correctly?

  • Looks fine? what is the question about?

    Why are you using the Native Client driver?

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • Trying to make this 'Online Ticket System' run.

    Kept getting this error.

    Using Classic ASP, some say ODBC won't work with it.

    Here's the system if wish to test it.

  • 'Database coding commence

    dim rs, sql, cn, Title, Body, DateTime

    'Set connection details

    set cn = server.CreateObject("ADODB.Connection")

    cn.Open "DSN=Trains;UID=sa;PWD=;DATABASE=Trains"

    no password hardcoded in you're asp page code?

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • If I add password;

    cn.Open "DSN=Trains;UID=sa;PWD=12345;DATABASE=Trains"

    Got this error;

    Error Type:

    Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)

    [Microsoft][SQL Server Native Client 10.0][SQL Server]Cannot open database "Trains" requested by the login. The login failed.

    /Trains/Main.asp, line 106

  • create a special account with the correct permissions to the DB, and

    replace the login ID in the authentication with the new ID.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply