Monitor AlwaysOn Availabilty Groups

Powershell

Download files from Amazon s3 to local folder using Powershell

As part of the services we provide our clients around Microsoft SQL Server we also provide a service that uploads database backup files to Amazon S3 or Azure Blob Storage (applies for On Premise servers). This option is really great and gives you lots of confidence letting you sleep better at nights. it had already …

Download files from Amazon s3 to local folder using Powershell Read More »

Use SqlCredential with Powershell to connect to an instance of SQL Server

In this post I will share how to use the SqlCredential object with Powershell when using SQL Authentication in order to pass the password in a secured way connecting to an instance of SQL Server. First step is a one time step creating a secured encrypted password saved in a text file that we latter …

Use SqlCredential with Powershell to connect to an instance of SQL Server Read More »

Use PowerShell to Install a Windows Service remotely

When installing a Windows Service remotely as a “Local Service” there are no credentials involved and this is a pretty straight forward  task. But if you need to have the service installed under the account of a local user or a domain user then this is somewhat tricky. The security credentials you create using the …

Use PowerShell to Install a Windows Service remotely Read More »

Find the specific sql server t-log to be restored for an unrecovered database

Recently when I needed to find the Transaction Log file that can be applied to a log shipping secondary database I decided to take a few moments and automate the process that I usually do in the old fashion manual way and that includes: 1. generating the restore log commands using a query over backupset …

Find the specific sql server t-log to be restored for an unrecovered database Read More »

Compressing SQL Server backups using 7Zip4Powershell

When maintaining client’s systems, I tend to pay extra attention about SQL Servers backups, being a ware that the data in most cases is the organization’s most important asset. With that in mind I always look for the extra layer of protection I can provide so that data is protected against any potential threat and …

Compressing SQL Server backups using 7Zip4Powershell Read More »

Perform DBCC CHECKDB Data Integrity checks on Log Shipping Secondary server

As a professional maintaining and managing databases for clients I am very well aware of the fact that Data Integrity in relational databases is absolutely crucial. As DBAs the data we maintain and support, is in many cases the organization’s most important asset. Data Corruption is a topic for it self that I will not …

Perform DBCC CHECKDB Data Integrity checks on Log Shipping Secondary server Read More »

Generate graphs based on diskspd stress tests

Before moving forward be sure to have read this previous post that is the basis for the current post. This is the link to me GitHub diskspd project containing the relevant files discussed in these 2 blog posts mini serious. Working quiet often with diskspd it was only natural for me to automate the tiring …

Generate graphs based on diskspd stress tests Read More »

Using diskspd to test disk performance with SQL Server

This is the link to my GitHub diskspd project diskspd was designed as a storage testing tool and that basically mean test your SAN or NAS but not only SAN/NAS based disks, you can test any other disk, be it a DAS, a local drive on your server or your new laptop’s SSD (I always …

Using diskspd to test disk performance with SQL Server Read More »

Use Powershell to Multi Thread SQL Server Index Maintenance tasks

This is my very first blog post at my own site after over a year of none blogging. What happened is that the site I use to blog at http://blogs.microsoft.co.il/yaniv_etrogi has gone down…. yes, I know…. with tones of my blog posts, I had so many posts just around the Replication features, Partitioning and lots …

Use Powershell to Multi Thread SQL Server Index Maintenance tasks Read More »