Reference link:
Click here for the reference link.
Screenshot – after Removing SQL 2005 using Programs Add/Remove on Windows Server :
SQLMint
Reference link:
Click here for the reference link.
Screenshot – after Removing SQL 2005 using Programs Add/Remove on Windows Server :
Screenshots of upgrading SQL Server 2016 to SQL Server 2017 [vNext – the latest release as the posting of this atricle]
update-help
set-executionpolicy remotesigned
$PSversiontable
get-module
import-module SQLPS
psdrive
import-module -Name SQLServer -Scope CurrentUser -AllowClobber
In order to get this to work in Windows 10 , l ran the command below.
Install-module -Name SqlServer -Scope CurrentUser – Force -AllowClobber
Useful Links:
SQL Server Fixed Server Role Permissions – run – sp_srvrolepermission
ServerRole Permission
bulkadmin Add member to bulkadmin
bulkadmin BULK INSERT
dbcreator Add member to dbcreator
dbcreator ALTER DATABASE
dbcreator CREATE DATABASE
dbcreator DROP DATABASE
dbcreator Extend database
dbcreator RESTORE DATABASE
dbcreator RESTORE LOG
dbcreator sp_renamedb
diskadmin Add member to diskadmin
diskadmin DISK INIT
diskadmin sp_addumpdevice
diskadmin sp_diskdefault
diskadmin sp_dropdevice
processadmin Add member to processadmin
processadmin KILL
securityadmin Add member to securityadmin
securityadmin Grant/deny/revoke CREATE DATABASE
securityadmin Read the error log
securityadmin sp_addlinkedsrvlogin
securityadmin sp_addlogin
securityadmin sp_defaultdb
securityadmin sp_defaultlanguage
securityadmin sp_denylogin
securityadmin sp_droplinkedsrvlogin
securityadmin sp_droplogin
securityadmin sp_dropremotelogin
securityadmin sp_grantlogin
securityadmin sp_helplogins
securityadmin sp_password
securityadmin sp_remoteoption (update)
securityadmin sp_revokelogin
serveradmin Add member to serveradmin
serveradmin dbcc freeproccache
serveradmin RECONFIGURE
serveradmin SHUTDOWN
serveradmin sp_configure
serveradmin sp_fulltext_service
serveradmin sp_tableoption
setupadmin Add member to setupadmin
setupadmin Add/drop/configure linked servers
setupadmin Mark a stored procedure as startup
sysadmin Add extended procedures
sysadmin Add member to bulkadmin
sysadmin Add member to dbcreator
sysadmin Add member to diskadmin
sysadmin Add member to processadmin
sysadmin Add member to securityadmin
sysadmin Add member to serveradmin
sysadmin Add member to setupadmin
sysadmin Add member to sysadmin
sysadmin Add/drop to/from db_accessadmin
sysadmin Add/drop to/from db_backupoperator
sysadmin Add/drop to/from db_datareader
sysadmin Add/drop to/from db_datawriter
sysadmin Add/drop to/from db_ddladmin
sysadmin Add/drop to/from db_denydatareader
sysadmin Add/drop to/from db_denydatawriter
sysadmin Add/drop to/from db_owner
sysadmin Add/drop to/from db_securityadmin
sysadmin Add/drop/configure linked servers
sysadmin All DDL but GRANT, REVOKE, DENY
sysadmin ALTER DATABASE
sysadmin BACKUP DATABASE
sysadmin BACKUP LOG
sysadmin BULK INSERT
sysadmin CHECKPOINT
sysadmin Complete SETUSER SQL user
sysadmin Constraints on System tables
sysadmin CREATE DATABASE
sysadmin Create indices on system tables
sysadmin Create/delete/modify system tables
sysadmin dbcc change ‘on’ rules
sysadmin dbcc checkalloc
sysadmin dbcc checkdb
sysadmin dbcc checkfilegroup
sysadmin dbcc checkident
sysadmin dbcc checktable
sysadmin dbcc cleantable
sysadmin dbcc dbreindex
sysadmin dbcc dropcleanbuffers
sysadmin dbcc freeproccache
sysadmin dbcc inputbuffer
sysadmin dbcc outputbuffer
sysadmin dbcc pintable
sysadmin dbcc proccache
sysadmin dbcc setcpuweight
sysadmin dbcc setioweight
sysadmin dbcc show_statistics
sysadmin dbcc showcontig
sysadmin dbcc showoptweights
sysadmin DBCC ShrinkDatabase
sysadmin dbcc shrinkfile
sysadmin dbcc traceon/off
sysadmin dbcc updateusage
sysadmin DELETE permission on any object
sysadmin DENY
sysadmin DISK INIT
sysadmin DROP DATABASE
sysadmin EXECUTE any procedure
sysadmin Extend database
sysadmin GRANT
sysadmin Grant/deny/revoke CREATE DATABASE
sysadmin INSERT permission on any object
sysadmin KILL
sysadmin Mark a stored procedure as startup
sysadmin Raiserror With Log
sysadmin Read the error log
sysadmin RECONFIGURE
sysadmin REFERENCES permission on any table
sysadmin RESTORE DATABASE
sysadmin RESTORE LOG
sysadmin REVOKE
sysadmin SELECT permission on any object
sysadmin SHUTDOWN
sysadmin sp_addapprole
sysadmin sp_addlinkedsrvlogin
sysadmin sp_addlogin
sysadmin sp_addrole
sysadmin sp_addrolemember
sysadmin sp_addumpdevice
sysadmin sp_adduser
sysadmin sp_altermessage
sysadmin sp_approlepassword
sysadmin sp_change_users_login
sysadmin sp_changedbowner
sysadmin sp_changeobjectowner
sysadmin sp_configure
sysadmin sp_dbcmptlevel
sysadmin sp_defaultdb
sysadmin sp_defaultlanguage
sysadmin sp_denylogin
sysadmin sp_diskdefault
sysadmin sp_dropapprole
sysadmin sp_dropdevice
sysadmin sp_droplinkedsrvlogin
sysadmin sp_droplogin
sysadmin sp_dropremotelogin
sysadmin sp_droprole
sysadmin sp_droprolemember
sysadmin sp_dropuser
sysadmin sp_fulltext_catalog
sysadmin sp_fulltext_column
sysadmin sp_fulltext_database
sysadmin sp_fulltext_service
sysadmin sp_fulltext_table
sysadmin sp_grantdbaccess
sysadmin sp_grantlogin
sysadmin sp_helplogins
sysadmin sp_password
sysadmin sp_recompile
sysadmin sp_refreshview
sysadmin sp_remoteoption
sysadmin sp_remoteoption (update)
sysadmin sp_rename
sysadmin sp_renamedb
sysadmin sp_revokedbaccess
sysadmin sp_revokelogin
sysadmin sp_tableoption
sysadmin sp_updatestats
sysadmin TRUNCATE TABLE
sysadmin UPDATE permission on any object
sysadmin USE to a suspect database
“The common language runtime (CLR) integration feature is off by default, and must be enabled in order to use objects that are implemented using CLR integration. To enable CLR integration, use the clr enabled option of the sp_configure stored procedure in SQL Server Management Studio:” …. Microsoft
Essential commands:
–check
SELECT * FROM sys.configurations
WHERE name = ‘clr enabled’
sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
–enable it
sp_configure ‘clr enabled’, 1;
GO
RECONFIGURE;
GO
–disable it
sp_configure ‘clr enabled’, 0;
GO
RECONFIGURE;
GO
SELECT * FROM sys.configurations
WHERE name = ‘clr enabled’
Highlights and useful links.