database-tools

Holiday Time Resources

Have a little free time over the holidays while providing coverage for work, or like to brush up on technical information? In addition to the many...

Dealing with %ERRORLEVEL%

All PowerShell versions When you run native EXE console commands inside your scripts, these commands typically return a numeric return value. This...

Compacting Paths

[WindowsAPILib.Helper _i="0" _address="0" theme_builder_area="post_content" /][WindowsAPILib.Helper _i="1" _address="1"...

Get the OU from an LDAP Path

All Versions To extract certain parts from raw strings, you can often use a combination of text splitting and text substring commands. For example,...

Creating Huge Dummy Files

All PowerShell versions If you need to stress test systems, or need large dummy files for other purposes, here is some code that can create even...

Data Modeling for Agile Environments

Agile Development has always been at the forefront of new ways of developing software. So why should Data Modeling be left behind? In this short...

Limiting Maximum String Length

All Versions To make sure output text is not excessively long, you can use logic like this to shorten text that is longer than a given maximum...

Catching Errors in Native EXEs (Part 2)

All versions Here is yet another approach that you can use to detect errors emitted by console applications: $ErrorActionPreference = 'Continue'...

Cloud Databases – A Primer

Ever since the era of Cloud Computing featuring SaaS(Software as a Service) pioneered by Salesforce, Databases have not been left behind. Databases...

Cloning NTFS Permissions

All PowerShell Versions Here is some simple code that reads the NTFS permissions from one folder and applies the exact same settings to another....

Catching Errors in Native EXEs (Part 1)

All Versions When you run native console EXE commands such as robocopy.exe, ipconfig.exe, or similar commands, you can handle errors raised by these...

Oracle 12 New Limits

Hi!  I’ve been working on PL/SQL topics and wanted to share with you a new Oracle12 feature.  Oracle12 now allows for much longer...

Using WMI Inheritance

All Versions WMI classes are inherited from each other, and that’s something you can take advantage of. Take this line: PS> Get-WmiObject...

Finding Process Owners

All PowerShell versions To find out who owns a particular process and how many instances are running, try this simple piece of code: $ProcessName =...