Easy Permissions Audit

Something I have written about more than a handful of times is the need to audit. When people think about audits, the first thing that comes to mind is most likely the IRS and taxes. More than taxes are audit-able. Despite that tendency to first think taxes when somebody says “audit”, I am not writing about […]

By |February 13th, 2017|Security, SQL Group, SQL Server|0 Comments

Security Configuration for Linked Servers

A few years ago I published an article about how to use linked servers to avoid performance issues. I wanted to follow up on that with a discussion of linked server security configuration because this is another big issue I see all too often with linked servers.

The first thing to understand is that all linked […]

By |October 4th, 2016|Security, SQL Group, SQL Server|0 Comments

Working with the registry in SQL Server

There is a lot of information within the Windows registry. Sometimes, it would sure be nice to work with the registry within your T-SQL scripts. As it turns out, there are several undocumented extended stored procedures in SQL Server that do just this. A listing of these procedures are:

Regular
Instance-Aware

sys.xp_regread
sys.xp_instance_regread

sys.xp_regenumvalues
sys.xp_instance_regenumvalues

sys.xp_regenumkeys
sys.xp_instance_regenumkeys

sys.xp_regwrite
sys.xp_instance_regwrite

sys.xp_regdeletevalue
sys.xp_instance_regdeletevalue

sys.xp_regdeletekey
sys.xp_instance_regdeletekey

sys.xp_regaddmultistring
sys.xp_instance_regaddmultistring

sys.xp_regremovemultistring
sys.xp_instance_regremovemultistring

 

As you can see, there are two […]

By |August 2nd, 2016|SQL Group|0 Comments

sp_server_diagnostics – Black Box Recorder

A few months back I began a series about the SQL Black Box Recorder, that you can read here, with a promise of at least two more posts. The first article in the series laid the groundwork about the black box recorder in SQL Server. Furthermore, there was a brief introduction into the three components […]

By |July 26th, 2016|Extended Events, SQL, SQL Group|0 Comments

Technical Debt, Database Design and the Days of Reckoning

No one who has been around this planet for more than a few decades is unaware of the saying, “You can pay me now, or you can pay me later.” And yet, almost universally, when someone is presented with the choice of paying now or paying later, they invariably choose to pay later. There are […]

By |May 24th, 2016|SQL Group|0 Comments

SQL Black Box Recorder part II

A few months back I began a series, about the SQL Black Box Recorder that you can read here, with a promise of at least two more posts. The first article in the series laid the groundwork about the black box recorder in SQL Server. Furthermore, there was a brief introduction into the three components […]

By |April 6th, 2016|Extended Events, SQL, SQL Group|0 Comments

SQL Server ’16 helps you meet Best Practice

In order for your SQL Server instance to run optimally, there are many SQL Server best practices that you need to follow. The SQL Health Check that you can have us perform on your  instances looks at many of these. SQL Server 2016, which at the time of this writing is in a Release Candidate […]

By |March 15th, 2016|SQL Group|0 Comments

Building a T-SQL Framework, Part I

Depending on the objective, building a framework allows the architect to imbed the fundamental segments of a structure so that the existing requirements can be built on top of the foundation, leveraging the functionality of the framework. This usually includes core functionality that repeats consistently through a process like Logging, Error handling, Successes/Failure Notifications, Import/Export […]

By |March 2nd, 2016|SQL Group|0 Comments

SQLIntersection In Orlando–Why Wouldn’t You?

Orlando in April, and then you add SQL on top of that? What’s not to like?

I’m really excited to be part of the Spring SQLIntersection event, coming up April 18-21 at the Walt Disney World Swan. SSG was an exhibitor at the Spring 2015 event, and at the Vegas event last fall, I had the […]

By |February 13th, 2016|SQL Group|0 Comments

Indexed Views – Performance Panacea or Plight

Indexed View(s)
An indexed view is a view where the result set from the query (the view definition) becomes materialized in lieu of the virtual table result set of a standard (non-indexed) view. Many times we see that an indexed view would be created to help improve performance. Far too often, an indexed view is created without consideration for the […]

By |January 28th, 2016|SQL, SQL Group|2 Comments