Re: Synchronizing database logins with Sql Server
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 2 May 2007 22:24:46 +0000 (UTC)
swimmer (swimmer@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
1.)Yes. The Synchronization is performed in the Navision Database.
2.) Error Message:
The Microsoft Business - Solutions Navision and the SQL Server
Security Systems have not been synchronized successfully. The SQL Server
login does not exist ont he Fourtest Server.
As I said that I don't know what Navision is, so I will have make
wild guesses. I would assume that Navision maintains its own user
table, and when you synchronize, you synchornize that user table with
the database users and their logins.
3.) The database was restored from another server. The users were
added to the SQL Server first and then the database was restored. This
function works on the original server but not on the new server.
When you restore a database from one server to another, you lose the
connection between the database users and the logins. Say that on the
source server there is a login Alfons and in the Navision database
there is a user with the same name mapped to that login. When you
restore this database, you may find that the user Alfons now maps
to the login Sture - or no login at all.
There is a stored procedure sp_change_users_login which takes of this
for SQL logins. I seem to recall that SP2 has something for Windows
logins as well, but I don't recall it right now.
If you believe that the synchronization function in Navision should
handle this remapping, I suspect that you may be a better off opening
a support case with the vendor.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Re: Synchronizing database logins with Sql Server
- From: Erland Sommarskog
- Re: Synchronizing database logins with Sql Server
- Prev by Date: Re: Default User
- Next by Date: Re: Default User
- Previous by thread: Re: Synchronizing database logins with Sql Server
- Next by thread: Re: script search for "dbo" in a database.
- Index(es):
Relevant Pages
|