Exporting Registry Keys 09 February 2004 at 00:00
For example, to export all keys under the ASP.NET software section to a file called "test.txt", run the following command:
  REGEDIT /E test.txt HKEY_LOCAL_MACHINESOFTWAREMICROSOFTASP.NET
SQL Server : Inserting Rows Using INSERT...SELECT 13 February 2004 at 00:00
To copy all the data from one table into another:
INSERT INTO Destination
   SELECT Col1, Col2, Col3
   FROM Source
   WHERE Col1 = 'example'

To copy a table and all it's data (not including primary keys, indexes, etc.):

SELECT * INTO Destination FROM Source
SQL Server : Invoking COM Components 16 February 2004 at 00:00

You can create and use COM components with the sp_O stored procedures.

sp_OACreate "MyComponent.Class"
would be used to create an instance of your component - you can then use the other stored procedures to fire methods, set properties, etc.
XSL strings : checking string length 18 February 2004 at 00:00
Example 1: Checking string length

  <xsl:choose>
    <xsl:when test="string-length(@sec) >= 12">
      <xsl:value-of select="substring(@sec,0,12)"/>...
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="@sec"/>
    </xsl:otherwise>
  </xsl:choose>
MSXSL : Calling script functions 23 February 2004 at 00:00
  <msxsl:script implements-prefix="portal" language="vbscript">
    <![CDATA[
      Function GetSomething(node)
        GetSomething = Mid(node.item(0).text,12)
      End Function
    ]]>
  </msxsl:script>

..

  <xsl:template match="@MY_FIELD">
    <xsl:value-of select="portal:GetSomething(.)"></xsl:value-of>
  </xsl:template>

You can also do tests against function results. For example, you pass in a value "user_privileges" to your stylesheet. Below, you can then run if tests against your function for blocks within your templates.

  <xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:yours="urn:your-scripts">

  <xsl:param name="user_privileges" />

  <msxsl:script language="C#" implements-prefix="yours">
    <![CDATA[
    public bool checkPrivileges(string required, string privileges){
      if (required == privileges) {
        return true;
      }
      return false;
    }
    ]]>
  </msxsl:script>

  ..

  <xsl:template match="your_node">
    <xsl:if test="yours:checkPrivileges(@privileges, $user_privileges) = 'true'">

      ..

    </xsl:if>
  </xsl:template>