Scripting

Execute on DMVs without user having View Server State

  • Script

Wanted to share this script to the community just in case anyone out there may be search for a way to allow a hosted customer the ability to query certain DMVs for information without granting them View Server State. There are some other options out there, but this worked better for me after going through […]

5 (1)

2020-09-24

826 reads

Generate Role Member Reports using dbatools and the ImportExcel PowerShell modules

  • Article

Being able to get information and save it on a Excel as a report can be a common and tedious task. What if we could join dbatools and ImportExcel PorwerShell modules to accomplish this in a easier and fast way? We will see how to export roles and its' member and save that info on a multi spreadsheet Excel file with handy tables ready to be explored.

5 (2)

2020-06-30

4,671 reads

Blogs

Daily Coping 24 Sept 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Using environment variable files for SQL Server in containers

By

There are a whole bunch of environment variables that can be used to configure...

How to Design Backups in SQL Server?

By

The Recovery Point Objective (RPO) and Recovery Time Objective (RTO) are basic concepts related...

Read the latest Blogs

Forums

Need an urgent help with creating a relational database!!

By LoneLostWolf

Hi guys, I'm quite new to T-SQL and honestly started to take online classes...

Need to Convert SQL Code Written for Azure SQLDW to SQL Server 2016

By carlton 84646

Hello Community, The attached SQL Script (Procedure) is compiled / written for Azure SQL...

SQL join based on column value

By learner0

I am trying to join two tables based on the condition. Table1: ID   ...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers