Showing posts with label T-SQL. Show all posts
Showing posts with label T-SQL. Show all posts

Wednesday, July 22, 2009

Search and Log using SQL

Good evening. The following is an SQL-based version of the Search and Log script.

Here the search is done with the '.Global' parameter turned to false, and so the SQL also takes care of finding the number of instances per file. The logging starts after the search is done, and non-matching folders aren't listed.

SQL usage details: The script creates a temporary table called 'search_log'. My default database is the Northwind sample database, and the connection string is suited to windows authentication mode.

Sunday, June 28, 2009

Multi-Rectangle \ Spiral [T-SQL]

I wrote a script which draws multiple rectangle-inside-rectangle in T-SQL. The number of rectangles to be drawn can be set ... to a certain extent ;)

A change of a parameter at the end of the script produces a spiral.