Cannot open database requested in login

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

  1. #1

    Default Cannot open database requested in login

    I currently am trying to connect to a SQL Server 2000 database from an ASP page and a Java connection. I can connect to the database fine using ODBC locally, but when I try to create my connection string in ASP with the same username and password, I get an error

    Also, on the same server, I currently am connecting to a different database in ASP and that works fine

    Here is my connection string and error
    mstrConnection = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=userid;Password=password;Initial Catalog=catalog;Data Source=servername.com

    Microsoft OLE DB Provider for SQL Server (0x80004005
    Cannot open database requested in login 'catalog'. Login fails.
    heidiwags Guest

  2. Similar Questions and Discussions

    1. Database/Login on own PC
      Hi I'm making a site, but do not have an online host yet. I want to make a login system, so I need a database. but when i want to set the site...
    2. Illustrator CS won't open-- error "Cannot Complete Requested Operation"
      Weirdest thing, can't figure it out. I installed from our master license the onto to PC's running Windows XP the Adobe Creative Suite, and of all...
    3. ASP Login / Database Help.
      I am needing some help with a few asp pages and a login script. Let me start by describing my project. I am trying to connect to a database and...
    4. The file 'bin\WebProj.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open.
      Hi, All, I got this error when trying to compile a web project. The file 'bin\Kennel.dll' cannot be copied to the run directory. The requested...
    5. Protect using .htaccess - but dont open login box?
      Hi, Ive made a login page which shows the target url in a hidden field - so at the moment that is kind of pointless. I have a .htaccess file...
  3. #2

    Default Re: Cannot open database requested in login

    If you open Query Analyzer, select servername.com, select SQL
    authentication, COPY AND PASTE the userid from your connection string, COPY
    AND PASTE the password from your connection string, connect, and then
    execute USE CATALOG, do you successfully get in?

    Ray at home


    "heidiwags" <heidiwags99@yahoo.com> wrote in message
    news:605CFA45-2AF3-4E73-8FA0-F9D0B3ADC875@microsoft.com...
    > I currently am trying to connect to a SQL Server 2000 database from an ASP
    page and a Java connection. I can connect to the database fine using ODBC
    locally, but when I try to create my connection string in ASP with the same
    username and password, I get an error.
    >
    > Also, on the same server, I currently am connecting to a different
    database in ASP and that works fine.
    >
    > Here is my connection string and error:
    > mstrConnection = "Provider=SQLOLEDB.1;Persist Security Info=False;User
    ID=userid;Password=password;Initial Catalog=catalog;Data
    Source=servername.com"
    >
    > Microsoft OLE DB Provider for SQL Server (0x80004005)
    > Cannot open database requested in login 'catalog'. Login fails.

    Ray at 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