My Work
My Blogs
Hotlinks
Category Archives: SQL
2 of 10,388 days remaining #TRON
– Using tsql to figure out how long until TRON:LEGACY DECLARE @tron datetime, @tron_legacy datetime SET @tron = ’7/9/1982 12:00:00′ SET @tron_legacy = ’12/17/2010 12:00:00′ SELECT CAST( DATEDIFF( DD, GETDATE(), @tron_legacy ) as varchar(2) ) + ‘ of’ + CAST … Continue reading
Posted in fun, internets, microsoft, motivation, SQL, tsql
Leave a comment
TSQL : How to find all database tables ending with an UPPERCASE X
1 2 3 4 5 6 7 8 9 10 — Give me all tables ending with an UPPERCASE X SELECT table_name, SUBSTRING( table_name, LEN(table_name), 1 ) as 'end' FROM INFORMATION_SCHEMA.TABLES — SELECT ascii('X') = 88 — SELECT ascii('x') = … Continue reading
Posted in database, internets, SQL, tips and tricks, tsql
Leave a comment
Endless Mural wins FWA site of the day
I’m ecstatic to announce the Endless Mural HTML5 project has won the prestigious FWA Site of the day award. While this isn’t the first project I’ve worked on that has won the FWA, it is the first NON-Flash, HTML5 and … Continue reading
Posted in .net, art, award, browser, C#, cool, database, development, fun, Internet Explorer, javascript, microsoft, SQL, Visual Studio
Tagged art, asp.net, azure, beauty of the web, branden hall, cloud, endlessmural, FixDBLib, generative art, html5, ie9, javascript, joshua davis, okapi
3 Comments
Selecting random ids using TOP and a CTE
While testing visualizations in a Flex application, I needed to do some underlying data cleanup in SQL Server. One of my tasks was to manually update an entity table and set the status column to one of three possibilities. Status … Continue reading
Posted in database, SQL, tips and tricks, tsql
Tagged common table expression, cte, mssqlserver, SQL, sql server, SQLSERVER, top, tsql
Leave a comment
