# Maintain a SQL user on a Dynamic NAV 2009

**URL:** <https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364>\
**Category:** Technical Forum\
**Created:** [January 18, 2014, 10:51am UTC](https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364 "2014-01-18T10:51:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenrikDK](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@HenrikDK](https://www.dynamicsuser.net/u/HenrikDK)\
**Post date:** [January 18, 2014, 10:51am UTC](https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364/1 "2014-01-18T10:51:42Z")

</div>

Hi,

I have a problem that is driving me insane; or close to anyway.

I have a setup with an SQL server running a Dynamic NAV 2009 (they are using classic client). I have made a model in Excel and I need to read some information directly in the SQL database and also write in a couple of new Navision tables, that I have created; so no writing to ledger tables or anything.

The problem is, if I create a SQL user, it is removed the next time I synchronize the users from Navision. So we created a domain user in Navision and this user was given the correct read and write access in SSMS afterwards. I am unable to use this domain user as a way of access the SQL database, because Excel are only able to use the current windows login; not an alternative.

As I see it, the only way is to create a SQL user that has the required access and find a way for it not to be removed every time I synchronize. Or is there another way I just do not know about?

Hope you can help and have a good weekend.

Yours sincerely  
Henrik Larsen

---

<div class="post-metadata">

**Author:** ![babrown](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@babrown](https://www.dynamicsuser.net/u/babrown)\
**Post date:** [January 20, 2014, 11:28am UTC](https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364/2 "2014-01-20T11:28:17Z")

</div>

Add the domain account, that you are using to access Excel, to NAV under “WIndows Logins”.

---

<div class="post-metadata">

**Author:** ![stryk](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stryk](https://www.dynamicsuser.net/u/stryk)\
**Post date:** [January 21, 2014, 10:30am UTC](https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364/3 "2014-01-21T10:30:34Z")

</div>

Or just put that “SQL Login” to NAV’s “Database Logins” (you even don’t need to assign roles). NAV just needs to “know” about this login, the the Synchronization won’t delete the USer from the db …

---

<div class="post-metadata">

**Author:** ![HenrikDK](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@HenrikDK](https://www.dynamicsuser.net/u/HenrikDK)\
**Post date:** [January 21, 2014, 11:42pm UTC](https://www.dynamicsuser.net/t/maintain-a-sql-user-on-a-dynamic-nav-2009/50364/4 "2014-01-21T23:42:40Z")

</div>

@Joerg, do I understand it correct, if I say that I can do this:

1. Create a databaseuser
2. Synchronize to SQL from Navision
3. Add the read (and write) to the tables I need the user to have access to - this is done from SSMS
4. The next synchronization should not delete the access I have setup in SSMS

/Henrik
