Before you do SQL data repair, please think about end-user options, such as check links, plus research tools available in routines and utilities sections.? If you got to do data repair, read the following introduction level article
Select * into IV00101_Backup from IV00101.? In this script you need to replace IV00101 with the table that you intend to backup.? In order to know table name, go to tools->resource descriptions->tables
Alter table IV00101_Backup drop column DEX_ROW_ID Delete table IV00101? (this script is very dangerous – it will delete all your inventory item master records, so please, be sure what you are doing, meaning that you really need to restore from backup and no new items were created since the time of backup) Insert into IV00101 select * from IV00101_Backup
Update IV00101 set CURRCOST=b.CURRCOST from IV00101 a join IV00101_Backup b on a.ITEMNMBR=b.ITEMNMBR – this statement will rollback current cost from backup table
Delete ACTIVITY where USERID=’sa’ – this will remove ‘sa’ from GP and will allow this user to login back. Update SY00500 set BCHSTTUS = 0 where BACHNUMB=’YOURBATCH’update SY00500 set MKDTOPST = 0 where BACHNUMB=’YOURBATCH’ These two scripts will reset the batch.
|
Microsoft | ||||||||||||||||||||||||||||||||||||||||||
|
|