web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Copy SQL 2000 Login as a user on a new database on the same SQL server

(0) ShareShare
ReportReport
Posted on by

Hello.  I recently created a new test database on our NAV test server.  I restored from a NAV backup (set of .fbk files).  The users from the OLD database were created in NAV, but not in SQL.  How can I copy the users from the old database to the new one?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Neville Foyn Profile Picture
    4,320 on at
    RE: Copy SQL 2000 Login as a user on a new database on the same SQL server

    Hi Lewis

    When you restore from a FBK the system rebuilds the structure of the database so you can see the users in the NAV side (As those are actually data records) however cannot see them in SQL (As that is structural side)

    Couple of options,

    You can redo the transfer as a SQL backup, this will bing the structure as well

    Capture the users manually onto the new SQL server

    or use SQL scripts to transfer the users (This is pretty complicated so don't attempt unless you have someone with SQL scripting skills)

    Cheers

    Nev

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Copy SQL 2000 Login as a user on a new database on the same SQL server

    The weird thing is some of the SQL "logins" were copied as SQL "users" for the new database and some were not.

    Here's what worked:

    (1)  With SQL 2000 Enterprise Manager, I went into each user and selected the new database in the database access tab and checked "public"

    (2) I also had to use Query Analyzer to do a sp_changedbowner for my power user and change the database owner to 'sa'.  I was then able to add the user back into NAV and in SQL add the new database as described in step 2,

    (3) In NAV, I changed security from Enhanced to Standard (File  > Database > Alter).  I did not realize it was Enhanced...it has been a long time since I played with that!

    (4) Now I was able to log on and Synchronize security.

  • Neville Foyn Profile Picture
    4,320 on at
    RE: Copy SQL 2000 Login as a user on a new database on the same SQL server

    Strange one, glad you go it sorted

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans