Home Forums SQL Server 7,2000 T-SQL Error Message:Cannot open database requested in login ''databasename''. Login fails. RE: Error Message:Cannot open database requested in login ''''databasename''''. Login fails.

  • Hi,

    This type of problem exists when you are using the linked queries that reference the remote server which could not be login on a trusted connection coz, Sql uses the trusted connection to create a link between the servers.

    You can use the OpenRowset function in your procedure where you are using the linked  queries.

    Thanks.

    Amit Gupta (MVP)