Home
Manage Your Code
Snippets for Michael Wood
Showing 1-10 of 13
TitleDescriptionLanguageViewsDate Added
Generate Test Files with PowerShell Creates N number of test files of a specific size. You can control where the files are created, how many to create and the size to create them. You can also control what filler character is used to file the file.PowerShell147/4/2008
Get a DataTable from SQL Server via query A short function that can be used to get a DataTable of data from a SQL Server.PowerShell397/1/2008
Toggle the Debugging Registry Switch for IE Use this script to toggle if Script debugging is on or off for IE. Useful for when you are developing, but then you don't want to see all the script errors on other people's sites.PowerShell336/4/2008
Calculate Table Row Size in SQL 2005 This script can be used to help produce database size estimates. It takes the size of a table row and includes index sizes to give you an estimate of how much space a given row will take up.SQL1715/2/2008
Calculate Table Row Size in SQL 2000 This script can be used to help produce database size estimates. It takes the size of a table row and includes index sizes to give you an estimate of how much space a given row will take up.SQL865/2/2008
What Version of SQL Server? Used to determine version, product level and edition of SQL running on a box.SQL1254/29/2008
PS Deploy Service Files Script This script will stop a service, move files to a destination location, then restart the service. Good for deploying during development.PowerShell694/22/2008
Extract Files from MSI package Use to call MSIEXEC wit the command line parameters to pull the contents of the msi out of of the packageOther1931/14/2008
Retrieve XmlNavigator from embedded resource Use this to embed XML documents into your assemblies and pull them at run time. Just make sure to set the XML file Compile mode to "Embedded Resource" and feed in the full name of the file when you want to pull it out.C#19610/7/2007
ConfigReader Helper Class This class is a singleton class designed to help read sections from a configuration file that is NOT the app.config or web.config file. I used it for a console application that was passed a configuration file name on the command line.C#3052/15/2007
12