::::::::: PowerShell :::::::::
Saturday, November 12, 2005
  [Non-MSH] Stupid function practice
As I was browsing MSDN2 website to see if there is any useful classes and function I could use to maintain SQL 2000 server or my comp.

I have come across a namespace Microsoft.SqlServer.Server.

Ah, great, there should be a lot of fun stuff in it.
So I thought.

But i ran into this rather interestingly named function ExecuteAndSend of SqlPipe class.

AFAIK, a function should do ONE thing and ONE thing only, WELL.
Is it that hard to write a code like

SqlContext.Pipe.Execute(); 
SqlContext.Pipe.Send();

// Instead of
SqlContext.Pipe.ExecuteAndSend();


BTW, this "ExecuteAndSend" reminds of "SendAndExit"(i think i saw something like this from Outlook) and "SaveAndExit" functionality in Crystal Reports Formula Editor

I tend to despise such a coding practice...
 
Comments: Post a Comment

Links to this post:

Create a Link



<< Home
Let's get lazy with PowerShell!

Name:
Location: Flushing, NY, United States

Experimenting with a different format of blogs...

Links
ARCHIVES
10/01/2005 - 11/01/2005 / 11/01/2005 - 12/01/2005 / 12/01/2005 - 01/01/2006 / 01/01/2006 - 02/01/2006 / 02/01/2006 - 03/01/2006 / 03/01/2006 - 04/01/2006 / 04/01/2006 - 05/01/2006 / 05/01/2006 - 06/01/2006 / 06/01/2006 - 07/01/2006 / 07/01/2006 - 08/01/2006 / 08/01/2006 - 09/01/2006 / 10/01/2006 - 11/01/2006 / 11/01/2006 - 12/01/2006 /


Powered by Blogger