A year ago I purchased an application which uses an SQL database in SQL Server 2005. The database is loaded on our main server, which runs W2003 SBS and is our Domain Controller, Exchange Server and print server. At the time we also had a W2003 Terminal Server running 32 bit. Some people access the database directly from their workstations, but most people use the Terminal Server. We had no problems until this week. We took our W2003 Terminal Server and rebuilt it with 64 bit W2003. We reloaded the application and thought things were going okay but have found an interesting problem.
User A has a workstation and can connect through the workstation, but when he is on the TS and tries to connect he gets a message "Could not connect to database: Cannot open database "Service" requested by the login. The login failed. Connection: Provider SQLOLEDB;Network Library=dbnmpntw;Trusted_C
onnection=
yes;Server
=lmg01\ESC
;Database=
Service" LMG01 is the name of our server, so LMG01\ESC is the name of the Database server. The Database is Service.
User B has no workstation, but only a thin client. User B can log in to the TS and try to connect using the same settings and is successful.
The login method is Windows authentication. When user B is asked to fill in a Database Name he can search and see 4 available databases. When user A tries to search there is no dabase found. I used Microsoft SQL Server Management Studio Express and went to the folders for Security and Logins. Both users A and B are there. I looked at every possible window. Connection properties were identical, except for the SPID. Th only other place I could see a difference was under Login Properties, User Mapping. User B did have the Database Service checked as mapped, but User A did not. I did place a check for that database and tried to save it. It would not save it and a copy of the error message is attached.
I contacted Customer Support at the firm which supplied the programs and they suggested I contact Microsoft for support. Before I go down that path I thought I would first try here. I am a novice at SQL and therefore might need extra details. Also this is Friday and I will not be able to check back on this until Monday