1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-29 22:08:12 +02:00

add the database name

This commit is contained in:
Alexey Bochkov
2019-03-06 17:41:30 -08:00
committed by GitHub
parent aafc45b01d
commit f98e80b9ee

View File

@@ -12,6 +12,11 @@ SELECT @sql =
PRINT @sql
SET @sql = ''
--========================================================
SELECT @sql = @sql + 'USE [' + DB_NAME() + ']';
PRINT @sql + CHAR(13) + CHAR(13);
SET @sql = '';
--========================================================
--script any certificates in the database
--========================================================
IF (SELECT COUNT(*) FROM sys.certificates) = 0