Connect NAV2013 R2 service to separated SQL Server on Workgroup

Phenno
Member Posts: 630
Hi All!
Is there a way to connect NAV2013 service to separated SQL server while everyting is on workgroup, meaning without AD?
I have specific situation where I need connectivity from NAVservice to external resources not available from SQL server so I need to put NAVservice to my local machine...
Is there a way to connect NAV2013 service to separated SQL server while everyting is on workgroup, meaning without AD?
I have specific situation where I need connectivity from NAVservice to external resources not available from SQL server so I need to put NAVservice to my local machine...
0
Best Answer
-
Hi,
If you are not in the same network then you have to use VPN to join the same network.
If you are in the same network, then setup the NAV service with the user "Network Service" on you local machine. (NT AUTHORITY\NETWORK SERVICE)
If the name of your laptop is e.g. LAPTOP,
then a user should be "workgruop\LAPTOP$" on the SQL server.
I am not sure if workgruop\LAPTOP$ is the correct name but you can double check this, by starting the NAV service. (it will fail but it will create a helpful error message on SQL server)
Then start SQL studio manager connect to the SQL server, and go to Management -> SQL Server Logs ->Current.
In the list of error messages it should be an error message that says a user e.g. "workgp\LAPTOP$" tried to connect to the database XY.
Use that name e.g. "workgp\LAPTOP$" to create a login in SQL and give it db_owner permissions on the database
The NAV service will now start from your local machine without a domain
I hope this helps.5
Answers
-
Hi,
If you are not in the same network then you have to use VPN to join the same network.
If you are in the same network, then setup the NAV service with the user "Network Service" on you local machine. (NT AUTHORITY\NETWORK SERVICE)
If the name of your laptop is e.g. LAPTOP,
then a user should be "workgruop\LAPTOP$" on the SQL server.
I am not sure if workgruop\LAPTOP$ is the correct name but you can double check this, by starting the NAV service. (it will fail but it will create a helpful error message on SQL server)
Then start SQL studio manager connect to the SQL server, and go to Management -> SQL Server Logs ->Current.
In the list of error messages it should be an error message that says a user e.g. "workgp\LAPTOP$" tried to connect to the database XY.
Use that name e.g. "workgp\LAPTOP$" to create a login in SQL and give it db_owner permissions on the database
The NAV service will now start from your local machine without a domain
I hope this helps.5 -
Will try that, thank you.0
-
I'm receiving this message in SQL server:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
It seems that first I have anonymus Logon. Maybe I have to change some windows options for login...0 -
Vremeni, it's Working! But with anonymus logon which is more than security risk even in temporary development environment such as this... I will try to find a way to authenticate, at least as my laptop but this is quite ok for start.0
-
Hi,
Well, true this is not very secure.
Another option which I forgot,
Create a user in the domain, that you want to use for the service.
Then start NAV Admin Control , right click on the service and select "Login Account".
Then in the middle panel click on edit button and you can insert the username, domain and password. (see attached screenshot)
This should work too, but this imply that you have a dedicate user created in the domain for this.
I hope this helps.
0 -
Vremeni,
I do not have domain at all, plain old workgroup environment. Only domains are computers itself.0 -
Hi,
In that case I would suggest to make sure that SQL machine and your laptop can "see" each other.
If you setup your laptop that your workgroup/network is your "home" or "work" and say that you want to share on both, then SQL should see the name of the laptop instead of Anonymous.
I hope this helps.0 -
Ok, will try that also.0
-
Instead of using network service, you can create a local user on both the SQL Server and the service tier. Both NEED to be the exact same name and same password. Then you add that user inside your SQL server.
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I will try this also, thanx.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