How can it be that this works:
ALTER TRIGGER dbo.SetDefaultVersion
ON dbo.t_package
INSTEAD OF INSERT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for trigger here
INSERT INTO dbo.t_package
SELECT Name+'2', Parent_ID, CreatedDate, ModifiedDate, Notes, ea_GUID, XMLPath, IsControlled, LastLoadDate, LastSaveDate, Version, Protected, PkgOwner, UMLVersion, UseDTD, LogXML, CodePath, Namespace, TPos, PackageFlags, BatchSave, BatchLoad
FROM inserted
END
GO
But this has no effect:
ALTER PROCEDURE UPDATE_VERSION_FOR_OBJECT(@inserted int)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
UPDATE dbo.t_object
SET Version = 1.5
WHERE dbo.t_object.Object_Id = @inserted
END
GO
???