The db_stop_engine and db_stop_database functions shut down a database server or database, respectively. If you specify UNC=YES
in the connection string, the database server or database is shut down even if there are active connections. If Unconditional
is not set to YES, then the database server or database is shut down only if there are no active connections.