Answer the question
In order to leave comments, you need to log in
Is there a difference in the mechanisms of working through the interface and through the script in MSSQL Server Management Studio?
All good health!
A very specific problem arose in connection with the use of MS SQL Server Management Studio 12.0.4100.1 DBMS
Background:
1) I created a trigger for an update operation for a table, the trigger simply logs the updated data to the log table, the script is something like this:
ALTER trigger [dbo].[refKartParams_ins_trigger] on [dbo].[RefKartParams]
for insert,update
as
begin
if (not exists (select 1 from deleted where id in (select id from inserted)))
begin
insert into dbo.RefKartParams_log
(ParamType
,PartName
,FormForEditName
,Tablename
,DateType
,idChangedParam
,typeOfChange)
select ParamType
,PartName
,FormForEditName
,Tablename
,DateType
,id
,'ins'
from inserted
end
else
begin
insert into dbo.RefKartParams_log
(ParamType
,PartName
,FormForEditName
,Tablename
,DateType
,idChangedParam
,typeOfChange)
select ParamType
,PartName
,FormForEditName
,Tablename
,DateType
,id
,'upd'
from inserted
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question