http://msdn.microsoft.com/en-us/library/ms187731.aspx YES IT'S THE SAMPLE CODE! http://msdn.microsof...y/ms187731.aspx page of examples http://msdn.microsoft.com/en-us/library/ms187731.aspx SELECT http://msdn.microsoft.com/en-us/library/ms187731.aspx http://msdn.microsoft.com/en-us/library/ms187731.aspx some sample queries from BOL