I’m testing NAV 2009 and i detect database.I restored new database(Std database) to sql(2005). And then when i open RTC and later 2 or 3 mins all service is shutdown(NAV). Database login is window author:.
To enable and assign minimum permissions for the Object Change Listener
Open SQL Server Management Studio, and then connect to your SQL Server instance.
On the File menu, point to New, and then click Query with Current Connection.
Type the following SQL statements.
Copy
USE MASTER
CREATE LOGIN [ReplaceWithNAVServerAccount] FROM WINDOWS;
GO
Highlight the lines that you typed, and then on the Query menu, click Execute.
Type these lines after the existing lines.
Copy
USE [ReplaceWithYourDatabaseName]
CREATE USER [ReplaceWithNAVServerAccount] FOR LOGIN [ReplaceWithNAVServerAccount];
Highlight the lines that you just typed, and then on the Query menu, click Execute.
Type these lines after the existing lines.
Copy
CREATE SCHEMA [$ndo$navlistener] AUTHORIZATION [ReplaceWithNAVServerAccount];
GO
Highlight the lines that you just typed, and then on the Query menu, click Execute.
You may see an error stating that the schema in question already exists. You can ignore this error.
Type these lines after the existing lines.
Copy
ALTER USER [ReplaceWithNAVServerAccount] WITH DEFAULT_SCHEMA = [$ndo$navlistener];
GRANT SELECT ON [Object Tracking] TO [ReplaceWithNAVServerAccount];
GO
Highlight the lines that you just typed, and then on the Query menu, click Execute.
Note
The Object Tracking table name may be in a different language than English. If it is, then replace “Object Tracking” with the actual table name from your database.
Save your query to keep a record of these actions.
I followed your instruction. Please check my SQL Code. After i run sql code stay auto shutdown NAV Service and Web Service. Do you have any idea for that case?
USE MASTER
CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS;
USE NAV Database
GO
CREATE USER [NETWORK SERVICE] FOR LOGIN [NT AUTHORITY\NETWORK SERVICE];
GO
CREATE SCHEMA [$ndo$navlistener] AUTHORIZATION [NETWORK SERVICE];
GO
ALTER USER [NETWORK SERVICE] WITH DEFAULT_SCHEMA = [$ndo$navlistener];
GRANT SELECT ON [Object Tracking] TO [NETWORK SERVICE];
GO
Thank your reply. I let you know my service setting and pc setting.
My PC is installed window2008 but don’t create AD.
My NAS Service is running with Network Services (NT Service). I don’t change anything at there. (This setting is NAV install default setting) . I’m using same pc.
When i run NAV 2009 RTC, it is quiet work. After that i detect NAV Demo database and rename file. Then restore standard database. But i can run RTC within 1 or 2 min only. If i check at service, all services are stopped.
I run Query base on DRB reply and read at microsoft site. But stay auto shutdown.
I detect restored database and attach back original database. In this time service is not auto shutdown and i can use RTC. But i can’t use original database.