database-tools

How .Replace() and -replace differ

There are two ways of replacing text in a string: the Replace() method, and the –replace operator. They work fundamentally different....

HTML Encoding Advanced

The static .NET method HtmlEncode does a good job encoding the usual character codes but fails with many special characters. To encode all...

HTML Encoding

There is a static .NET method that you can use to HTML-encode text, for example if you want the text to display correctly in HTML output: PS>...

Bulk Printing Word Documents

This line finds all Word documents in your profile: Get-ChildItem -Path $home -Filter *.doc* -Recurse If you’d like, you can easily print them all....

May the 4th Be With You!

Do. Or do not. There is no try. May the 4th is National Star Wars Day and IDERA is excited to celebrate. Keep your database universe Safe with the...

Translating Error Records

Whenever PowerShell records an error, it wraps it in an Error Record object. Here is a function that takes such an error record and extracts the...

Enable AD Users with Out-GridView

Sometimes it requires just a couple of lines of code in PowerShell to produce highly useful helpdesk tools. Here is one that displays all currently...

Turning AD User into a Hash Table

Sometimes it could be useful to load all attributes from a given AD user into a hash table. This way, you could edit them, and then use Set-ADUser...

The best problem is no problem.

Many DBAs begin Oracle tuning by focusing on the slow SQL statements.  Time to tune is often made only when there is an issue.  We believe...

Oracle Performance Tuning Practice

Transaction performance is business performance.  SQL statement execution is the foundation of transaction performance.  Business performance has an...

Ejecting CD Drive

Here is a fun little function that uses WMI to eject your CD drive. It does so by first asking WMI for all CD drives. It then uses the explorer...

1 70 71 72 73 74 159