Automation for several databases

julkifli33
Member Posts: 1,092
hi all ... i have case
for example i have 3 databases for NAV
then database 1 is the primary database for NAV
what i want is... database 2 and database 3 will follow what is in database 1 (only for GL Account table)
user will not input data in database 2 & 3... only database 1 will be keyed in
is it possible?
how should i do that?
thanks
for example i have 3 databases for NAV
then database 1 is the primary database for NAV
what i want is... database 2 and database 3 will follow what is in database 1 (only for GL Account table)
user will not input data in database 2 & 3... only database 1 will be keyed in
is it possible?
how should i do that?
thanks
0
Comments
-
That is possible, but you have some work to do.
There are a lot of ways how you can do it. Depending if you have SQL DB's or native DB's. If the SQL DB's are on the same server or not. The tables you want to copy.
When you answer those questions, I can focus on giving you methods on how to do it.
Some examples of solutions:
-NAS to export to text file and NAS to import in DB.
-TSQL MERGE-statement to copy records (very fast) (and optionally NAS to post the data in case of G/L Entries) (and optionally creating linked servers).
-Hire a person to copy the data manually (slow, costly and error-prone. I suppose this is what you want to avoid).
-Replication of SQL server (not so easy to implement, maintain and control).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
But the first question is "why?"
8)David Singleton0 -
David Singleton wrote:But the first question is "why?"
8)
That was my question also.There are no bugs - only undocumented features.0 -
kriki wrote:That is possible, but you have some work to do.
There are a lot of ways how you can do it. Depending if you have SQL DB's or native DB's. If the SQL DB's are on the same server or not. The tables you want to copy.
When you answer those questions, I can focus on giving you methods on how to do it.
Some examples of solutions:
-NAS to export to text file and NAS to import in DB.
-TSQL MERGE-statement to copy records (very fast) (and optionally NAS to post the data in case of G/L Entries) (and optionally creating linked servers).
-Hire a person to copy the data manually (slow, costly and error-prone. I suppose this is what you want to avoid).
-Replication of SQL server (not so easy to implement, maintain and control).
it is in the same server
and it used SQL Server...
i think i will use this --> NAS to export to text file and NAS to import in DB.0 -
What's the business purpose/justification for this? If these are 3 NAV databases, does the need justify the additonal license cost?There are no bugs - only undocumented features.0
-
There's also 1 other possible approach here. Since you state you only need this for the "GL Account table". That is to replace the "GL Account" table in the "read only" databases with a linked table that is connected to a view of the updatable table. Of course this means you would not be able to run any functions that write to this table from the "read only" databases.There are no bugs - only undocumented features.0
-
bbrown wrote:What's the business purpose/justification for this? If these are 3 NAV databases, does the need justify the additonal license cost?
but this one is request from my user0 -
julkifli33 wrote:bbrown wrote:What's the business purpose/justification for this? If these are 3 NAV databases, does the need justify the additonal license cost?
but this one is request from my user
Do they understand that 3 NAV databases means 3 NAV licenses? One NAV license allows you 1 NAV database. Now there are deals on multi-site licensing but they are still more than a single license.
Are we sure they mean 3 databases? and not 3 companies?There are no bugs - only undocumented features.0 -
julkifli33 wrote:bbrown wrote:What's the business purpose/justification for this? If these are 3 NAV databases, does the need justify the additonal license cost?
but this one is request from my user
What is your role with NAV? Are you working for an NSC, an independent consultant, or workign for an end-user?There are no bugs - only undocumented features.0 -
julkifli33 wrote:bbrown wrote:What's the business purpose/justification for this? If these are 3 NAV databases, does the need justify the additonal license cost?
but this one is request from my user
](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)David Singleton0 -
bbrown wrote:There's also 1 other possible approach here. Since you state you only need this for the "GL Account table". That is to replace the "GL Account" table in the "read only" databases with a linked table that is connected to a view of the updatable table. Of course this means you would not be able to run any functions that write to this table from the "read only" databases.
And changing a standard NAV table to point to a view is not a good idea. Especially if it is a master table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:bbrown wrote:There's also 1 other possible approach here. Since you state you only need this for the "GL Account table". That is to replace the "GL Account" table in the "read only" databases with a linked table that is connected to a view of the updatable table. Of course this means you would not be able to run any functions that write to this table from the "read only" databases.
And changing a standard NAV table to point to a view is not a good idea. Especially if it is a master table.
I'm going to somewhat disagree with you here. In terms of the backup issue, I don't see the minor extra steps as a reason to not use a valid integration method in appropriate situations. With our clients I handle this by providing providing a detailed document on "creating a test DB" with "step by step" instructions including copies of the needed SQL scripts.
In terms of it being the right choice in this situation, I agree that you raise a valid point. Actually I think this whole thing is a bad idea. I question whether the business need is understood and therefore if the proposed solution has been thought thru. Do you really update COA that often where you need to automate the process?There are no bugs - only undocumented features.0 -
I like views. They are not for every situation, but there are some cases where they do a great job. The backup issue is fine if you are doing SQL backups, you just need to take an extra step to know the Database names and make sure you maintain the links. When you don't need the source data in the NAV database, its a better option than replicating.
Generally when I interface a Navision system to another SQL database, I use views to create "transfer" type tables. And then work direct in Navision to get the data posted into journals or what ever is needed. Its especially good when the other database does lots of silly stuff that you can't control (like Worldship for example).
I used to avoid them for performance reasons, but with experience you find that they can perform pretty well, and compared to the other over heads needed for replicating and storing data twice, the performance is just as good. I do recommend though to have both databases on the same server, it make life a lot easier.David Singleton0 -
David Singleton wrote:I used to avoid them for performance reasons, but with experience you find that they can perform pretty well, and compared to the other over heads needed for replicating and storing data twice, the performance is just as good.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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