Quantcast
Channel: SQL Server | SK Tech Scratchpad
Browsing latest articles
Browse All 8 View Live

How-to : Use SQL Server to query Active Directory

I think it’s common problem as Active Directory gets bigger in organizations, control over content of that mission-critical component seems to be lost. Same happened in my place. In addition to that we...

View Article



Code snippets : SQL : Backup and FTP Database

When browsing repository of all scripts I did use in past, I found one which might be interesting. What this script does is: Backups database to disk (name of database stored in @dbname, patch for...

View Article

Tips & Tricks : Microsoft SQL Server 2008 & 2012 Feature Packs

Some of applications require additional SQL Server 2008 or 2012 fetures installed. Some of these features might not be available in standard setup of SQL Server. In that case you have to refer to...

View Article

Tips & Tricks : SQL Server “Cannot connect to WMI provider”

Recently I had issue which occured without any particular reason on SQL Server 2012. All of the sudden I start getting error message: Cannot connect to WMI provider. You do not have permission or the...

View Article

Tips & Tricks : Missing SQL Server assmeblies in PowerShell

When you try to connect to SQL Server from PowerShell script and you get following message: then you have to download and install following components: Microsoft System CLR Types for SQL Server 2008 R2...

View Article


Code snippets : Execute SQL script using PowerShell

Recently I went through requirement of running SQL scripts on multiple databases on different servers. As the list of databases was different from script to script I decided to create universal...

View Article

How-to : Setup AlwaysOn Availability Group on SQL Server 2012

SQL Server 2012 has very nice HADR technology built-in, AlwaysOn Availability Groups. It allows to have multiple replicas of selected databases across multiple servers, which can be even located across...

View Article

Code snippets : Windows : Importing Event Logs to Database

Code snippet from old archives. It shows how to import Windows event log entries to database. Important is to setup database and table accordingly, so it contains apropriate columns.

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images