Sql Server Guide for DBA

Wednesday, July 24, 2024

Find out which database is using the most IO

›
Find out which database is using the most IO   When there are many databases on one drive and you need to find out  which one is causing IO ...
Tuesday, July 23, 2024

Powershell - Start or Stop SQL service on remote server

›
 You can use below script to start and stop remote SQL services. * Just for one computer (Get-Service -ComputerName YOURCOMPUTERNAME -Name ...

Powershell - Run SQL Scripts on Multiple Servers

›
 You must need SqlServer module is the current PowerShell module to use below script. The SqlServer module comes with: PowerShell Provide...
Tuesday, September 13, 2016

Generate Object Level Permission

›
Run below script to generate users and permission in any databases. Mostly it helps to generate users and its permission before refreshing ...
Wednesday, January 29, 2014

SQL - Find out database restored history

›
Wednesday, October 16, 2013

Find the history of SQL database backups.

›
You need to add database name where I put DBNAME in this script. It will give you full, differential and log backup history. I know how impo...

Find out from SQL Management studio - Who is part of network group id?

›
I have script which tells you who is part of groupid. It helps to find some login issue. declare @DomainGroupName varchar ( 50 ) sel...
›
Home
View web version
Powered by Blogger.