Vous voulez voir cette page en français ? Cliquez ici.

Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Scripting SQL Management Objects in Windows Powershell [Hardcover]

Willis Johnson


Currently unavailable.
We don't know when or if this item will be back in stock.



Book Description

January 2008 Wrox Briefs (Book 13)
This Wrox Blox shows how to communicate with SQL Server using SQL Management Objects instantiated on-the-fly in Windows PowerShell scripts. Topics include how to create Windows PowerShell scripts that use SQL Management Objects (SMO) to manage and program SQL Server. In addition, you will learn about areas of potential difficulty and see how to avoid them—for example, the use of '$' in instance name, quote nesting rules, connection pooling, and schemata. The explanations in this Wrox Blox are focused on numerous code examples, and show you how to do the following: load SMO; create a server object; get a user’s credentials from the UI into a safestring; connect to SQL Server using SQL Server authentication; connect to SQL Server using Windows authentication; profile a server instance by examining its properties; use WMI to examine and configure a server’s Windows service; use PowerShell cmdlets to start, stop, and restart a service; check for the existence of a database; verify a file path; save data in a csv file; retrieve data from a csv file; create a database; create a schema; create a table; insert data in a table; execute ad hoc T-SQL queries; retrieve information about views; create reports in HTML format; display HTML reports in a browser window; launch a Windows process; and tweak data format. A downloadable ZIP archive is included which contains all the example scripts, as well as additional scripts.

Usage Rights for Wiley Wrox Blox

Any Wrox Blox you purchase from this site will come with certain restrictions that allow Wiley to protect the copyrights of its products. After you purchase and download this title, you:

  • Are entitled to three downloads
  • Are entitled to make a backup copy of the file for your own use
  • Are entitled to print the Wrox Blox for your own use
  • Are entitled to make annotations and comments in the Wrox Blox file for your own use
  • May not lend, sell or give the Wrox Blox to another user
  • May not place the Wrox Blox file on a network or any file sharing service for use by anyone other than yourself or allow anyone other than yourself to access it
  • May not copy the Wrox Blox file other than as allowed above
  • May not copy, redistribute, or modify any portion of the Wrox Blox contents in any way without prior permission from Wiley
  • May not copy the Wrox Blox file other than as allowed above
  • May not copy, redistribute, or modify any portion of the Wrox Blox contents in any way without prior permission from Wiley

If you have any questions about these restrictions, you may contact Customer Care at (877) 762-2974 (8 a.m. - 5 p.m. EST, Monday - Friday). If you have any issues related to Technical Support, please contact us at 800-762-2974 (United States only) or 317-572-3994 (International) 8 a.m. - 8 p.m. EST, Monday - Friday).


Product Details


Product Description

About the Author

Willis Johnson is a consultant specializing in data security and privacy. He worked as a programmer–writer in Microsoft’s SQL Server product group for the 5+-year duration of the SQL Server 2005 product cycle, writing sample code, white papers, and documentation for a variety of SQL technologies. He claims to have read (skimmed) the SQL Server 2005 RTM Books Online in its entirety. He has taught classes on data security, networking, distributed file systems, and C# at Microsoft and at the U.C. Berkeley Haas Business School. He has a Ph.D. in Near Eastern Studies from U.C. Berkeley, an M.Phil. in History from Cambridge (UK), and a B.A. in English from Reed College. He lives in Evanston, Illinois. He can be reached at versalog@gmail.com.
The author also gratefully acknowledges Joe Brinkman for his insightful technical edit of this article.

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Reviews

There are no customer reviews yet on Amazon.ca
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 2.5 out of 5 stars  2 reviews
1 of 1 people found the following review helpful
3.0 out of 5 stars Ok, but could be better Feb. 20 2010
By R. J Kaucher - Published on Amazon.com
Verified Purchase
I'm glad that I made the purchase of this little ebook, but the fact is most of the contents can be found on the web or in other books. For example Microsoft SQL Server 2008 Administration with Windows PowerShell (Wrox Programmer to Programmer) is far more comprehensive. Howerver I wanted a quick start guide that I could place on my Kindel and this achived the purpose, though as another reviewer noted 30 pages is quite small for $7. It's virtually a 4 part blog post.

But it comes down to this: Did I learn $7.00 worth of information from it? In my opinion I did.

Now I would like to see a similar book for PowerShell and SharePoint. I do a lot of administration tasks on my company's WSS site via PowerShell (querying data from SQL Server and placing it in lists to use a Chart Part to draw graphs, etc). I think I might learn some new tips from a little book like this.
1 of 1 people found the following review helpful
2.0 out of 5 stars Fairly small May 28 2009
By Daniel Goertz - Published on Amazon.com
Fairly small at 30 pages for seven bucks. Will at least get you started. I wish I had put this money toward a more comprehensive book. Also, where's the "downloadable Zip archive"?.

Look for similar items by category


Feedback