NAV 2013 SQL restore

Capone
Member Posts: 125
Hi!
I can't manage to restore the backup SQL database that comes with.
Well, I can restore it and can connect with the developer client but I can't connect to it with the RTC client:
"You are not authorized to sign in. Verify that you are using a valid credentials and that you have been set up as a user in Microsoft Dynamics NAV"
It seems like the "hen and egg problem". :-k I need to add the user to connect, but I can't connect because I can't add the user.
Text in the eventviewr:
Service: DynamicsNAV70
User: XXXXXX
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavInvalidCredentialException
SuppressMessage: False
FatalityScope: None
Message: The server has rejected the client credentials.
StackTrace:
at Microsoft.Dynamics.Nav.Service.NSServiceBase.ValidateAndCreateConnection(ConnectionRequest connectionRequest)
at Microsoft.Dynamics.Nav.Service.NSServiceBase.OpenConnection(ConnectionRequest connectionRequest)
Source: Microsoft.Dynamics.Nav.Service
I can't manage to restore the backup SQL database that comes with.
Well, I can restore it and can connect with the developer client but I can't connect to it with the RTC client:
"You are not authorized to sign in. Verify that you are using a valid credentials and that you have been set up as a user in Microsoft Dynamics NAV"
It seems like the "hen and egg problem". :-k I need to add the user to connect, but I can't connect because I can't add the user.
Text in the eventviewr:
Service: DynamicsNAV70
User: XXXXXX
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavInvalidCredentialException
SuppressMessage: False
FatalityScope: None
Message: The server has rejected the client credentials.
StackTrace:
at Microsoft.Dynamics.Nav.Service.NSServiceBase.ValidateAndCreateConnection(ConnectionRequest connectionRequest)
at Microsoft.Dynamics.Nav.Service.NSServiceBase.OpenConnection(ConnectionRequest connectionRequest)
Source: Microsoft.Dynamics.Nav.Service
Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
0
Answers
-
Have you grant execution rights for the service user in SQL?
For Example:
NAV2013 Service is running under "Local Service" Account
In SQL the "Local Service" Login must have the right to access the database (e.g. sysadmin)0 -
The DynamicsNAV70 service is run with "Network Service"
The "NT Authority\Network Service" login to the SQL server instance have the right public and sysadmin. The login have also been mapped to the database.
However, the error message I recieve says that my own credentials aren't good enough.
My own credentials to the login is sysadmin and that login is also mapped to the database.
It doesn't feel like a SQL credential error since I can connect to the db with the dev client and not with the rtc clientHello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com0 -
Found the problem! #-o
Ordinary we have a primary SQL instance. When the installation was done it created a new instance for the NAV7 db.
What I did was that I restored a db to our primary but the RTC tried to connect to the new instance and of course I hadn't updated the rights on that one.
That explains why I could connect with the dev client and not the rtc...Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com0 -
Hi Capone,
I'm facing the same problem.I created a new database in nav 2013 & I restored a db bkup & created instance for same. When i tried to connect to the new instance, i receive the error
"You are not authorized to sign in. Verify that you are using a valid credentials and that you have been set up as a user in Microsoft Dynamics NAV"
And i have appropriate rights in the server.
](*,).0 -
Hi,
Go to SSMS , Select the database which you restored --> Right click -->New Query
Execute the below query
delete from [dbo].[User]
delete from [dbo].[Access Control]
delete from [dbo].[User Property]
Check the database permission Weather you have dbowner for that database.
Check you have uploaded the correct licence in database
Restart the NAV SERVER
RTC Should Open - After RTC Open don't forget to add the user name in user setup.
hope it will be useful
Thanx,
Rathin0 -
Hi rathin,
I did it. but now receiving this error
Microsoft Dynamics NAV
A fatal error occurred. The connection to SQL server cannot be established or is no longer usable. This can be caused by one of the following reasons:
* The server has been shut down manually or because of an error.
* The SQL server connection settings are not correct
* A network failure has occurred.
* A hardware failure has occurred on the server or on your computer.
Try again later or contact your system administrator.
OK
](*,)0 -
Restart service of Sql server managment studio(Local).and also restart SQL Server Agent.
make sure that your server instance is running.“Any fool can know. The point is to understand.”
― Albert Einstein0 -
USE [Database Name]
GO
delete from [dbo].[User]
delete from [dbo].[Access Control]
delete from [dbo].[User Property]
delete from [dbo].[Page Data Personalization]
delete from [dbo].[User Default Style Sheet]
delete from [dbo].[User Metadata]
delete from [dbo].[User Personalization]
try this0 -
Hi,
Change the log on a/c as "Local System"
Restart the service
Regards,
Rathin0 -
Hi All,
Thank you. Problem solved.Started working on Upgrade to NAV 2013 R2.
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