UNPKG

jsharmony-factory

Version:
10 lines 698 B
{ "init_sysadmin_access": ["select case when count(*)=15 then 1 else 0 end jsinitaccess from (", "SELECT * FROM fn_my_permissions(NULL, 'DATABASE')", " where permission_name in ", " ('create database','create table','create view','create procedure','create function','create default',", " 'create type','create schema','create synonym','create role',", " 'select','insert','update','delete','execute')", ") PERMS"], "init_db_user_exists":"select 1 from sys.server_principals where name = '%%%INIT_DB_USER%%%'" }