When you save date and time to text, for example when exporting to CSV, or when creating text reports, DateTime objects are converted to the date...
database-tools
Categories
- Free tools
- SQL Admin Toolset
- SQL Compliance Manager
- SQL Defrag Manager
- SQL Diagnostic Manager for MySQL
- SQL Diagnostic Manager for SQL Server
- SQL Diagnostic Manager Pro
- SQL Doctor
- SQL Enterprise Job Manager
- SQL Inventory Manager
- SQL Query Tuner for SQL Server
- SQL Safe Backup
- SQL Secure
- SQL Workload Analysis for SQL Server
- Uptime Infrastructure Monitor Formerly Uptime
Converting Ticks to Date and Time (Part 2)
In the previous tip we explained how you convert date and time displayed as ticks to a true DateTime format. However, there are two different time...
Is your SQL drawing a blank? It’s NULL a surprise!
The title of this post is a play on words, but very appropriate. We are going to discuss the inconsistent results, as well as performance...
Converting Ticks to Date and Time (Part 1)
Occasionally, you may run into strange date and time representations: they might be represented as a 64-bit integer like this: 636264671350358729....
Response time – What it is, how you should treat it, and some SQL goodness.
I get asked a lot "What does 'response time' really measure?" Or something close... Response time, simply put, is a measurement of...
Directly Importing Certificates (Part 2)
In the previous tip we showed how to import digital certificates with .NET methods on any version of PowerShell. Newer versions of PowerShell come...
April #SQLChat Findings
Jim Donahoe (@SQLFlipFlopsDBA ) hosted a #SQLChat on Wednesday, April 5 over Career Satisfaction within the SQL Space. This was a busy conversation...
Directly Importing Certificates (Part 1)
Installing certificate files on a computer can be done using .NET methods with any version of PowerShell. This would import a certificate file to...
Working with Glossaries in Team Server
Working with Glossaries in Team Server So Why Business Glossaries? A typical way of structuring glossaries is aligning glossaries to...
Beware of Aliases
Can you spot what is wrong here? PS C:\> function r { "This never runs" } PS C:\> r function r { "This never runs" } PS C:\> When you run...
Dealing with Long File Paths
Historically, the Windows file system sometimes stalls when paths grow longer than 256 characters. There is a module available at the PowerShell...
Monitoring Amazon RDS: Beyond Raw Logs
Amazon Relational Database Service (RDS) is a hosted database service in the AWS cloud. If your organization's data is stored in one of the...
Detecting Character Code 0
Occasionally, strings use a “Byte 0” character as a delimiter. Unlike most other delimiters, this delimiter does not show in text output...
Auto-Declaring Alias Names for Functions
You probably know that PowerShell supports alias names for commands. But did you know that you can define alias names for PowerShell functions...
Checking Operating System Version
Here is a simple and fast way of checking the operating system version: PS C:\> [Environment]::OSVersion Platform ServicePack Version...
Comparing Against $NULL
If you want to find out whether a variable contains $Null (nothing), always make sure you keep $null on the left side of the comparison. Most of the...
Examining Certificate Details
If you’d like to examine and view the details of a certificate file without the need to import it into your certificate store, here is a...
Azure SQL Database – What a DBA Needs to Know
Moving your databases to "the cloud" won't eliminate the DBA job - but it will change it. Microsoft Azure SQL Database, in particular,...
Exporting ActiveDirectory Module
To manage users and computers in your Active Directory from PowerShell, you need the ActiveDirectory module which comes as part of the free RSAT...
Managing NTFS Permissions
While there are not many built-in cmdlets to manage NTFS permissions, there is a growing list of open source PowerShell modules adding these. One...
World Backup Day on Friday, March 31, 2017
World Backup Day is a day for everyone to learn about the increasing role of data in our lives and how important regular backups are. This day is...
Determine if Array Contains Value – Using Wildcards
If you’d like to know whether an array contains a given element, PowerShell provides the –contains operator. This operator does not...
Webinar – Monitoring Amazon RDS: Beyond Raw Logs
Wed, Apr 5, 2017 10:00 AM PDT In this Webinar, Shree Nair, Product Manager at Webyog, will be talking about the limitations of monitoring Amazon RDS...
Working with LDAP and Dates
LDAP filters are a fast and powerful way of retrieving information from Active Directory. However, LDAP filters use a very low-level date and time...
Using a PowerShell Parameter Validator
PowerShell function parameters support a ValidateScript attribute where you can assign PowerShell code. The code is invoked when the parameter...
Casting Data with Culture
When casting data (converting it to a different data type), PowerShell supports two approaches that can differ considerably. Here is an example:...
Invoking a Script Block
Code inside a script block can either be invoked by call operators such as „&“ or „.“, or by calling the Invoke()...
Running Cmdlets without Verb
This has been part of PowerShell since version 1.0: cmdlets with verb „get“ can be invoked without the verb. So instead of...
Texts with Maximum Length (Part 2)
Here is another strategy to make sure a text does not exceed a given length. In contrast to our previous tip, this code will not pad spaces in case...
Texts with Maximum Length (Part 1)
If you want to make sure a text is of given length, here is an easy approach: $text = 'this is a long text' $MaxLength = 10...