Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我删除了 aspnet_Users (ASPNETDB) 中的“用户名”列,是否有机会恢复它?我不能只添加会更改架构的列。
什么添加列将是架构更改?
如果您有备份,请使用另一个数据库名称恢复它。将该列添加到您的表中,然后使用连接更新该列到备份的数据库表
例如。
UPDATE a SET a.UserName = b.UserName FROM mydb1.dbo.table1 AS a INNER JOIN mybackupdb1.dbo.table1 AS b WHERE a.id = b.id