Jan
31
2009
0

SQL Tips – List of New Zealand Towns and Cities

Here is SQL and a text list of the towns and cities in New Zealand.

The list is free for all to use for any purpose.

The original data was sourced from Wikipedia on Saturday 31 January 2008.

If you need to modify it further, remember that you can always use The Worlds Simplest Code Generator.

Please post a comment if you find this useful.
(more…)

Written by John Burns in: SQL Tips |
Jan
29
2009
0

SHA256 and higher in SQL Server

As part of a new project I’m doing, I needed to use hashes.

A good source of information on hashes is available from wikipedia.

SQL has the built in function HASHBYTES but this only supports up to the SHA128 algorithm and I want to use SHA256.

I created myself a CLR in C#.net and in some moment of feeling generous, decided to share the code.

(more…)

Written by John Burns in: SQL Tips |
Jan
25
2009
0

Happy Birthday Opportunity

Following on from my earlier post.

The Mars rover Opportunity has now been successfully on the martian surface for 5 years.

I have information on the Spirit rover on my earlier post (link at top of this one).

Information: http://en.wikipedia.org/wiki/MER-B

Written by John Burns in: General Randomness |
Jan
24
2009
0

SQL Tips – List of US States

Here is SQL and a tab delimited list of the States of the USA for all to use.

The original data was sourced from Wikipedia.

Please post a comment if you find this useful.

Edit: I’ve beed advised that although it’s not technically a state, this list needs District of Columbia as most real world scenarios require it. It’s been added to the top of the list.

(more…)

Written by John Burns in: SQL Tips |
Jan
24
2009
0

Happy Birthday Apple Macintosh

The Apple Macintosh was introduced on the 24th January 1984.

macintosh_128k_transparency
Image source: Wikipedia.

Happy 25th birthday, you’ve come a long way.

Written by John Burns in: General Randomness |
Jan
23
2009
0

SQL Tips – List of Countries

Here is SQL and a tab delimited list of Countries for all to use.

The original data was sourced from Wikipedia.

Note that some countries have single quotes in their names, these need to be escaped for SQL. The SQL I’m supplying is escaped, but the tab delimited version is not.

Please post a comment if you find this useful.

(more…)

Written by John Burns in: SQL Tips |