SQL Server with Mr. Denny:

SQL Server


May 8, 2008  4:04 AM

Quest Meet the Expert Video published



Posted by: Denny Cherry
Queue, Video

Quest Software has just published the first of a few videos which I recorded with them. You can download or view the video from here. I've...

May 5, 2008  9:00 AM

I’ll be speaking at the Inland Empire .Net User Group



Posted by: Denny Cherry
In Person Events, Query tuning, Resource Governor

The nice folks at the Inland Empire .NET User Group have invited me to come and speak to them.  This is a great speaking opportunity for me as they are about 20 minutes from my house. I won't be speaking there until...


May 1, 2008  9:00 AM

Checking the cached execution plans



Posted by: Denny Cherry
Cache, Execution Plan, Query tuning, SQL Server 2005, sys.dm_exec_cached_plans, sys.dm_exec_plan_attributes, sys.dm_exec_query_plan, sys.dm_exec_requests

As we all know SQL Server, will for good or bad, cache execution plans.  Up until now it's been very tough to see the cached execution plans.  You pretty much had to grab the query or procedure (with the parameters) and run it with Query Analyzer and have it return the execution plan.  The only...


April 28, 2008  9:00 AM

Checking free disk space from T/SQL



Posted by: Denny Cherry
SQL, T/SQL, xp_fixeddrives

I've seen some very creative ways to see how much free disk space SQL Servers have.  Most make use of xp_cmdshell which some very complex dos commands or vbscripts. However there is a much easier way.  Microsoft has included the system extended stored procedure xp_fixeddrives.  It returns the...


April 24, 2008  12:23 PM

My ERRORLOG shows some spids have an ‘s’ after them. What’s going on?



Posted by: Denny Cherry
ERRORLOG, sp_who3, SQL

That "s" is new in SQL Server 2005.  It means that the SPID is a system process.  For example my database is having a problem with tempdb running out of space for no reason.  When I look in the log I see that SPID 118s is the offending SPID.  When I watch SPID 118 using

Bookmark and Share     0 Comments     RSS Feed     Email a friend


April 21, 2008  9:00 AM

Back To Basics: The DELETE Statement



Posted by: Denny Cherry
DELETE statement, SQL

When you have data in your table that you need to remove the DELETE statement is the way to do that.  Using the DELETE statement without any WHERE clause will remove all the data from your table.  The WHERE clause works the same way as the WHERE clause for SELECT and UPDATE...


April 17, 2008  10:00 PM

New Article: Configure SQL Server Service Broker for sending stored procedure data



Posted by: Denny Cherry
Article, Service Broker, SQL Server 2005, SQL Server 2008

I’ve just published a new tip on SearchSQLServer.com called Configure SQL...

Bookmark and Share     1 Comment     RSS Feed     Email a friend


April 17, 2008  8:00 AM

SQL 2008 one click database encryption gives a false sense of security



Posted by: Denny Cherry
Compliance, DataManagement, Encryption, SQL Server 2008

While I think that the one click database encryption that Microsoft has built into SQL Server 2008 is a good idea, but I'm not sure how useful it actually is.  It's touted as giving you data encryption of the entire database without any code change. What this actually means is that if someone...


April 14, 2008  10:00 AM

I’ll be speaking at the NJ SQL Server User Group



Posted by: Denny Cherry
In Person Events, Service Broker

The NJ SQL Server User Group has been kind enough to invite me to come speak to them about SQL Server Service Broker.  I'll be speaking up there on August, 19,...


April 11, 2008  3:00 PM

Back To Basics: How do I use sp_change_users_login?



Posted by: Denny Cherry
Back To Basics, sp_change_users_login, SQL

The sp_change_users_login procedure has a specific purpose.  It's used to identify and correct users within a database which do not have a corresponding logins. You can specify the value of Report for the @Action input parameter to see any users which do not have a corresponding login.  This...