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
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Archives
Archives
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
Career
Cloud
Cloud Computing
Conferences
DBA
Design
Developer
Development
Maintenance
Management
Metadata
Microsoft
PowerShell
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
MSDN Blogs
>
Carpe Datum
>
All Tags
>
powershell
Tagged Content List
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:
Find Rules and Defaults using the PowerShell for SQL Server 2008 Provider
BuckWoody
I ran into an issue the other day where I couldn't set up some features in SQL Server 2008 because they ddon't support the use of Rules or Defaults. Let me explain a little more about that. In older versions of SQL Server, you could decalre a "Rule" or "Default" just like you do with a Table Constraint...
on
1 Jun 2010
Blog Post:
SQL Server PowerShell Provider And PowerShell Version 2 Get-Command Issue
BuckWoody
The other day I blogged that the version of the SQL Server PowerShell provider (sqlps) follows the version of PowerShell. That’s all goodness, but it has appeared to cause an issue for PowerShell 2.0. the Get-Command PowerShell command-let returns an error ( Object reference not set to an instance of...
on
10 May 2010
Blog Post:
SQL Server PowerShell Provider follows the Version of PowerShell on the Host and other errata
BuckWoody
There may be some misunderstanding on how the PowerShell Provider for SQL Server works. I’ve written an article or two explaining that you can use PowerShell with SQL Server, without having the SQL Server 2008 (or higher) provider around. After all, PowerShell just uses .NET, and SQL Server “Server Management...
on
5 May 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:
PowerShell PowerPack Download
BuckWoody
I read Jeffery Hicks’ article in this month’s Redmond Magazine on a new add-in for Windows PowerShell 2.0. It’s called the PowerShell Pack and it has a some great new features that I plan to put into place on my production systems as soon as I finished learning and testing them. You can download the...
on
7 Apr 2010
Blog Post:
Process Improvement and the Data Professional
BuckWoody
Don’t be afraid of that title – I’m not talking about Six Sigma or anything super-formal here. In many organizations, there are more folks in other IT roles than in the Data Professional area. In other words, there are more developers, system administrators and so on than there are the “DBA” role. That...
on
6 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:
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:
Create Outlook Appointments from PowerShell
BuckWoody
I've been toying around with a script to create a special set of calendar objects in Outlook that show when my SQL Server Agent Jobs are scheduled to run. I haven't finished yet, but I thought I would share the part that creates the Outlook Appointments.I have yet to fill a variable with the start and...
on
10 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:
Start a SQL Server Agent Job using the SQL Server PowerShell Provider
BuckWoody
Whew! That’s a mouthfull. Anyway, I thought I would share part of a script I wrote today to help automate (more) from PowerShell. This assumes a few things: that you’re doing this from the SQL Server 2008 PowerShell provider (not just good old regular PowerShell) and that you change the HAL9000...
on
10 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:
Performance Counters? There’s a script for that.
BuckWoody
It’s not hard to get Performance Monitor counters in PowerShell 1.0, and it’s REALLY easy in 2.0. This is one I used yesterday to monitor network bytes in and out on 2.0 (keep all of the green lines in this post on the same line) : get-counter -Counter "\Network Interface(*)\Bytes Total/sec"...
on
5 Jan 2010
Blog Post:
Measure Statement Performance with PowerShell
BuckWoody
When you monitor for performance, you might start in the database server itself. But a true test really has more to do with the “round trip” of a data request from a client to a server and then the return of data back to the client. So I wired up this little test to simulate that process, and now I can...
on
30 Dec 2009
Blog Post:
PowerShell Demo Prompt
BuckWoody
When I teach I have to set my fonts really big so that folks in the back can see. I show PowerShell from time to time, and people keep asking me about my latest prompt. Here’s what my prompt looks like: { univac\Buck on UNIVAC using AMD64 } -- 12/23/2009 7:54:10 PM ...
on
24 Dec 2009
Blog Post:
SQL Server Best Practices: Protect CmdExec
BuckWoody
In SQL Server, there are times that you need to do things in the operating system, and to allow that there is a feature called CmdExec. This is not always a good thing –whenever you leave the confines of SQL Server and go out to the operating system, you can cause issues, not the least of which are security...
on
3 Dec 2009
Blog Post:
Create an Excel Graph of your Big Tables – with PowerShell!
BuckWoody
I showed a demo of how to find the top ten tables in the database at the PASS Conference. Here’s that script – you’ll need to fix the server name, instance name, and database name. You can use this to display any numbers – and even more. The mind reels with the possibilities. This uses the PowerShell...
on
9 Nov 2009
Blog Post:
Read a Web Page from PowerShell, Make a Web Page from a Database Query From PowerShell
BuckWoody
I presented at the Pacific Northwest SQL Server User Group here in the Seattle area last night, and I was asked at the break about reading a web page in PowerShell, and being able to do something with the data it has. There are actually a few ways to do that, but you should probably start with the net...
on
9 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 (53 items)
1
2
3