title: How to check if a Credential exists in a SQL Server instance?
body: <p>How can you check if a Credential already exists in a SQL Server instance, so as to avoid an error when running a <code>DROP CREDENTIAL</code> ?</p>
  
  <p>Normally I use the <code>SCRIPT AS ...</code> and <code>DROP And CREATE To</code> feature in SSMS to create the script, but the <code>CREDENTIAL</code> doesn't have that option</p>