MSSQLTips Archives - Thomas LaRock https://thomaslarock.com/category/mssqltips/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Fri, 19 Mar 2010 02:34:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://thomaslarock.com/wp-content/uploads/2015/07/gravatar.jpg MSSQLTips Archives - Thomas LaRock https://thomaslarock.com/category/mssqltips/ 32 32 18470099 I Stand Corrected https://thomaslarock.com/2010/03/i-stand-corrected/ https://thomaslarock.com/2010/03/i-stand-corrected/#comments Fri, 19 Mar 2010 02:34:31 +0000 http://thomaslarock.com/?p=3890 The other day Aaron Bertrand pointed out that a recent tip I wrote had a rather nasty oversight. You can read more about the discussion over at his blog. The short of it is this: what I wrote in the tip is cot very clear, and is most likely going to be interpreted wrongly. Aaron’s ... Read more

The post I Stand Corrected appeared first on Thomas LaRock.

]]>
The other day Aaron Bertrand pointed out that a recent tip I wrote had a rather nasty oversight. You can read more about the discussion over at his blog.

The short of it is this: what I wrote in the tip is cot very clear, and is most likely going to be interpreted wrongly. Aaron’s post does a great job of explaining the difference. I also want people to understand that if you are doing compressed backups, you won’t see much added benefit if you also enable data compression. As Aaron points out in his example, the overall benefit on time and size of the final backup file are comparable whether you are compressing data or not.

The post I Stand Corrected appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/03/i-stand-corrected/feed/ 4 3890
Backup Compression Tip https://thomaslarock.com/2010/03/backup-compression-tip/ https://thomaslarock.com/2010/03/backup-compression-tip/#comments Mon, 15 Mar 2010 13:25:24 +0000 http://thomaslarock.com/?p=3866 I had a new tip go live today over at MSSQLTips, it is on backup compression and you can read more about it by going here. Backup compression is a feature offered with the Enterprise version of SQL 2008. After having native compression available in Sybase ASE for years I was happy to see that ... Read more

The post Backup Compression Tip appeared first on Thomas LaRock.

]]>
I had a new tip go live today over at MSSQLTips, it is on backup compression and you can read more about it by going here.

Backup compression is a feature offered with the Enterprise version of SQL 2008. After having native compression available in Sybase ASE for years I was happy to see that Microsoft finally offered the same feature. It is worth noting that while compression is an Enterprise-only feature, you are able to restore a compressed backup to other SQL 2008 editions. So, if you are running SQL 2008 Developer and someone hands you a compressed backup you will be able to restore that backup.

It should go without saying that previous version of SQL cannot restore a compressed backup, but I’ll say it here again anyway. Heck, you cannot restore a non-compressed SQL 2008 database backup to a previous version, so don’t waste your time trying a compressed one.

Lastly, be aware that compression comes at a cost, most notably you will see a higher CPU cost when comparing compression versus non-compressed backups.

SQLRockstar@gmail.comI had a new tip go live today over at MSSQLTips,

The post Backup Compression Tip appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/03/backup-compression-tip/feed/ 2 3866
SQL Server Audit Tips https://thomaslarock.com/2010/03/sql-server-audit-tips/ https://thomaslarock.com/2010/03/sql-server-audit-tips/#respond Wed, 10 Mar 2010 17:34:26 +0000 http://thomaslarock.com/?p=3853 I had two tips go live this past week over at MSSQLTips, both with regards to the SQL Server Audit feature in SQL 2008. The first tip shows how to enable SQL Server Audit. The second tip shows how to use the AUDIT_CHANGE_GROUP to monitor changes to your audit configurations. Some people would call that ... Read more

The post SQL Server Audit Tips appeared first on Thomas LaRock.

]]>
I had two tips go live this past week over at MSSQLTips, both with regards to the SQL Server Audit feature in SQL 2008. The first tip shows how to enable SQL Server Audit. The second tip shows how to use the AUDIT_CHANGE_GROUP to monitor changes to your audit configurations. Some people would call that “audit the audit”.

SQL Server 2008 Auditing Feature
SQL Server 2008 Audit Change Group

I’ve been playing around with SQL Server Audit for over a year now, but I have spent more time on it during the past six weeks. So much time, in fact, that I have submitted a talk for SQL Saturday #39 in New York City on April 24th. The talk will be titled SQL Server 2008 Audit, and I will give an overview of how to use the feature, review the various options, and even try to answer questions. So if you are in NYC on the 24th, stop by for a free day of training.

The post SQL Server Audit Tips appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/03/sql-server-audit-tips/feed/ 0 3853
Two Things To Tell You https://thomaslarock.com/2010/03/two-things-to-tell-you/ https://thomaslarock.com/2010/03/two-things-to-tell-you/#respond Wed, 03 Mar 2010 18:12:50 +0000 http://thomaslarock.com/?p=3804 I have three things to tell you today. First, I have a new article over at MSSQLTips.com, this one on configuring a SQL Server 2008 Audit. Head over there and check it out, I give the details you need in order to get your instance configured for auditing. Second, and somewhat related, I have submitted ... Read more

The post Two Things To Tell You appeared first on Thomas LaRock.

]]>
I have three things to tell you today.

First, I have a new article over at MSSQLTips.com, this one on configuring a SQL Server 2008 Audit. Head over there and check it out, I give the details you need in order to get your instance configured for auditing.

Second, and somewhat related, I have submitted a session for SQL Saturday #39 in New York City. The title of my proposed talk will be…wait for it…”SQL Server 2008 Audit”. The event is on April 24th in Manhattan (NY, not KS).

Third, this is my 400th post. Wait, that makes three things, not two. Forget I said anything.

The post Two Things To Tell You appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/03/two-things-to-tell-you/feed/ 0 3804
New Tip Posted https://thomaslarock.com/2010/02/new-tip-posted/ https://thomaslarock.com/2010/02/new-tip-posted/#respond Tue, 09 Feb 2010 14:20:23 +0000 http://thomaslarock.com/?p=3683 I had another tip posted over at MSSQLTips today, you can find it at http://www.mssqltips.com/tip.asp?tip=1938 The tip helps you configure a policy inside of PBM that will help you to determine how badly your transaction logs are fragmented.

The post New Tip Posted appeared first on Thomas LaRock.

]]>
I had another tip posted over at MSSQLTips today, you can find it at http://www.mssqltips.com/tip.asp?tip=1938

The tip helps you configure a policy inside of PBM that will help you to determine how badly your transaction logs are fragmented.

The post New Tip Posted appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/02/new-tip-posted/feed/ 0 3683
New Tip at MSSQLTips https://thomaslarock.com/2010/01/new-tip-at-mssqltips/ https://thomaslarock.com/2010/01/new-tip-at-mssqltips/#respond Wed, 20 Jan 2010 12:20:52 +0000 http://thomaslarock.com/?p=3496 Linked server configurations are often overlooked when it comes to environmental baselines. I don’t know of too many people who go out of their way to track such details. And I have often been surprised by vendor software packages that claim to track system changes but do not include linked server information. One thing about ... Read more

The post New Tip at MSSQLTips appeared first on Thomas LaRock.

]]>
Linked server configurations are often overlooked when it comes to environmental baselines. I don’t know of too many people who go out of their way to track such details. And I have often been surprised by vendor software packages that claim to track system changes but do not include linked server information.

One thing about linked servers is that they use a common set of providers. That means you can have a dozen linked servers all relying on one provider. If you change one option on that provider you are changing the structure of all linked servers that use that provider. While I am certain that you can always find one person who says “I don’t care about anyone else, just change the provider so my stuff will run”, ideally you won’t be making any such changes. And, if you do, you will do so only after carefully communicating the change so that others can take notice."I'll just turn this one little knob and no one else will notice..."

But let’s say that a change is made, and someone notices an issue with a query, days after the configuration change. How would you know if their issues with the linked server is the result of the change that was made earlier? Well, first thing you need to do is find out if (and when) a changes was made, right?

Well, that is my tip today: find out the last time your linked server was modified. In the tip I use Policy Based Management as a way to get the job done. The tip shows how you can find out the information for one server, but through the use of a Central Management Server you could also run the policy against all your servers, or as many as desired.

The post New Tip at MSSQLTips appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2010/01/new-tip-at-mssqltips/feed/ 0 3496
New Tip Over at MSSQLTips https://thomaslarock.com/2009/10/new-tip-over-at-mssqltips/ https://thomaslarock.com/2009/10/new-tip-over-at-mssqltips/#respond Mon, 19 Oct 2009 02:01:03 +0000 http://thomaslarock.com/?p=2976 Ever have a customer request that you take a backup of a database, a restore using that backup, and then tell you that it is the wrong data? Every now and then it happens, so I decided to put together some t-sql to display details on what was done. The script essentially details when the restored ... Read more

The post New Tip Over at MSSQLTips appeared first on Thomas LaRock.

]]>
Ever have a customer request that you take a backup of a database, a restore using that backup, and then tell you that it is the wrong data?

Every now and then it happens, so I decided to put together some t-sql to display details on what was done. The script essentially details when the restored was started, what backup file was used, when that backup was taken, and the name of the source database.

You can read more about it here.

I just love diving into system information to report back details. I believe that being able to pull such details right from the system tables is close to an art form. Every time I come across custom scripts that pull and twist information right from the system I try running them for myself to see how they can best be applied in my shop. I hope the scripts I try to provide at MSSQLTips can help someone else in the same way.

The post New Tip Over at MSSQLTips appeared first on Thomas LaRock.

]]>
https://thomaslarock.com/2009/10/new-tip-over-at-mssqltips/feed/ 0 2976