A View Inside My Head

Jason's Random Thoughts of Interest
posts - 48, comments - 98, trackbacks - 2
 Search only my stuff!   Day of .Net October 18, 2008 - Be there!

My Links

Archives

Post Categories

Image Galleries

Site Links

Articles

Short articles written and published by Jason Follas
Install Zune 3.0 Software on Windows 2008 Server

I use Windows 2008 Server as a workstation.  I find that certain things actually work better (like Sleep Mode, for instance, which is weird because servers shouldn't need to sleep, but Vista would often not go to sleep and drain my battery the entire couple of hours that it continued to run in my computer bag, and Windows Server 2008 has never done that.... but I digress). However, when the new Zune 3.0 software was released today, I found, like many others, that the software explicitly listed three operating systems that were supported, and Server 2008 was unfortunately not one of...

posted @ Tuesday, September 16, 2008 2:53 PM | Feedback (0) | Filed Under [ Articles Zune ]

Announcing Tourniquet

Have you ever gotten an idea stuck in your head?  One that you start your day thinking about in the shower, and then try as you might, you just can't get rid of it? That's what happened to me a few months ago.  Specifically, I started thinking about Twitter, and the problems that it was experiencing.  At that time, the "Fail Whale" was making very frequent appearances, indicating that Twitter was having problems keeping up with the demands being made on it.  My Tweeps (social networking friends on Twitter), all with short attention spans like myself, began chattering about moving to...

posted @ Monday, August 18, 2008 12:16 AM | Feedback (0) | Filed Under [ Articles .NET ]

SQL Server 2008: Spatial Data, Part 8

  In this, the eighth part in a series on the new Spatial Data types in SQL Server 2008, I'll step away from the database and do a little spatial coding using .NET. Redistributable .NET Library Up to this point in the series, I have demonstrated a lot of interesting (?) things that you can do with the new Spatial data types (Geometry and Geography) in SQL Server 2008.  You might be thinking, "That's swell, and all, but I wish I could do some of that stuff without needing to be tethered to a database."  Well, you know what?  You can! I mentioned in...

posted @ Monday, June 23, 2008 10:18 PM | Feedback (4) | Filed Under [ Articles .NET SQL ]

Coding in SQL Server: An Evolution

Tuesday at the NWNUG meeting, Steven Smith spoke on various ways to squeeze performance out of your ASP.NET applications.  This was a fantastic talk, and gave me plenty to think about (since ASP.NET is not my forte, I only consider myself to have an intermediate skillset on this topic). One suggestion that he made involved caching database writes.  That is, instead of immediately writing logging-type information to the database for every request, which is a relatively expensive operation considering the small payload size, that you could accumulate them in a short-term cache, and then perform the write operation periodically.  Fewer database...

posted @ Thursday, June 19, 2008 4:50 PM | Feedback (2) | Filed Under [ Articles .NET SQL ]

SQL Server 2008 RC0 Install: Sql2005SsmsExpressFacet

This morning's goal was to quickly install SQL Server 2008 RC0, and then move on with some project work.  Let's just say that my project work should resume by this afternoon... In the interest of disk space, I removed an existing installation of SQL Server 2005 Developer Edition.  And then the installation of 2008 RC0 began by installing the "Microsoft.NET Framework 3.5 SP1 (Beta)"...  which is probably "install-smell" for me needing to pave my machine when the product finally RTM's.  But, I digress... The installation went pretty smoothly until it came time for the "System Configuration Check" that takes place after you...

posted @ Thursday, June 19, 2008 11:02 AM | Feedback (16) | Filed Under [ Articles SQL ]

Software Development Meme

This meme is brought to you by Michael Eaton, who just so happens to be a huge fan of my spatial talks.  ;-) How old were you when you started programming? Well, we might need to better define "programming" here.  I started tinkering with computers when I was about 6 or 7 (is that right, Dad?).  In those days, it was more about reading a book about BASIC and typing in the program to run.  Then I would make changes to the program to see the results.  If modifying an existing program is considered "programming", then this is my epoch. I really didn't start creating...

posted @ Sunday, June 08, 2008 10:56 AM | Feedback (0) | Filed Under [ Articles Me! ]

SQL Server 2008: Spatial Data, Part 7

The Open Geospatial Consortium's Simple Features specification, which SQL Server 2008's Geometry data type is based upon, defines standards for working with spatial data using a flat-earth (projected planar) model.  Ironically, these standards don't exactly cover the intricacies of using an ellipsoidal model, which is needed to "accurately" represent the world that we live in.  In other words, the OGC standards define how to work with paper maps of the world, but not globes. Fortunately, the SQL Server team recognized that that the Geometry type is inadequate for a lot of scenarios, and implemented a second data type just for representing...

posted @ Friday, May 16, 2008 10:53 PM | Feedback (3) | Filed Under [ Articles .NET SQL ]

Project Euler Comes to Azeroth

It seems that a lot of my friends are doing Project Euler (according to my High School math teacher, this is pronounced "Oiler").  For example, Bill Wagner has been posting C# solutions, Darrell Hawley has ventured into the Python realm, and Dustin Campbell has been working on F# versions. I love numbers, and spent a good portion of one summer playing with primes and number fields just for fun (since then, I've discovered WoW, and that takes up all of my time that would otherwise be spent exercising my brain).  Project Euler is actually right up my alley, and while in...

posted @ Thursday, April 24, 2008 9:38 PM | Feedback (1) | Filed Under [ Articles ]

SQL Server 2008: Spatial Data, Part 6

  In the Part 4 and Part 5 of the series, I demonstrated some instance methods of the Geometry type that returned a new Geometry based on existing instances.  In this part, I will concentrate on instance methods and properties of the Geometry type that return scalar values and Points. STArea, STLength Typically, your spatial data will represent something from the real world.  A LineString may be the collection of points gathered from a GPS device, and together they may represent the path that you took from your home to the office.  A Polygon may be the collection of points around the...

posted @ Friday, April 11, 2008 8:44 PM | Feedback (3) | Filed Under [ Articles .NET SQL ]

Using PIVOT and RANK Together

A friend of mine (name withheld, I didn't actually ask if I could blog this... ;-) asked for advice to what appears to be a simple problem until you try to implement it.  Consider the following somewhat normalized table: AccountNum ...

posted @ Thursday, April 10, 2008 11:03 AM | Feedback (0) | Filed Under [ Articles SQL ]

SQL Server 2008: Spatial Data, Part 5

In the previous part of this series, I demonstrated instance methods that transformed a single Geometry type into another useful Geometry.  In this post, we'll go a step further and show methods that allow two or more instances to interact with one another in order to produce a new Geometry. For my baseline, I'll use two Polygons that overlap each other: DECLARE @g geometry = 'POLYGON((10 10, 40 10, 40 40, 10 40, 10 10))' DECLARE @h geometry = 'POLYGON((30 30, 50 30, 50 50, 30 50,...

posted @ Monday, April 07, 2008 11:51 AM | Feedback (1) | Filed Under [ Articles .NET SQL ]

SQL Server 2008: Spatial Data, Part 4

In this, the 4th post in a series (Part 1, Part 2, Part 3) on the new spatial data types in SQL Server 2008, I'll explain some of the methods that are used to transform a single Geometry instance into another useful Geometry instance.  Note that I'm using Geometry for simplicity, but these techniques also work with Geography.  Edit: Ok, after starting to take a hard look at Geography, I realized that A LOT of the methods that Geometry offers are not implemented in Geography.  :-/  Sorry to mislead you.   Useful TipTo help me to visualize geometries as I explore the...

posted @ Thursday, April 03, 2008 8:31 PM | Feedback (4) | Filed Under [ Articles .NET SQL ]

SQL Server 2008: Spatial Data, Part 3

In the previous parts of this series (Part 1, Part 2), I introduced the Geometry and Geography data types, the various subclasses (Point, LineString, Polygon, etc), and demonstrated a little bit of the Well-Known Text (WKT) syntax.  These two posts were primarily informational in nature, and didn't touch SQL Server at all.  Let's change that! Instantiating the UDT The Geometry and Geography data types are implemented as User Defined Types (UDT) written in .NET.  They are automatically installed with the server, and are available for use by any SQL Server 2008 database.  For this post, I will use the Geometry type to...

posted @ Friday, March 28, 2008 4:06 PM | Feedback (2) | Filed Under [ Articles .NET SQL ]

SQL Server 2008: Spatial Data, Part 2

In the first part of this series, I provided a somewhat verbose description of the two different types of Spatial data supported by SQL Server 2008: Geometry (flat Earth model) and Geography (ellipsoidal model).  Now, let's dive in a bit deeper, and take a look at some of the specifics. Standards From their website, the Open Geospatial Consortium, Inc. (OGC) is described as "a non-profit, international, voluntary consensus standards organization that is leading the development of standards for geospatial and location based services."  Unlike me, these folks are the real experts in the field who understand both the problems and the solutions...

posted @ Thursday, March 27, 2008 5:30 PM | Feedback (4) | Filed Under [ Articles .NET SQL ]

Practical Uses For Geospatial Data

Around the 1995 timeframe, two very different systems opened my eyes to the power of geospatial data, particularly how it can be used to enable an analyst to make better business decisions.  At the time, I was working in IT at the hub sorting facility for an overnight freight company that specialized in heavyweight cargo.  This company not only had a fleet of aircraft flying freight around the country, but also operated a large fleet of trucks (both linehaul and LTL). Shortly after leaving that company, I was tasked with working on an e-commerce system that had some unique sales territory...

posted @ Tuesday, March 25, 2008 3:45 PM | Feedback (0) | Filed Under [ Articles SQL ]

SQL Server 2008: Spatial Data, Part 1

Beyond Relational The introduction of SQLCLR in SQL Server 2005 allowed for very rich User Defined Types to be utilized.  This meant that a developer could create a single object that contained multiple data points (properties) and could also perform calculations internally (methods), yet store that instance in a single field of a single row in a database table.  Suddenly, any type of data could be stored and queried in the database, instead of just strings and numbers. Fast forward to the present time, as Microsoft is celebrating the launch of SQL Server 2008 (notice that in the brilliance that is known...

posted @ Friday, March 14, 2008 5:13 PM | Feedback (3) | Filed Under [ Articles .NET SQL ]

SQL Server Reporting Services and LIZ

The problem: A user tries to open a report from SQL Server Reporting Services using Internet Explorer.  They are prompted for their username and password, despite the fact that their machine is part of an Active Directory domain.  The expectation is that since the SSRS server is on the local intranet, that the logon would happen automatically. The findings: The server was incorrectly being assigned to the [external] Internet zone by Internet Explorer.  By default, IE will not automatically log you into a website located in this zone as it would if the website was...

posted @ Friday, February 15, 2008 3:46 PM | Feedback (0) | Filed Under [ Articles SQL ]

Watch Those Numeric Data Types!

I received a support email yesterday for a system that I had written a few years ago.  It seems that they were running year-end reporting, and total combined profit numbers were coming out in the quadrillions.  It would have been a nice profit to report, but alas, not an accurate one. When a number is magnitudes larger than what it should be, and there is division involved in a calculation somewhere, then that smells of floating point math issues.  In this case, there was a SUM() being performed on a series of numbers, and instead of the result being a true zero,...

posted @ Friday, January 25, 2008 10:21 AM | Feedback (4) | Filed Under [ Articles SQL ]

How to Get the Zune 2.2 Firmware When Your Corporate Proxy Requires Authentication

The Problem The new Zune firmware is out!  Yay! The Zune software still uses BITS as the only means to download the firmware.  Boo! BITS doesn't like being behind a HTTP proxy server that requires authentication.  In my particular situation, I must authenticate against a Microsoft ISA Server using Integrated Security (i.e., NTLM authentication) before my machine is permitted to receive files from a remote webserver.  But, by default, BITS doesn't automatically provide your domain user information to the proxy server.  So, when the Zune software attempted to use BITS to download the firmware, it failed, and I only got a "C00D11CD" error...

posted @ Tuesday, November 13, 2007 10:11 AM | Feedback (25) | Filed Under [ Articles Zune ]

Fun and Frusteration with SQL Logins

SQL Server Integration Services (SSIS) is a huge step forward from its predecessor, Data Transformation Services (DTS).  One thing that they have in common, though, is that there is no one simple method to allow a database user to execute a SSIS package on demand. SSIS is THE centerpiece of Microsoft's ETL (Extract-Transform-Load) offering.  In lay terms, SSIS is the tool that you use to import data into your SQL Server database from any number of sources, and it's a fantastic tool for doing so...  so long as your environment doesn't change often... and you execute the package from Visual Studio or the...

posted @ Thursday, November 08, 2007 12:18 PM | Feedback (1) | Filed Under [ Articles SQL ]

Article: XML Indexes

This article was prompted by a question from the audience about the internals of XML Indexes. In particular, they were interested in where the internal system table used by Primary XML Indexes is stored, and what might happen to this index if the database is detached and then reattached on another server. http://www.jasonfollas.com/wiki/SQLXML_Tricks_XMLIndex.ashx Note: I will likely continue to expand on this particular article to include information about secondary indexes and when to use each type.  

posted @ Wednesday, August 22, 2007 9:53 AM | Feedback (0) | Filed Under [ Articles ]

Article: Extract Element Names from SQL Server XML Data

An audience member asked me if there was a way to be able to determine the element names that exist within the XML stored in a table. His business problem was that he archives XML in a field of a table, and needed to identify whether one row's XML contained a different set of elements than another row's (i.e., if an untyped XML's "schema" changed between versions).  In this article, I demonstrate T-SQL and XQuery syntax that will generate a table structure containing a list of element names (per primary key value).  From this point, "traditional" querying can be used...

posted @ Friday, August 17, 2007 9:44 AM | Feedback (0) | Filed Under [ Articles ]

Powered by: