Manipulating Scheduled Tasks

If you need to change and adjust settings in a registered scheduled task, there is a COM interface called 'Schedule.Service' that you can use to access all registered scheduled tasks (Vista/Server 2008 or better). The sample code below accesses the scheduled...

Dumping Scheduled Tasks

There is an underestimated option to make schtasks.exe dump scheduled tasks as CSV data. PowerShell can grab the CSV data and turn it into objects, creating reports with all scheduled tasks in just one line: schtasks.exe /query /fo csv | ConvertFrom-Csv | Where-Object...

Create Strongly Typed Hash Table

A hash table can store any data type. If you want more control, you can create a typed dictionary (which behaves pretty much like a hash table): $ht = @{} $htTyped = New-Object 'System.Collections.Generic.Dictionary[string,int]' $ht.ID = 12 $ht.Person =...

Make Your PowerShell Scripts Click-runnable

If you are like me, you hate having to type in the full path to a PowerShell script to run it.Wouldn’t it be nice if you could just execute it? I’m an old Windows scripter guy (DOS, VBScript, etc), and I’m used to being able to just double-click a...

Clone FireMonkey objects

Clone FireMonkey objects

I've got a task of cloning FireMonkey objects. Let it be "chess". An object is created as an aggregate in design-time. Look at the picture in the Structure pane. I have made the composite pawn model and start thinking of make 15 more. If you’re thinking...

Is Using RECONFIGURE WITH OVERRIDE dangerous?

One of my pet peeves is the use of RECONFIGURE WITH OVERRIDE in scripts to change server options. Am I being unreasonable or is this justified? All you need to do is look up the definition of the WITH OVERRIDE option for the RECONFIGURE command in Books Online to see...

Increase SQL Server Performance Using Multiple Files

By default, SQL Server databases are comprised of two files: the primary data file (or .mdf) and the log file (or .ldf). It is, however, possible to configure SQL Server databases to use additional files – which can be an effective means of increasing SQL Server...

Installing Sonar for Delphi

Installing Sonar for Delphi

On 15th of November the HTML5 Builder QA Team was in the VLCTesting where we learned very good experiences and shared knowledge, amongst this was the software Sonar, Right now in HTML5 Builder we are not using that tool but we found interesting to add a continuous...

BUMMER

USE mysql; SHOW FULL TABLES WHERE table_type = 'base table'; /* returns ... innodb_index_stats BASE TABLE innodb_table_stats BASE TABLE ... */ SELECT * from innodb_table_stats; /* returns Error CODE: 1146 TABLE 'mysql.innodb_table_stats' doesn't...