Access to a Nav database without users creation SQL 2005

andy76
Member Posts: 616
Good morning,
I have restored a database of a customer on our server and I lost to create and synchronize the users.
I worked on it and now, after a pair of days having worked on it, I can not access it.
The database is on SQL 2005 and I am a DBA on SQL.
Is it possible to create the users and access the database or is it impossible?
Thank you
Andrea
I have restored a database of a customer on our server and I lost to create and synchronize the users.
I worked on it and now, after a pair of days having worked on it, I can not access it.
The database is on SQL 2005 and I am a DBA on SQL.
Is it possible to create the users and access the database or is it impossible?
Thank you
Andrea
0
Comments
-
It is possible, but rather difficult. An easier solution is normally to remove all the users and recreate them once you're in.
All you have to do is to clear out 4 tables, "Member Of", "User", "Windows Access Control", "Windows Login". You should then be able to login as an administrative user.
BUT BEWARE, I haven't tried this with the Enhanced Security model, If you have set this up I think the above will still work, however, there will be debris left behind. Specifically, there is a table called something like $ndo$dbusers that contains application role passwords and the application roles themselves. You need to be very careful though there's one application role you must not delete.
(edit: "application role" not "user role" do'h)Robert de Bath
TVision Technology Ltd0 -
Maybe this helps : http://mibuso.com/blogs/kriki/2009/02/18/how-to-get-access-when-you-cant-get-into-your-nav-sql-db/Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank you very much for this link.
Yesterday I could access the db but nod made all settings so then I exported the object fob modified and decided to restore the original database from original backup, create the correct users and then import the object and continue on it.
Next time I will try with these suggestions...
Thank you again0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions