I am trying to activate change log setup (Tables).
There are large no of tables.
So can anyone suggest me the code for selecting All Fields in all tables.
I have tried but it uses temporary table so facing problem.
Change Log is not designed to log the whole database changes. It's a tool to detect changes to single fields/tables that are very important to your current installation. If you want to log the whole database I would suggest to use another tool.
"Money is likewise the greatest chance and the greatest scourge of mankind."
Thanks.
But for every table I have to select 'Log Insertion', 'Log Modification','Log Deletion' to All Fields.
I consume large amount of time.So want a code to do so.
But for every table I have to select 'Log Insertion', 'Log Modification','Log Deletion' to All Fields.
I consume large amount of time.So want a code to do so.
No one wants to tell you or your customers how to live their lifes. It's just a bad suggestion to use Change Log for each and every field. I thought you are experienced enough to understand that. But now I see it doesn't make sense to discuss such things with you at the moment.
"Money is likewise the greatest chance and the greatest scourge of mankind."
I know all this stuff.
but the problem is that we dont know but some one has deleted our database. It has happened 2-3 times in 2 months.
Many times we faced problem line some one has deleted Item or Item ledger entry or posted invoice or bank payment , etc for some documents.
That's why we have to do it.
Only very, very limited number of users should have the right to delete databases. :!: In case of you give the credentials of your admin account to any user you won't be able to indentify the user by Change Log.
Master data (e.g. items) can't be deleted if there are already Ledger Entries related to it.
Ledger Entries can't be deleted with customer license, you need a developer license.
Posted Invoices of course can be deleted, but the Ledger Entries in background will remain. This can be solved by user rights.
Your problem can't be solved by Change Log. You possibly will only be able to indentify where it is coming from. You need well defined user rights setup as well as better and restrictive security guidelines. :!:
"Money is likewise the greatest chance and the greatest scourge of mankind."
Ok, so you want to store in the database who deletes the database?
Just remember that the information that tells you who deleted the database will be deleted too when the database is deleted.
Furthermore, the Change log does not capture all modifications made to the tables.
I think you should look at setting up proper security and only very senior people should be allowed to have the right to delete a database!
The system permission 1550: File, Database, Delete should only be assigned to a very select group of users!
I would start by removing that permission from everyone.
I hope this helps,
Willy
Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
Comments
also check how all tables are inserted into tempt table using SetSource() function..
similarly insert tables in table 403 and update..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
it will affect performance alot..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
But for every table I have to select 'Log Insertion', 'Log Modification','Log Deletion' to All Fields.
I consume large amount of time.So want a code to do so.
Then why do you give advise to someone on how to do something that they shouldn't do. :?:
[-(
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
So here is a blog for you .... and your customers ....
http://dynamicsuser.net/blogs/singleton ... ltant.aspx
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Oh, you shouldn't use atomic bombs because they will also erase all kind of life.
But I need it.
Ok, here it is.
:roll: :roll: :roll:
Very good analogy. :thumbsup:
[-o< ](*,)
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I already agreed with your first post only.. Read the posts clearly..you will understand...
I am feeling the same too
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
but the problem is that we dont know but some one has deleted our database. It has happened 2-3 times in 2 months.
Many times we faced problem line some one has deleted Item or Item ledger entry or posted invoice or bank payment , etc for some documents.
That's why we have to do it.
Master data (e.g. items) can't be deleted if there are already Ledger Entries related to it.
Ledger Entries can't be deleted with customer license, you need a developer license.
Posted Invoices of course can be deleted, but the Ledger Entries in background will remain. This can be solved by user rights.
Your problem can't be solved by Change Log. You possibly will only be able to indentify where it is coming from. You need well defined user rights setup as well as better and restrictive security guidelines. :!:
Ok, so you want to store in the database who deletes the database?
Just remember that the information that tells you who deleted the database will be deleted too when the database is deleted.
Furthermore, the Change log does not capture all modifications made to the tables.
I think you should look at setting up proper security and only very senior people should be allowed to have the right to delete a database!
The system permission 1550: File, Database, Delete should only be assigned to a very select group of users!
I would start by removing that permission from everyone.
I hope this helps,
Willy