Add user thru SQL

Johan_007
Member Posts: 53
Hi all, i have been accidently locked, deleted my user name, out my clients DB. Can i add my user name and password thru sql :?: :-k :-k
i know it might cause issues but i dont feel like going thru all the troubles of backing up on on of their pcs and recreating the DB.
i know it might cause issues but i dont feel like going thru all the troubles of backing up on on of their pcs and recreating the DB.
0
Answers
-
Did you accidentally remove the user from SQL Server or from NAV? If it's from NAV then you're out of luck, that user won't be available. If it's from SQL Server, just put the same login back in, it should still have the NAV permissions in the NAV database. If that doesn't work, then ask the customer if they had a SUPER database login that you then can add to get back into the database.
Sometimes it will let you in with the SA account0 -
see, from some stupid reason i deleted my user name in NAV ](*,) but when i browse thru the SQL DB table _ Member Of, my username is still there but not in the USER table.. so now i cant develop until i get my ursname back in there ](*,)0
-
Was that the only user in there? You can go through the user tables and remove all user references, and then you should be able to get in with the sa account. I'm assuming that this is your personal local development database that you have on your laptop. You would of course never remove all user references from a production database.0
-
nope.. it was the production DB.. but.. i tried and it has worked!! \:D/ =D> but you have to be careful how you add the user thru SQL for NAV.. phew, glad I didn't stuff anything up.0
-
looks good now. i know NAV is very sensitive to adding fields to it thru SQL, but it worked!0
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