如何检查SQL Server实例中是否已经存在Credential,以免运行DROP CREDENTIAL
时出错?
通常我使用 SCRIPT AS ...
和 DROP And CREATE To
SSMS 中的功能来创建脚本,但 CREDENTIAL
没有那个选项
最佳答案
if exists (select * from sys.credentials where name = 'CredName')
drop credential CredName
关于sql-server - 如何检查凭据是否存在于 SQL Server 实例中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10946718/