Thursday, August 16, 2007

More SQL Server 2008 T-SQL Coolness - Table Value Constructors (or better, Row Constructors)

The Zen of Database Development - Katmai: Looking into Row Constructors

"Thursday is  Katmai Day here at ZoDD, and today I’m going to be discussing the first in a series of posts covering features that show up in SQL Server 2008, using the latest Community Technology Preview, CTP4. This morning’s subject will be the new functionality they are calling Table Value Constructors, and sometimes, perhaps more clearly, Row Constructors. ...

...

But now, in Katmai, these multiple sets of values may all be assigned within a single VALUES clause. This syntax opens up this clause for some very table-like behavior. For instance:

INSERT INTO Contacts (Name, Age, SalesId)
VALUES(‘John Doe’,25,5), (‘Jane Doe’, 36,6), (‘Peter Doe’, 49,7)

But wait-there’s more!

Now that we have established how to use these Row Constructors in the INSERT statement, Katmai expands their usage to allow them to be used as a more general table source.

...

SELECT * 
FROM (VALUES(‘John Doe’,25,5),
(‘Jane Doe’, 36,6),
(‘Peter Doe’, 49,7)) psuedoTable(pName, pAge, pSalesID)

Check out the new aliasing syntax. Now you can not only specify a name for the “table”, but you can name all of the columns in the table as well. This’ll come into heavy play later when we cover INSERT OVER DML. For now, suffice it to say that this effectively let’s you set up tables in script. Note that this aliasing is not necessary for use in the INSERT statement.

This can get more sophisticated:

SELECT *
FROM Employees emp
JOIN (VALUES(‘John Doe’,25,5),
(‘Jane Doe’, 36,6),
(‘Peter Doe’, 49,7)) psuedoTable(pName, pAge, pSalesID)
ON emp.EmployeeID = pseudoTable.pSalesID

Think about how this can affect your application!

..."


That is just too cool. I can think of SO many ways to use this...


I'm thinking hard about skipping SQL Server 2005 and just going with SQL Server 2008.


 


Related Past Post XRef:
New SQL Server 2008 T-SQL Features - It's the little things that are cool...

"Basic Instructions"

Thomas turned me on to the Basic Instructions comic strip yesterday. I'm still digging through the archives and finding some real gems (I'm laughing so hard I think I coughed up a lung... I hate when that happens... :)

Some of my favorite lung producing and snort laugh posts;

How to Justify an Extravagant Purchase to Your Spouse

How to Train Your Back-Up

How to Write a Self-Evaluation (I had to do this yesterday, and I could have used these Instructions then...  ;)

How to Deal with a Crazy Spouse

How to Wash a Cat

 

(via Williams World (Thomas & Olivia Williams) - Basic Instructions)

Wednesday, August 15, 2007

"Open XML Explained" Free eBook (PDF)

Open XML Developer.org - Open XML Explained e-book

"Attached is a downloadable copy of "Open XML Explained" by Wouter Van Vugt, the first book on Open XML development. The sample documents for the book are also available for download here.

This 128-page book covers the basics of Open XML, including many of the topics covered in the Open XML developer workshops, as well as several additional topics. ..."

From the introduction;

"...

The purpose of this book is to provide you with the building blocks required to build your own document-centric solution. In this book you will discover the basics of WordprocessingML, SpreadsheetML and PresentationML as well as the DrawingML supporting language. Learn about the use of custom markup to enable custom solutions using WordprocessingML, the formulas of SpreadsheetML or the great visual effects that can be applied using DrawingML.

Who is this book for?
In this book you will be provided a detailed overview of the three major markup languages in Open XML. This book is written for those who have a basic understanding of XML or HTML. If you are a software architect or developer who needs to build document-centric solutions you can learn about how to build your value-added solutions based on the Open XML platform. Those new to document markup languages as well as those more experienced in document markup but new to Open XML will benefit from this book.

..."

If you're learning, or want to learn, Open XML then this commercial quality printable PDF is a great starting point.

(via Doug Mahugh - Open XML development book)

Outlook Connector Updated (From 12.0.4518.1047 to 12.0.4518.1058)

Microsoft Downloads - Microsoft Office Outlook Connector

Looks like an updated Outlook Connector has been released. Based on the version number change from the last, I'm guessing no major changes. I wonder if it was updated to address the recent Hotmail update? Seems like a reasonable guess... Also I don't see any "Beta" references in the download description. Maybe it's now RTW?

To install it you have to first manually uninstall the previous version (i.e. Control Panel - Add/Remove Programs - Uninstall ...). The good news is that the settings are left in place, so when you install this new version, you don't have to reconfigure or set it up.

So far, it seems to be running just fine...

 

Related Past Post XRef:
Microsoft Office Outlook Connector Beta Released
Microsoft Office Outlook Connector (Think Outlook to Hotmail Connector)

Tuesday, August 14, 2007

The Pocket Guide to Electronic Discovery for Judges

Master the Business - A judges’ pocket guide to electronic discovery

"Ever wonder what the judges consider is important? What about with regards to the discovery of your information. The US Courts have published a pocket guide for judges on electronic discovery.

Download the .pdf of Managing Discovery of Electronic " [Post leached in full]

This 33 page printable PDF is pretty interesting (from a "this is the business space I'm in" point of view).

From the Preface;

"This pocket guide is designed to help federal judges manage the discovery of electronically stored information (ESI). It encourages judges to actively manage those cases involving ESI, raising points for consideration by the parties rather than awaiting the parties’ identification and argument of the matters. The guide covers issues unique to the discovery of ESI, including its scope, the allocation of costs, the form of production, the waiver of privilege and work-product protection, and the preservation of data and spoliation. As you are reading, you may encounter some unfamiliar terms. Many of these terms are defined in a glossary at the end of the guide. ..."

(via Information Governance Engagement Area - A judges’ pocket guide to electronic discovery - Master the Business - Boise, Idaho)

VB.Net Library for Amazon's Flexible Payment Service

Phil801 - Geek Blog - Amazon FPS Library for VB.Net

"Amazon released a C# Demo for FPS, but not a VB.Net one. Since VB.Net is my preferred language, I converted the C# library to VB.Net.

It would seem that Amazon will probably continually release new versions of the WSDL in C# - to avoid having to convert it every time and to make future upgrades easy, I wrapped the WSDL in a separate DLL. In the future, all that will need to be done to upgrade it is to replace the WSDL source file in the DLL project and rebuild.

This isn’t a download and run project - FPS is much more complicated than that. Once you extract the zip file, make sure you follow the instructions in the ReadMe.txt file - there is much to do!

..."

I've been thinking about checking out Amazon's FPS. Not sure what I'd charge for, but still I like what I've been reading about it...

(via Amazon Web Services Blog - Amazon Flexible Payments Support Sees Community Support)

Monday, August 13, 2007

Microsoft Visual Basic 2005 Power Packs 2.0 - Line/Circle/Square Shapes + PrintForm and Printer Compatibility Library Now all in One Assembly

Microsoft Downloads - Microsoft Visual Basic 2005 Power Packs 2.0

"Line and Shape controls, PrintForm component, and Printer Compatibility Library

Microsoft Visual Basic 2005 Power Packs 2.0 includes a new set of Line and Shape controls and updated versions of the two previously released Visual Basic 2005 Power Packs, the PrintForm Component and the Printer Compatibility Library. All three are now included in a single assembly making them even easier to use and redistribute with your application [GD: Emphasis added].

...

The new Line and Shape controls included in this version of the Visual Basic 2005 Power Packs are a set of three graphical controls that enable you to draw lines, ovals, and rectangles on forms and containers at design time making it much easier to enhance the look of your user interface. These new shape controls also provide events such as click and double-click allowing developers to respond and interact with end users.

The Printer Compatibility Library allows projects that used the Printer and Printers Collection in Visual Basic 6.0 to be upgraded without having to re-write your printing logic...

The PrintForm component is designed to bring back the ability to easily print a Windows Form..."

Nice. I dig how they are all bundled into a single assembly. And I've missed my VB6 shape controls... ;) 

 

Related Past Post XRef:
Microsoft Printer Compatibility Library 1.0 (Providing a VB6 Printer like object in VB.Net)
PrintForm Component 1.0 - Directly Print a WinForm

IE7Pro v1.0 Released

IE7pro for Internet Explorer 7 - IE7pro v1.0 Released (14-08-2007)

"...

Changelogs: IE7Pro v1.0 (14-08-2007):
1. EasyHome added
2. Hotkey full customizable now
3. Single IE instance support
4. Tab session restore function added
5. Can use hotkey to dupliate tabs
6. DEP problem solved
7. Fix autofill in iframe bugs
8. Inline search improved
9. Spell checking improved
10. Plugin system improved
11. IE6 Quick Search Added
12. Update automatic notfiy now"

The very cool, must have IE7 addin/extension, IE7Pro is now officially a v1.0...

The new EasyHome feature is pretty darn cool. It's like a thumbnail, personal, quick access, portal page. You can setup nine different sites, which are shown as thumbnails on the EasyHome page. Clicking on a site opens it in a new tab or on the current tab. Below is an example I created with a couple Microsoft sites...

 

Related Past Post XRef:
IE7Pro v0.9.18 Released - Inline, Firefox like Spell Checking Added
IE7Pro - Must have IE7 Add-on?

Sunday, August 12, 2007

"WordCloud - A Squarified Treemap of Word Frequency" - Something like this would be cool in a Feed Reader...

CodeProject - WordCloud - A Squarified Treemap of Word Frequency

"WordCloud is a visual depiction of how many times a word is used, or its frequency if you will, within a given set of words. It does this by: reading in plain text, filtering out "stop words", counting how many times a word is used, and displaying results in a Squarified Treemap. (In the images above, the larger a node and more saturated the color, the more frequent its use.)

..."

When I saw this, my first thought was, "Oh I want something like this in my Feed Reader."

Think high level analysis of the new, unread posts, with a user definable threshold (i.e. don't include words with less than ## occurrences). Then clicking on a word/square brings up the list of posts with that word. And a background thread updating the Map as you read through the posts...

Then of course, I'd also want Concept and Natural Language Processing (NLP) as well as just Word mapping.
(So pretty much an Electronic Data Discovery[EDD]/Electronically Stored Information[ESI] search, analysis and review tool for my web feeds... ;)

Hum...

 

Related Past Post XRef:
Feed Stream Analysis - Web Feed/Post Analysis to Group Like/Related Posts
WordNet
"Statistical parsing of English sentences"
"A Model for Weblog Research"
AddressOf.com - MS Research TreeMap.Net

"Outlook Webmail Add-in for Windows Home Server"

Coding4Fun - Outlook Webmail Add-in for Windows Home Server

"Windows Home Server is a new product from Microsoft which allows home users to manage and share data, including photos, documents, videos, music, etc.  It also provides a very easy way to backup all computers on your home network to a central storage server.

Windows Home Server can also be extended via add-ins to enhance the experience and provide new and interesting functionality other than what comes in the box.

One feature not present in WHS that I would find useful is the ability to view my Outlook mail box from the web at any time.  I have 6 or 7 email accounts that are all setup to retrieve via POP3 to Outlook.  Most of these accounts do not support IMAP or have a web-based interface.  Therefore, Outlook is generally open all day and checking messages.  When I'm away from home for work or pleasure, it's very often inconvenient to have to remote desktop into the machine with Outlook running to read my email, so it would be nice to have a web-based version of my current Outlook folders so I can view all email (old and new) at any time simply by browsing to a web server at home.  Windows Home Server comes with Internet Information Services 6 (IIS6) and one can easily add a new web application to IIS on the server.

So, this article will attempt to show how to build a new web site using ASP.NET that can be added to your Windows Home Server installation that will allow one to view the Outlook folders running on whatever computer contains your current Outlook installation and message store.

If you wish to just use the application, download the sample from above and skip down to the deployment section for installation instructions.

..."

I don't have a Windows Home Server running (yet), but I'm pretty interested in it. Mostly due to its extensibility. This article a cool example of that...

This Coding4Fun project provides a working example of extending WHS, integrating with Outlook/MAPI, using WCF and wrapping it all up with an ASP.Net bow.

(via Brian Peek [MVP C#] - Outlook Webmail Add-in for Windows Home Server)