buck.woody
LinkedIn
|
FaceBook
|
Twitter
Resume
Professional Blog
Personal Blog
Podcasts
Articles
University of Washington
Browse by Tags - Carpe Datum - Site Home - MSDN Blogs
Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
May 2013
(1)
April 2013
(3)
March 2013
(2)
February 2013
(3)
January 2013
(3)
December 2012
(3)
November 2012
(4)
October 2012
(5)
September 2012
(3)
August 2012
(4)
July 2012
(6)
June 2012
(3)
May 2012
(5)
April 2012
(5)
March 2012
(4)
February 2012
(4)
January 2012
(6)
December 2011
(3)
November 2011
(5)
October 2011
(6)
September 2011
(3)
August 2011
(6)
July 2011
(4)
June 2011
(5)
May 2011
(5)
April 2011
(7)
March 2011
(9)
February 2011
(9)
January 2011
(11)
December 2010
(10)
November 2010
(10)
October 2010
(9)
September 2010
(13)
August 2010
(16)
July 2010
(21)
June 2010
(17)
May 2010
(16)
April 2010
(22)
March 2010
(23)
February 2010
(20)
January 2010
(22)
December 2009
(23)
November 2009
(21)
October 2009
(23)
September 2009
(22)
August 2009
(21)
July 2009
(23)
June 2009
(23)
May 2009
(21)
April 2009
(22)
March 2009
(23)
February 2009
(20)
January 2009
(22)
December 2008
(23)
November 2008
(19)
October 2008
(24)
September 2008
(22)
August 2008
(22)
July 2008
(21)
June 2008
(21)
May 2008
(21)
April 2008
(25)
March 2008
(23)
February 2008
(22)
January 2008
(21)
December 2007
(15)
November 2007
(18)
October 2007
(23)
September 2007
(21)
August 2007
(21)
July 2007
(1)
June 2007
(3)
May 2007
(3)
April 2007
(3)
March 2007
(2)
February 2007
(3)
Tags
Administration
Azure
Best Practices
Career
Cloud
Cloud Computing
Conferences
DBA
Design
Developer
Development
Maintenance
Management
Metadata
Microsoft
Process
Quote Of The Day
Scripts
SQL Server
SQL Server 2008
SQL Server Management Studio
SSMS
Tips
Web
Windows Azure
Common Tasks
Blog Home
Email Blog Author
About
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
The Windows Azure Software Development Kit (SDK) and the Windows Azure Training Kit (WATK)
BuckWoody
Windows Azure is a platform that allows you to write software, run software, or use software that we've already written. We provide lots of resources to help you do that - many can be found right here in this blog series. There are two primary resources you can use, and it's important to understand what...
on
12 Sep 2012
Blog Post:
PowerShell for the DBA: Search the Windows Event Logs for Errors
BuckWoody
This is a very simple script - but it's one I run each morning. It searches the Windows System Event Log for an error condition. You can replace "System" here with "Application" or "Security", or any of the other logs that are created on your Windows Server. This is run at the server, since I have each...
on
4 Aug 2010
Blog Post:
PowerShell and Extended Properties
BuckWoody
I use Extended Properties on databases and their objects all the time. They are a great way to include information about the object – I use them for versioning the database, detailing what a column is used for and so on. They can be a little tricky to set, but it’s really not bad once you...
on
20 Jul 2010
Blog Post:
Check Script
BuckWoody
Someone contacted me yesterday and said they were getting blocked when they tried to create a FileStream data column type. On investigation, I found they were Mirroring that database – and the two aren’t compatible. Which got me to thinking – it’s probably a good idea to make a “check script” as you...
on
30 Jun 2010
Blog Post:
Create and Track Your Own License Keys with PowerShell
BuckWoody
SQL Server used to have cool little tool that would let you track your licenses. Microsoft didn’t use it to limit your system or anything, it was just a place on the server where you could put that this system used this license key. I miss those days – we don’t track that any more, and I want to...
on
15 Apr 2010
Blog Post:
List SQL Server Instances using the Registry
BuckWoody
I read this interesting article on using PowerShell and the registry , and thought I would modify his information a bit to list the SQL Server Instances on a box. The interesting thing about listing instances this was is that you can touch remote machines, find the instances when they are off and so...
on
31 Mar 2010
Blog Post:
Backup Meta-Data
BuckWoody
I'm working on a PowerShell script to show me the trending durations of my backup activities. The first thing I need is the data, so I looked at the Standard Reports in SQL Server Management Studio, and found a report that suited my needs, so I pulled out the script that it runs and modified it to this...
on
30 Mar 2010
Blog Post:
Open the SQL Server Error Log with PowerShell
BuckWoody
Using the Server Management Objects (SMO) library, you don’t even need to have the SQL Server 2008 PowerShell Provider to read the SQL Server Error Logs – in fact, you can use regular old everyday PowerShell. Keep in mind you will need the SMO libraries – which can be installed separately or by installing...
on
29 Mar 2010
Blog Post:
PowerShell – Show a Notification Balloon
BuckWoody
In my presentations for PowerShell I sometimes want to start a process (like a backup) that will take some time. I normally pop up a notification “balloon” at the start, and then do the bulk of the work, and then pop up a balloon at the end to let me know it’s done. You can actually try out this little...
on
23 Mar 2010
Blog Post:
PowerShell: Read Excel to Create Inserts
BuckWoody
I’m writing a series of articles on how to migrate “departmental” data into SQL Server . I also hold workshops on the entire process – from discovering that the data exists to the modeling process and then how to design the Extract, Transform and Load (ETL) process. Finally I write about (and teach)...
on
18 Mar 2010
Blog Post:
PowerShell Version Two – Get Continuous Perf Counters
BuckWoody
In version 2.0 of PowerShell, you can now use a direct command-let (get-Counter) to get at the Performance Monitor counters. For instance, to show the current value of the Processor Percent Time, use this command: Get-Counter '\Processor(*)\% Processor Time' The interesting...
on
25 Feb 2010
Blog Post:
Tools and Processes for “Fitting it all in”
BuckWoody
Most data professionals I’ve met work in two modes: we plan for our day, and we react to the situations around us. I’m staring at my list of things that I need to do today right now, which is my planned work. Of course, I have no idea how much of that will really get done – it’s optimistic to be sure...
on
18 Jan 2010
Blog Post:
SQL Server 2008 does not always script out all tables
BuckWoody
I teach my college students to periodically script out their databases so that they can run the script to create the entire project on any system. I use this to check their homework, and to teach them about source-code control. We use the scripting wizard in SQL Server Management Studio (SSMS) and select...
on
9 Dec 2009
Blog Post:
SQL Server Best Practices: Use Roles When You Can
BuckWoody
SQL Server has two major security vectors: “Principals”, which are primarily users and roles (groups), and “Securables”, which are primarily objects on the server or in the database, like tables or views. Many applications use Logins for their users, and then tie those Instance Logins to Database Users...
on
7 Dec 2009
Blog Post:
Code that Writes Code
BuckWoody
I have scripts that re-create my databases for testing and development purposes. But sometimes I want to take the data from a set of tables and move it as well – I could use SSIS, or a SELECT INTO statement, but what if I want to “re-set” the data to a point in time? In other words, load it with some...
on
25 Nov 2009
Blog Post:
Changing the Primary Key Before You Have Data
BuckWoody
In my class this week, the students went through the inserts, updates and deletes that they had created for their database design, and then the moment of truth – creating the queries that answer the questions from the requirements. It’s often at this stage when you realize that the design isn’t exactly...
on
23 Nov 2009
Blog Post:
Using Perfmon with SQL Server – Part Two
BuckWoody
Yesterday I posted a header from a script that shows you some links for how to use “Logman”, a Windows command-line utility that can automate your collection of Windows Performance Monitor counters. Towards the bottom, you can see the logman command I use, and you can see that it points to a counter...
on
19 Nov 2009
Blog Post:
Store XML Document as Binary, Read as XML
BuckWoody
I had an interesting question the other day, so I thought I would share both the question and the answer. We had an older application that had stored an XML document in a table as a binary data type column. I know, I know – we’ve had an XML data type for some time, but not when this app was written....
on
12 Nov 2009
Blog Post:
Templates for New Query Window
BuckWoody
When I’m in SQL Server Management Studio and I click the “New Query” button, my Query Window comes up like this: /* <ScriptFileName, SYSNAME, ScriptFileName>.sql Purpose: <Purpose, SYSNAME, Purpose> Author: <Author, SYSNAME, Buck Woody> Last Edited: <LastEdited, SYSNAME, LastEdited>...
on
28 Oct 2009
Blog Post:
T-SQL Prettifiers
BuckWoody
OK, I don't think that's even a word, but the synonyms (can a non-word have a synonym?) are code beautifiers, sql formatters, etc. The basic idea is that it's a program that re-formats the text in a Transact-SQL statement using a standard set of rules. They do things like capitalizing keywords or breaking...
on
2 Sep 2009
Blog Post:
The Importance of a Test System
BuckWoody
Most of us have three environments in our organizations: Development, Staging, and Production. But I don't count Staging as a test system. Sure, I use it to do an integration test for code before it goes to the users, but that's not the only kind of testing I do. I install management and performance...
on
5 Aug 2009
Blog Post:
Commenting your Code
BuckWoody
You should always add descriptive comments to any code that will live longer than a single event. It's useful not only for the other unfortunate souls blessed with your code, but for yourself, years later, when you say "what was I thinking here?" I've recently had to debug some code and it...
on
29 Jul 2009
Blog Post:
PowerShell and SQL Server: Script all Tables
BuckWoody
This is a script that I found/put together/re-arranged that will script out all of the tables from a database - in this case, Adventureworks2008. You need to change the BWOODY1 part to the name of your server, and the SQL2K8 part to your Instance name. You can change the database name as well, of course...
on
2 Jul 2009
Blog Post:
Use PowerShell to Backup All User Databases
BuckWoody
This script will back up all user databases - you need to change the BWOODY1\SQL2K8 part to your server\instance name, and of course, you should only run this on a test system until you completely understand it. Unfortunately, the SQL Server PowerShell Provider doesn't make this very easy - and there...
on
25 Jun 2009
Blog Post:
Read the SQL Server Error Log with PowerShell
BuckWoody
This script uses a native client call, so you can use it on any machine that has PowerShell installed along with the SQL Server client software. As always, only run this script on a test system until you understand what it does, and of course you'll need to change the server name in the connection string...
on
10 Jun 2009
Page 1 of 3 (63 items)
1
2
3