<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3684674940194321679</id><updated>2011-12-16T12:22:50.484+11:00</updated><category term='umbraco'/><title type='text'>.Net and SharePoint Resources.....</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-8378335568507311535</id><published>2011-12-16T12:22:00.001+11:00</published><updated>2011-12-16T12:22:50.495+11:00</updated><title type='text'>Things to do when a Umbraco site goes live</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Set release mode in visual studio for any projects and then compile and deploy DLLs.&lt;br /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; Configure a 404 page. Set the ID of the error page in /config/umbracosettings.cofig file. The following section need to be modified – &lt;br /&gt;&amp;lt;errors&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- the id of the page that should be shown if the page is not found --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;errorPage culture="default"&amp;gt;1&amp;lt;/errorPage&amp;gt;--&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;errorPage culture="en-US"&amp;gt;200&amp;lt;/errorPage&amp;gt;--&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;error404&amp;gt;1&amp;lt;/error404&amp;gt;&lt;br /&gt;&amp;lt;/errors&amp;gt;&lt;br /&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; Also change the notification section in the /config/umbracosettings.config file. This email address (from address) will be used by Contour as well. &lt;br /&gt;&amp;lt;notifications&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- the email that should be used as from mail when umbraco sends a notification --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;email&amp;gt;info@barangaroo.com&amp;lt;/email&amp;gt;&lt;br /&gt;&amp;lt;/notifications&amp;gt;&lt;br /&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp; Add google analytics for the site&lt;br /&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp; Add google mobile tracking for the site. To add the ga.aspx page in the root, the ga.aspx page need to be added to the following line in the web.config file (appSettings section). &amp;lt;add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/ga.aspx" /&amp;gt;&lt;br /&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp; Set umbraDebugMode to false in the web.config file (appSettings section)&lt;br /&gt;&amp;lt;add key="umbracoDebugMode" value="true" /&amp;gt; &lt;br /&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp; Set customerrors mode="RemoteOnly" in web.config file&lt;br /&gt;8.&amp;nbsp;&amp;nbsp;&amp;nbsp; Set debug to false in the web.config file&lt;br /&gt;9.&amp;nbsp;&amp;nbsp;&amp;nbsp; In the system.web/trace section set enabled to false &lt;br /&gt;10.&amp;nbsp;&amp;nbsp;&amp;nbsp; Modify the connection string in web.config file according to the live server credentials&lt;br /&gt;11.&amp;nbsp;&amp;nbsp;&amp;nbsp; To reset the ClientDependency cache, delete the ClientDependency folder from App_Data&lt;br /&gt;12.&amp;nbsp;&amp;nbsp;&amp;nbsp; If there are any form built by Contour package, use the following regex to validate the email.&lt;br /&gt;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&lt;br /&gt;13.&amp;nbsp;&amp;nbsp;&amp;nbsp; Change the admin password to something very strong password.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-8378335568507311535?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/8378335568507311535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=8378335568507311535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8378335568507311535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8378335568507311535'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2011/12/things-to-do-when-umbraco-site-goes.html' title='Things to do when a Umbraco site goes live'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-8992713371283925060</id><published>2011-02-18T12:18:00.003+11:00</published><updated>2011-02-18T12:28:49.785+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='umbraco'/><title type='text'>Compare date in XSLT for Umbraco 4.5</title><content type='html'>Simply compare dates in the XSLT (umbraco 4.5).&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE xsl:stylesheet [ &amp;lt;!ENTITY nbsp " "&amp;gt; ]&amp;gt;&lt;br /&gt;&amp;lt;xsl:stylesheet&lt;br /&gt;version="1.0"&lt;br /&gt;xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&lt;br /&gt;xmlns:msxml="urn:schemas-microsoft-com:xslt"&lt;br /&gt;xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:CWS.Twitter="urn:CWS.Twitter" xmlns:umbraco.contour="urn:umbraco.contour"&lt;br /&gt;exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets CWS.Twitter umbraco.contour "&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:output method="xml" omit-xml-declaration="yes" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:param name="currentPage"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Don't change this, but add a 'contentPicker' element to --&amp;gt;&lt;br /&gt;&amp;lt;!-- your macro with an alias named 'source' --&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name="source" select="/macro/source"/&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name="numberOfItems" select="/macro/numberOfItems"/&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name="datenow" select="umbraco.library:CurrentDate()" /&amp;gt;  &lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:template match="/"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- The fun starts here --&amp;gt;&lt;br /&gt;&amp;lt;ul id="whatsOnButtons"&amp;gt;&lt;br /&gt;&amp;lt;xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc][((eventFrom!='') and umbraco.library:DateGreaterThanOrEqual(eventFrom,$datenow))]"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--&amp;lt;xsl:sort select="@updateDate" order="ascending"/&amp;gt;--&amp;gt;&lt;br /&gt;  &amp;lt;xsl:sort select="eventFrom" order="descending"/&amp;gt;&lt;br /&gt;        &amp;lt;xsl:if test="position() &amp;lt;= $numberOfItems"&amp;gt;&lt;br /&gt;          &amp;lt;li&amp;gt;&lt;br /&gt;              &amp;lt;a href="{umbraco.library:NiceUrl(@id)}"&amp;gt;&amp;lt;xsl:value-of select="eventHeading"/&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;          &amp;lt;/li&amp;gt;&lt;br /&gt;        &amp;lt;/xsl:if&amp;gt;&lt;br /&gt;&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-8992713371283925060?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/8992713371283925060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=8992713371283925060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8992713371283925060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8992713371283925060'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2011/02/compare-date-in-xslt-for-umbraco-45.html' title='Compare date in XSLT for Umbraco 4.5'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-1428430946345178574</id><published>2011-01-09T11:55:00.001+11:00</published><updated>2011-01-09T11:57:18.588+11:00</updated><title type='text'>Windows command</title><content type='html'>Found a great link about commands in windows. Finds the link below -&lt;br /&gt;http://en.kioskea.net/faq/403-command-prompts-for-windows#control-panel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-1428430946345178574?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/1428430946345178574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=1428430946345178574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1428430946345178574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1428430946345178574'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2011/01/windows-command.html' title='Windows command'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-8641757612007490356</id><published>2010-12-23T10:18:00.003+11:00</published><updated>2010-12-23T10:32:55.013+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='umbraco'/><title type='text'>Manual Umbraco installation (step by step)</title><content type='html'>Note: I run the following to install Umbraco in IIS6 (Umbraco 4.5.2 for .Net 3.5)&lt;br /&gt;&lt;br /&gt;1.    Download Umbraco (http://umbraco.org/download). Download the manual installation one.&lt;br /&gt;2.    Unblock it by clicking the properties of the zip file and unblock it&lt;br /&gt;3.    Copy files from the build folder from the zip file and paste those to the web folder in the IIS&lt;br /&gt;4.    Set permission of the folders (Create a batch file with the following script and copy it to the root folder of the site)&lt;br /&gt;(get the below script from the location below - http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line )&lt;br /&gt;&lt;br /&gt;:: Hope you enjoy this one&lt;br /&gt;:: Sets up the right folder permissions for Umbraco to run&lt;br /&gt;:: Inspired by http://blog.mattbrailsford.com/2010/08/01/adding-a-windows-context-menu-item-to-set-umbraco-folder-permissions/&lt;br /&gt;:: from the boys at Offroadcode.com&lt;br /&gt;ECHO OFF&lt;br /&gt;SET which_user="%computername%\ASPNET"&lt;br /&gt;ECHO ON&lt;br /&gt;cacls "%CD%" /E /G %which_user%:C&lt;br /&gt;cacls "%CD%\app_code" /E /G %which_user%:F&lt;br /&gt;cacls "%CD%\app_browsers" /E /G %which_user%:F&lt;br /&gt;cacls "%CD%\app_data" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\bin" /E /G "which_user%:R&lt;br /&gt;cacls "%CD%\config" /E /G "which_user%:C&lt;br /&gt;cacls "%CD%\css" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\data" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\masterpages" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\media" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\python" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\scripts" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\umbraco" /E /G "%which_user%:R&lt;br /&gt;cacls "%CD%\usercontrols" /E /G "%which_user%:R&lt;br /&gt;cacls "%CD%\xslt" /E /G "%which_user%:C&lt;br /&gt;cacls "%CD%\web.config" /E /G "%which_user%:C&lt;br /&gt;::Uncomment below if testing&lt;br /&gt;::PAUSE&lt;br /&gt;&lt;br /&gt;5.    Run the batch file to set the permission to the folder (For IIS 7 see the section “Setting Permission for AppilcationPoolIdentity” - http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line  )&lt;br /&gt;6.    Create a website in IIS (not virtual directory).&lt;br /&gt;7.    Create a separate application pool for Umbraco&lt;br /&gt;8.    Click website properties in the IIS and click on the ASP.NET folder and make sure that the ASP.NET version&lt;br /&gt;9.    2.0.50727&lt;br /&gt;10.    Create a database in SQL server&lt;br /&gt;11.    Set a username and password for the database&lt;br /&gt;12.    Run the default.aspx file from the root folder now&lt;br /&gt;13.    User the same database name and user credentials that you created in the SQL server&lt;br /&gt;14.    Now follow the instruction on screen to complete the installation&lt;br /&gt;&lt;br /&gt;Happy Installing :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-8641757612007490356?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/8641757612007490356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=8641757612007490356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8641757612007490356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8641757612007490356'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2010/12/manual-umbraco-installation-step-by.html' title='Manual Umbraco installation (step by step)'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-2597135162712085173</id><published>2010-02-14T23:08:00.001+11:00</published><updated>2010-02-14T23:09:27.869+11:00</updated><title type='text'>Add a identity column in the table in a database</title><content type='html'>alter table CustomersTest add ID int identity&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CustomerTest is the table name and ID is the column name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-2597135162712085173?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/2597135162712085173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=2597135162712085173' title='37 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2597135162712085173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2597135162712085173'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2010/02/add-identity-column-in-table-in.html' title='Add a identity column in the table in a database'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>37</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-3363615243184765669</id><published>2009-11-19T17:38:00.000+11:00</published><updated>2009-11-19T17:39:15.063+11:00</updated><title type='text'>Generate random numbers in SQL (any digit number)</title><content type='html'>&lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;declare&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; @val &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: blue;"&gt;bigint&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;Set&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; @val &lt;span style="color: gray;"&gt;=(&lt;/span&gt;&lt;span style="color: blue;"&gt;Select&lt;/span&gt; &lt;span style="color: fuchsia;"&gt;ABS&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: fuchsia;"&gt;CAST&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: fuchsia;"&gt;CAST&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: fuchsia;"&gt;NEWID&lt;/span&gt;&lt;span style="color: gray;"&gt;()&lt;/span&gt; &lt;span style="color: blue;"&gt;AS&lt;/span&gt; &lt;span style="color: blue;"&gt;VARBINARY&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;6&lt;span style="color: gray;"&gt;))&lt;/span&gt; &lt;span style="color: blue;"&gt;AS&lt;/span&gt; &lt;span style="color: blue;"&gt;Bigint&lt;/span&gt;&lt;span style="color: gray;"&gt;)))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;Select&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; &lt;span style="color: fuchsia;"&gt;substring&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: fuchsia;"&gt;cast&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;@val &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;15&lt;span style="color: gray;"&gt;)),&lt;/span&gt;1&lt;span style="color: gray;"&gt;,&lt;/span&gt;14&lt;span style="color: gray;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;as&lt;/span&gt; Rand_id&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;14 – to control the number length&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-3363615243184765669?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/3363615243184765669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=3363615243184765669' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3363615243184765669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3363615243184765669'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/11/generate-random-numbers-in-sql-any.html' title='Generate random numbers in SQL (any digit number)'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-599210295443690354</id><published>2009-08-19T18:24:00.001+10:00</published><updated>2009-08-19T18:24:56.747+10:00</updated><title type='text'>List of development tools for SharePoint Server 2007</title><content type='html'>http://www.mossgurus.com/adnan/Lists/Posts/Post.aspx?ID=21&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-599210295443690354?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/599210295443690354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=599210295443690354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/599210295443690354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/599210295443690354'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/08/list-of-development-tools-for.html' title='List of development tools for SharePoint Server 2007'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-4451009672815411896</id><published>2009-08-18T16:40:00.001+10:00</published><updated>2009-08-18T16:41:59.776+10:00</updated><title type='text'>Free traffic builder tools for website</title><content type='html'>Follow the link below -&lt;br /&gt;&lt;br /&gt;http://www.trafficzap.com/&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;http://www.trafficrank.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-4451009672815411896?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/4451009672815411896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=4451009672815411896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/4451009672815411896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/4451009672815411896'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/08/free-traffic-builder-tools-for-website.html' title='Free traffic builder tools for website'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-2470867862824310742</id><published>2009-08-18T16:14:00.000+10:00</published><updated>2009-08-18T16:15:31.161+10:00</updated><title type='text'>Improve Web Application Performance</title><content type='html'>Follow the link below -&lt;br /&gt;http://dotnetslackers.com/articles/aspnet/ImproveWebApplicationPerformance.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-2470867862824310742?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/2470867862824310742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=2470867862824310742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2470867862824310742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2470867862824310742'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/08/improve-web-application-performance.html' title='Improve Web Application Performance'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-8032396250843722344</id><published>2009-07-18T02:02:00.000+10:00</published><updated>2009-07-18T02:03:12.771+10:00</updated><title type='text'>PowerCommands for Visual Studio 2008</title><content type='html'>http://code.msdn.microsoft.com/PowerCommands&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-8032396250843722344?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/8032396250843722344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=8032396250843722344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8032396250843722344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/8032396250843722344'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/07/powercommands-for-visual-studio-2008.html' title='PowerCommands for Visual Studio 2008'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-7449345967080074256</id><published>2009-07-05T22:48:00.002+10:00</published><updated>2009-07-05T22:49:14.208+10:00</updated><title type='text'>Sharepoint link</title><content type='html'>Seems to me a good SharePoint link but didn't test yet.&lt;br /&gt;&lt;br /&gt;http://programmingsharepoint.blogspot.com/2008/02/sharepoint-interview-questions.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-7449345967080074256?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/7449345967080074256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=7449345967080074256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7449345967080074256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7449345967080074256'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/07/sharepoint-link.html' title='Sharepoint link'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-3276847045800741588</id><published>2009-06-30T12:38:00.000+10:00</published><updated>2009-06-30T12:39:21.212+10:00</updated><title type='text'>Resources for learning the ADO.NET Entity Framework</title><content type='html'>Follow the link below -&lt;br /&gt;http://misfitgeek.com/blog/resources-for-learning-the-ado-net-entity-framework/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-3276847045800741588?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/3276847045800741588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=3276847045800741588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3276847045800741588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3276847045800741588'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/06/resources-for-learning-adonet-entity.html' title='Resources for learning the ADO.NET Entity Framework'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-3421899488752344829</id><published>2009-06-27T03:33:00.001+10:00</published><updated>2009-06-27T03:35:20.685+10:00</updated><title type='text'>MVC Tutorial Links</title><content type='html'>http://www.asp.net/learn/mvc/tutorial-33-cs.aspx&lt;br /&gt;&lt;br /&gt;http://www.asp.net/learn/mvc/?lang=cs&lt;br /&gt;&lt;br /&gt;http://www.asp.net/mvc/learn/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-3421899488752344829?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/3421899488752344829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=3421899488752344829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3421899488752344829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3421899488752344829'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/06/mvc-tutorial-links.html' title='MVC Tutorial Links'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-7363574056668188557</id><published>2009-01-18T15:38:00.002+11:00</published><updated>2009-01-18T15:39:01.645+11:00</updated><title type='text'>How to auto indenting in visual studio?</title><content type='html'>Simply press&lt;br /&gt;&lt;br /&gt;Ctrl + K&lt;br /&gt;Ctrl + D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-7363574056668188557?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/7363574056668188557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=7363574056668188557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7363574056668188557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7363574056668188557'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/01/how-to-auto-indenting-in-visual-studio.html' title='How to auto indenting in visual studio?'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-7402571202904528406</id><published>2009-01-14T03:38:00.003+11:00</published><updated>2009-01-14T03:40:57.602+11:00</updated><title type='text'>How to test XPath expression in an easy way</title><content type='html'>Want to test your XPath expression on the fly. Download the XPath tester from the following link&lt;br /&gt;&lt;br /&gt;&lt;a href="http://code.msdn.microsoft.com/NitoXPath"&gt;Download the Tool&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Load your XML file into this XPath tester and start writing your XPath expression and to test the expression, click Evaluate in the top.&lt;br /&gt;&lt;br /&gt;It's that simple. Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-7402571202904528406?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/7402571202904528406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=7402571202904528406' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7402571202904528406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/7402571202904528406'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2009/01/how-to-test-xpath-expression-in-easy.html' title='How to test XPath expression in an easy way'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-6291036677725373592</id><published>2008-12-26T03:50:00.000+11:00</published><updated>2008-12-26T03:59:55.368+11:00</updated><title type='text'>WCF: The underlying connection was closed. The connection was closed unexpectedly</title><content type='html'>When I was playing with WCF and consuming my first WCF service, I got an error like this "The underlying connection was closed. The connection was closed unexpectedly". The error message is not in very detail and so it is bit hard to guess the actual error in first glance. After doing some research, I have found out that the problem in fact in the serialization. There was a field in the datacontract of being System.Type which you cannot serialize.&lt;br /&gt;&lt;br /&gt; Hope this helps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-6291036677725373592?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/6291036677725373592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=6291036677725373592' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/6291036677725373592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/6291036677725373592'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/wcf-underlying-connection-was-closed.html' title='WCF: The underlying connection was closed. The connection was closed unexpectedly'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-1343996455402585509</id><published>2008-12-09T18:30:00.000+11:00</published><updated>2008-12-09T18:32:36.062+11:00</updated><title type='text'>How to update properties (summary and custom properties) of a word document without using the word API?</title><content type='html'>&lt;div class="entry"&gt;          &lt;div class="snap_preview"&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;With the help of Dsofile.dll provided by Microsoft, you can easily modify properties of a document when Microsoft Office is not installed in the machine. The link is below -&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;a id="y6cx" href="http://support.microsoft.com/kb/224351"&gt;http://support.microsoft.com/kb/224351&lt;/a&gt;&lt;/p&gt; &lt;p&gt;For your convenience, I am putting some code below. I worte the code for a sharepoint project to remove document properties. Hope it helps.&lt;/p&gt; &lt;p&gt;Imports System.IO&lt;br /&gt;Public Class RemoveAllProperty&lt;/p&gt; &lt;p&gt;Private m_oDocument As DSOFile.OleDocumentPropertiesClass&lt;/p&gt; &lt;p&gt;Public Function RemoveProperties(ByVal oStream As Stream) As MemoryStream&lt;/p&gt; &lt;p&gt;‘get the temporay file name along with the path&lt;br /&gt;Dim sFileName As String = Path.GetTempFileName()&lt;/p&gt; &lt;p&gt;Dim oFileStream As System.IO.FileStream&lt;br /&gt;oFileStream = New System.IO.FileStream(sFileName, System.IO.FileMode.Create, FileAccess.ReadWrite)&lt;/p&gt; &lt;p&gt;‘copy the stream&lt;br /&gt;CopyStream(oStream, oFileStream)&lt;/p&gt; &lt;p&gt;oStream.Close()&lt;br /&gt;oFileStream.Close()&lt;br /&gt;oFileStream.Dispose()&lt;/p&gt; &lt;p&gt;Dim oSummProps As DSOFile.SummaryProperties&lt;br /&gt;Dim oCustProp As DSOFile.CustomProperty&lt;/p&gt; &lt;p&gt;Dim sFile As String&lt;/p&gt; &lt;p&gt;sFile = sFileName&lt;/p&gt; &lt;p&gt;m_oDocument = New DSOFile.OleDocumentPropertiesClass&lt;br /&gt;m_oDocument.Open(sFile, False, DSOFile.dsoFileOpenOptions.dsoOptionDefault)&lt;br /&gt;oSummProps = m_oDocument.SummaryProperties&lt;/p&gt; &lt;p&gt;Try&lt;br /&gt;‘remove all the summary properties value&lt;br /&gt;oSummProps.Title = “”&lt;br /&gt;oSummProps.Author = “”&lt;br /&gt;oSummProps.Subject = “”&lt;br /&gt;oSummProps.Manager = “”&lt;br /&gt;oSummProps.Company = “”&lt;br /&gt;oSummProps.Comments = “”&lt;br /&gt;oSummProps.Category = “”&lt;br /&gt;oSummProps.Keywords = “”&lt;/p&gt; &lt;p&gt;Catch ex As Exception&lt;br /&gt;Microsoft.Office.Server.Diagnostics.PortalLog.LogString(”Exception Occurred: {0} || {1}”, ex.Message, ex.StackTrace)&lt;br /&gt;End Try&lt;/p&gt; &lt;p&gt;Dim oRmProp As DSOFile.CustomProperties&lt;/p&gt; &lt;p&gt;oRmProp = m_oDocument.CustomProperties&lt;/p&gt; &lt;p&gt;‘remove all the custom properties value&lt;br /&gt;For Each oCustProp In m_oDocument.CustomProperties&lt;br /&gt;Try&lt;br /&gt;oCustProp.Remove()&lt;br /&gt;Catch ex As Exception&lt;br /&gt;Microsoft.Office.Server.Diagnostics.PortalLog.LogString(”Exception Occurred: {0} || {1}”, ex.Message, ex.StackTrace)&lt;br /&gt;End Try&lt;br /&gt;Next oCustProp&lt;/p&gt; &lt;p&gt;m_oDocument.Save()&lt;br /&gt;m_oDocument.Close()&lt;br /&gt;m_oDocument = Nothing&lt;/p&gt; &lt;p&gt;‘After removing the properties, read the file from the temp directory and read the file into a byte array and return&lt;br /&gt;Dim oFile As System.IO.FileInfo&lt;br /&gt;oFile = New System.IO.FileInfo(sFile)&lt;br /&gt;‘oFileStream = New System.IO.FileStream(sFileName, System.IO.FileMode.Open)&lt;br /&gt;Try&lt;br /&gt;oFileStream = New System.IO.FileStream(sFileName, System.IO.FileMode.Open, FileAccess.Read, FileShare.Read)&lt;br /&gt;Catch ex As Exception&lt;br /&gt;Microsoft.Office.Server.Diagnostics.PortalLog.LogString(”Exception Occurred: {0} || {1}”, ex.Message, ex.StackTrace)&lt;br /&gt;End Try&lt;/p&gt; &lt;p&gt;Dim oMS As New System.IO.MemoryStream()&lt;/p&gt; &lt;p&gt;‘copy stream to memory stream&lt;br /&gt;CopyStream(oFileStream, oMS)&lt;/p&gt; &lt;p&gt;oFileStream.Close()&lt;br /&gt;oFileStream.Dispose()&lt;/p&gt; &lt;p&gt;‘after the read the temporary file into a byte array, delete the temporary file from temp directory&lt;/p&gt; &lt;p&gt;oFile.Delete()&lt;/p&gt; &lt;p&gt;Return oMS&lt;/p&gt; &lt;p&gt;‘Return oFileStream&lt;/p&gt; &lt;p&gt;End Function&lt;/p&gt; &lt;p&gt;‘copy stream from one stream to another&lt;br /&gt;Private Sub CopyStream(ByVal readStream As Stream, ByVal writeStream As Stream)&lt;br /&gt;Dim Length As Integer = 256&lt;br /&gt;Dim buffer As Byte() = New Byte(Length - 1) {}&lt;br /&gt;Dim bytesRead As Integer = readStream.Read(buffer, 0, Length)&lt;br /&gt;‘ write the required bytes&lt;br /&gt;While bytesRead &gt; 0&lt;br /&gt;writeStream.Write(buffer, 0, bytesRead)&lt;br /&gt;bytesRead = readStream.Read(buffer, 0, Length)&lt;br /&gt;End While&lt;br /&gt;‘readStream.Close()&lt;br /&gt;‘writeStream.Close()&lt;br /&gt;End Sub&lt;/p&gt; &lt;p&gt;End Class&lt;/p&gt; &lt;/div&gt;          &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-1343996455402585509?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/1343996455402585509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=1343996455402585509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1343996455402585509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1343996455402585509'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/how-to-update-properties-summary-and.html' title='How to update properties (summary and custom properties) of a word document without using the word API?'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-3070236357962423993</id><published>2008-12-09T18:29:00.000+11:00</published><updated>2008-12-09T18:30:01.071+11:00</updated><title type='text'>Must Know Visual Studio Shortcuts</title><content type='html'>&lt;div class="entry"&gt;          &lt;div class="snap_preview"&gt;&lt;p&gt;The following links are very useful to learn Visual Studio shortcuts.&lt;/p&gt; &lt;p&gt;&lt;a href="http://weblogs.asp.net/stephenwalther/archive/2008/10/21/essential-visual-studio-tips-amp-tricks-that-every-developer-should-know.aspx"&gt;http://weblogs.asp.net/stephenwalther/archive/2008/10/21/essential-visual-studio-tips-amp-tricks-that-every-developer-should-know.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;and&lt;/p&gt; &lt;p&gt;&lt;a href="http://fernandof.wordpress.com/2007/03/16/visual-studio-keyboard-shortcuts-every-developer-should-know/"&gt;http://fernandof.wordpress.com/2007/03/16/visual-studio-keyboard-shortcuts-every-developer-should-know/&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;          &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-3070236357962423993?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/3070236357962423993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=3070236357962423993' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3070236357962423993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/3070236357962423993'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/must-know-visual-studio-shortcuts.html' title='Must Know Visual Studio Shortcuts'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-1328376446120797713</id><published>2008-12-09T18:28:00.000+11:00</published><updated>2008-12-09T18:29:10.928+11:00</updated><title type='text'>Learn Design Patterns</title><content type='html'>&lt;div class="entry"&gt;          &lt;div class="snap_preview"&gt;&lt;p&gt;The following links are very useful to understand design patterns&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.dofactory.com/Patterns/Patterns.aspx"&gt;http://www.dofactory.com/Patterns/Patterns.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.designpatternsfor.net/"&gt;http://www.designpatternsfor.net/&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;          &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-1328376446120797713?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/1328376446120797713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=1328376446120797713' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1328376446120797713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/1328376446120797713'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/learn-design-patterns.html' title='Learn Design Patterns'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-2838115983542968221</id><published>2008-12-09T18:27:00.000+11:00</published><updated>2008-12-09T18:28:00.325+11:00</updated><title type='text'>Useful website for connection string</title><content type='html'>&lt;div class="entry"&gt;          &lt;div class="snap_preview"&gt;&lt;p&gt;The following site is very useful for defining connectionstring&lt;/p&gt; &lt;p&gt;http://www.connectionstrings.com&lt;/p&gt; &lt;/div&gt;          &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-2838115983542968221?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/2838115983542968221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=2838115983542968221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2838115983542968221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/2838115983542968221'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/useful-website-for-connection-string.html' title='Useful website for connection string'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3684674940194321679.post-253783230432774635</id><published>2008-12-09T13:17:00.000+11:00</published><updated>2008-12-09T18:22:19.720+11:00</updated><title type='text'>How to create a business data catalog for sharepoint server 2007</title><content type='html'>To create a business data catalog, follow the link below -&lt;br /&gt;&lt;br /&gt;http://msdn.microsoft.com/en-us/library/bb410048.aspx&lt;br /&gt;&lt;br /&gt;In the article above follow all the stpes described there except the  following block -&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_gxuWsC-KnnA/ST4cey_hH7I/AAAAAAAAAAM/ln8G3g1woZg/s1600-h/code.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 188px;" src="http://1.bp.blogspot.com/_gxuWsC-KnnA/ST4cey_hH7I/AAAAAAAAAAM/ln8G3g1woZg/s320/code.jpg" alt="" id="BLOGGER_PHOTO_ID_5277687128734638002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After uploading the BDC, you can easily modify the permissions.&lt;br /&gt;I am not describing anything about how to upload or how to create BDC as it is described in the above article.&lt;br /&gt;&lt;br /&gt;Apart from this, you can also use the tools named “bdcmetaman” to create a BDC application definition file. You can download the tool from the link below -&lt;br /&gt;&lt;br /&gt;http://www.lightningtools.com/bdc-meta-man/default.aspx&lt;br /&gt;&lt;br /&gt;you can create a BDC application definition file on the fly with this tool :). Also watch the video availble in the link above to know how to use the tool.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3684674940194321679-253783230432774635?l=alfesullah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alfesullah.blogspot.com/feeds/253783230432774635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3684674940194321679&amp;postID=253783230432774635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/253783230432774635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3684674940194321679/posts/default/253783230432774635'/><link rel='alternate' type='text/html' href='http://alfesullah.blogspot.com/2008/12/how-to-create-business-data-catalog-for.html' title='How to create a business data catalog for sharepoint server 2007'/><author><name>Alfes</name><uri>http://www.blogger.com/profile/06783607190341665563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gxuWsC-KnnA/ST4cey_hH7I/AAAAAAAAAAM/ln8G3g1woZg/s72-c/code.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
