I have found XQuery to be of good use when persisting serialized objects to Sql Server. Using XQuery we can pass an xml string to a stored procedure and derive the expected results with fairly simple code. We start with an XML string, which may contain multiple nodes and values. [code language="sql"] DECLARE @testXmlString XML SET @testXmlString = ' <Root> <employee> <name>Tim</name> <age>27</age> <company>ToplineStrategies</company> <title>Developer</title> <Education>B.S.
You are here
While this item is way below the clouds, every so often a piece of the programmer's art comes along that just takes your breath away.
A few weeks ago our company decided to buy some tools for our department. I’m obviously not talking about hammers or screwdrivers here, but computer work tools. Even though I am sometimes tempted to use a real hammer on my computer, especially when it takes a long time to compile 200 lines of code! Anyways, without getting too sidetracked, most of my co-workers decided to go for ReSharper which I personally think is a great option.
Timing the performance of a particular piece of code is a task that I find myself doing frequently and I suspect most developers do as well. Perhaps it's the load time for a web page, the execution of a stored procedure, calling a web service, or any number of other timings. In .NET I've often used the DateTime class to calculate the elapsed time with code similar to this.
A client of ours recently ran into an issue with browser permissions while remotely testing a product in our development environment. There are four places the user can click a link to stream a .pdf to their browser, but the download was being blocked in two of them. While this would normally be solved by adjusting settings in IE, this was not something the tester was permitted to do, nor could he choose to download the file from the IE Information Bar, as the bar was not being shown.