create trigger Messageon_Insert on student
after insert
as
if(select count(*) from student where ID= inserted.ID)!=@@rowcount
begin
Print 'Student Detail Inserted successfully'
end
else
Print 'Sorrry, Student Detail not Inserted successfully'
HERE YOU WILL FIND ALL TYPE OF TUTORIALS LIKE .NET C#, ASP.NET, ASP.NET MVC, SQL SERVER, JAVACRIPT, JQUERY ETC
create trigger Messageon_Insert on student
after insert
as
if(select count(*) from student where ID= inserted.ID)!=@@rowcount
begin
Print 'Student Detail Inserted successfully'
end
else
Print 'Sorrry, Student Detail not Inserted successfully'
No comments:
Post a Comment