简体   繁体   中英

How can I find out which tables are in a view (SQL Server Management Studio)

I just executed the following update statement on a view:

use [SERVER]

update [TABLE]
set USRN = 14201962 
where COLUMN_UID = 4668083

Turns out there was a trigger that deleted that row entirely from the view instead of modifying that specific cell.

How can I get that row back? I'm assuming it might still be in the table that the row is associated with but I do not know what that table is. Is there a way for me to see which tables are part of the view so I can look through each one to try and locate the missing view row? Other suggestions are also welcome.

Thanks

您可以右键单击 SSMS 中的视图并选择“Script As Create...”并查看视图使用的查询。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM