July 4, 2010 at 4:50 am
I am having one table. Col1 and Col2, and i hav created a view with these two fields. once the col1 or col2 renamed or deleted by the user(who is having rights) it should says that the view is related to this fields. is it possible?
July 4, 2010 at 6:22 am
Create the view WITH SCHEMABINDING, or you can implement a custom DDL trigger that checks dependencies and throws an error. The first is far easier
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 5, 2010 at 12:36 am
Thanks Gail Shaw, Can you give some reference for the same or please give some example how it will work?
Thanks in advance.
July 5, 2010 at 3:07 am
Books Online?
http://msdn.microsoft.com/en-us/library/ms187956%28SQL.90%29.aspx
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply