Would be a good thing to have the possibility to delete or modify the product title field.
Comments: Hi David, i use this trigger on the Table tbUpdate: ``` USE [SUSDB] GO /****** Object: Trigger [dbo].[SwitchLocallyPublished] Script Date: 07.04.2013 15:37:05 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TRIGGER [dbo].[SwitchLocallyPublished] ON [dbo].[tbUpdate] AFTER INSERT NOT FOR REPLICATION AS begin UPDATE [SUSDB].[dbo].[tbUpdate] SET [IsLocallyPublished] = 0 WHERE [IsLocallyPublished] <> 0 End ``` If you want to test in a Windows Internal Database, you can use this Query: ``` --Update Query to run in Windows Internal Database UPDATE [SUSDB].[dbo].[tbUpdate] SET [IsLocallyPublished] = 0 WHERE [IsLocallyPublished] <> 0 ``` In a Windows Internal Database you can NOT use a Trigger, you have to use the one UPDATE query. The query can be used in SQL Server Management Studio, or save the UPDATE query in a file and run this line in a batch: ``` sqlcmd -S np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query –i <scriptLocation>\IsLocallyPuplished.sql ```
Comments: Hi David, i use this trigger on the Table tbUpdate: ``` USE [SUSDB] GO /****** Object: Trigger [dbo].[SwitchLocallyPublished] Script Date: 07.04.2013 15:37:05 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TRIGGER [dbo].[SwitchLocallyPublished] ON [dbo].[tbUpdate] AFTER INSERT NOT FOR REPLICATION AS begin UPDATE [SUSDB].[dbo].[tbUpdate] SET [IsLocallyPublished] = 0 WHERE [IsLocallyPublished] <> 0 End ``` If you want to test in a Windows Internal Database, you can use this Query: ``` --Update Query to run in Windows Internal Database UPDATE [SUSDB].[dbo].[tbUpdate] SET [IsLocallyPublished] = 0 WHERE [IsLocallyPublished] <> 0 ``` In a Windows Internal Database you can NOT use a Trigger, you have to use the one UPDATE query. The query can be used in SQL Server Management Studio, or save the UPDATE query in a file and run this line in a batch: ``` sqlcmd -S np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query –i <scriptLocation>\IsLocallyPuplished.sql ```