<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.enterprisecoding.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"> <channel><title>Fatih'in Notları » English</title> <link>http://www.enterprisecoding.com/blog</link> <description>Unutmamak için web defterime not düştüklerim</description> <lastBuildDate>Fri, 03 Feb 2012 21:23:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.enterprisecoding.com/Enterprisecoding-EN" /><feedburner:info uri="enterprisecoding-en" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Just Released : AppFabric Extensions 0.1.30.27</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/tRVlitLx1TY/just-released-appfabric-extensions-0-1-30-27</link> <comments>http://www.enterprisecoding.com/blog/post/just-released-appfabric-extensions-0-1-30-27#comments</comments> <pubDate>Mon, 16 Aug 2010 20:37:10 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[AppFabric Extensions]]></category> <category><![CDATA[English]]></category> <category><![CDATA[AppFabric]]></category> <category><![CDATA[Featured]]></category> <guid isPermaLink="false">http://www.enterprisecoding.com/blog/post/just-released-appfabric-extensions-0-1-30-27</guid> <description><![CDATA[I’m pleased to announce that AppFabric Extensions v0.1.30.27 is released. AppFabric Extensions is a set of management extension for Windows Server AppFabric. Instead of having a seperate executable, AppFabric Extensions integrates itself into IIS 7+ management console, just like Windows Server AppFabric does. Management Extensions for Windows Windows Server AppFabric project is aimed to add [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out' rel='bookmark' title='Windows Server AppFabric Management Extensions is Out'>Windows Server AppFabric Management Extensions is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out' rel='bookmark' title='AppFabric Extensions Preview Release is Out'>AppFabric Extensions Preview Release is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/just-released-appfabric-extensions-0-1-30-27' addthis:title='Just Released : AppFabric Extensions 0.1.30.27 '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>I’m pleased to announce that AppFabric Extensions v0.1.30.27 is released.</p><p
align="justify">AppFabric Extensions is a set of management extension for Windows Server AppFabric. Instead of having a seperate executable, AppFabric Extensions integrates itself into IIS 7+ management console, just like Windows Server AppFabric does.</p><p
align="justify">Management Extensions for Windows Windows Server AppFabric project is aimed to add missing management components of Windows Server AppFabric.</p><p><a
class="highslide img_7" href="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image1.png" onclick="return hs.expand(this)"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="AppFabric Extensions located at IIS Manager" border="0" alt="AppFabric Extensions located at IIS Manager" src="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image_thumb1.png" width="580" height="333" /></a></p><p>v0.1.30.27 is the initial stable release with remote administration support. Project homepage hosted at CodePlex (@ <a
title="http://appfabricextensions.codeplex.com/" href="http://appfabricextensions.codeplex.com/">http://appfabricextensions.codeplex.com/</a>)</p><p>Current release has following two major modules;</p><ul><li><strong>Allowed client cache account management</strong> : Lists existing cache users and allowed system administrators to add/remove users. Cache account can be selected from object selection dialog.</li></ul><p><a
class="highslide img_8" href="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image2.png" onclick="return hs.expand(this)"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Cache Account Add-Remove" border="0" alt="Cache Account Add-Remove" src="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image_thumb2.png" width="580" height="333" /></a></p><ul><li><strong>Cache cluster configuration backup/restore</strong> : Allows system administrators to easly backup/restore Windows Server AppFabric Cache Cluster configuration.</li></ul><p><a
class="highslide img_9" href="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image3.png" onclick="return hs.expand(this)"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Cache Config Backup-Restore" border="0" alt="Cache Config Backup-Restore" src="http://www.enterprisecoding.com/blog/wp-content/uploads/2010/08/image_thumb3.png" width="580" height="333" /></a></p></p></p><p>Currently Appfabric Extensions supports English, as well as, Turkish localizations. Any other translations also welcome.</p><p>AppFabric Extensions v0.1.30.27 can be download from <a
title="http://appfabricextensions.codeplex.com/releases/view/50587" href="http://appfabricextensions.codeplex.com/releases/view/50587">http://appfabricextensions.codeplex.com/releases/view/50587</a></p><p>Please keep in touch, and keep looking for the next releases.</p><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out' rel='bookmark' title='Windows Server AppFabric Management Extensions is Out'>Windows Server AppFabric Management Extensions is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out' rel='bookmark' title='AppFabric Extensions Preview Release is Out'>AppFabric Extensions Preview Release is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/tRVlitLx1TY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/just-released-appfabric-extensions-0-1-30-27/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/just-released-appfabric-extensions-0-1-30-27</feedburner:origLink></item> <item><title>AppFabric Extensions Preview Release is Out</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/caro35ueLp0/appfabric-extensions-preview-release-is-out</link> <comments>http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out#comments</comments> <pubDate>Tue, 27 Jul 2010 19:31:36 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[AppFabric Extensions]]></category> <category><![CDATA[English]]></category> <category><![CDATA[AppFabric]]></category> <guid isPermaLink="false">/blog/post/AppFabric-Extensions-Preview-Release-is-Out.aspx</guid> <description><![CDATA[Its an important day for AppFabric Extensions project. Initial setup script is finally ready and first preview is published for community review. Please find preview release at http://appfabricextensions.codeplex.com/releases/view/49706 Related posts: AppFabric Beta 2 is out! Windows Server AppFabric Management Extensions is Out İkinci IE9 Platform Preview Yayınlandı
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out' rel='bookmark' title='Windows Server AppFabric Management Extensions is Out'>Windows Server AppFabric Management Extensions is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/ikinci-ie9-platform-preview-yayinlandi' rel='bookmark' title='İkinci IE9 Platform Preview Yayınlandı'>İkinci IE9 Platform Preview Yayınlandı</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out' addthis:title='AppFabric Extensions Preview Release is Out '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Its an important day for <a
href="http://appfabricextensions.codeplex.com/" target="_blank">AppFabric Extensions</a> project. Initial setup script is finally ready and first preview is published for community review.</p><p>Please find preview release at <a
title="http://appfabricextensions.codeplex.com/releases/view/49706" href="http://appfabricextensions.codeplex.com/releases/view/49706">http://appfabricextensions.codeplex.com/releases/view/49706</a></p><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out' rel='bookmark' title='Windows Server AppFabric Management Extensions is Out'>Windows Server AppFabric Management Extensions is Out</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/ikinci-ie9-platform-preview-yayinlandi' rel='bookmark' title='İkinci IE9 Platform Preview Yayınlandı'>İkinci IE9 Platform Preview Yayınlandı</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/caro35ueLp0" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/appfabric-extensions-preview-release-is-out</feedburner:origLink></item> <item><title>Windows Server AppFabric Management Extensions is Out</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/lZXFFGv5kmE/windows-server-appfabric-management-extensions-is-out</link> <comments>http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out#comments</comments> <pubDate>Sun, 18 Jul 2010 13:02:24 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[AppFabric Extensions]]></category> <category><![CDATA[English]]></category> <category><![CDATA[AppFabric]]></category> <guid isPermaLink="false">/blog/post/Windows-Server-AppFabric-Management-Extensions-is-Out.aspx</guid> <description><![CDATA[First code bits of my project Windows Server AppFabric Management Extensions is out at CodePlex. You can visit project page at http://appfabricextensions.codeplex.com/ Currently it has cache allowed account management module embedded into IIS Manager; more to come… &#160; &#160; Application setup is on the way; but source code can be download and compile from CodePlex [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1' rel='bookmark' title='AppFabric Cache Management cmdlet – v1.1'>AppFabric Cache Management cmdlet – v1.1</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-beta-2-ve-net-4-0-rtm' rel='bookmark' title='Windows Server AppFabric Beta 2 ve .Net 4.0 RTM'>Windows Server AppFabric Beta 2 ve .Net 4.0 RTM</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-rc-surumu-yayinlandi' rel='bookmark' title='Windows Server AppFabric RC sürümü yayınlandı'>Windows Server AppFabric RC sürümü yayınlandı</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out' addthis:title='Windows Server AppFabric Management Extensions is Out '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>First code bits of my project Windows Server AppFabric Management Extensions is out at CodePlex. You can visit project page at <a
href="http://appfabricextensions.codeplex.com/" target="_blank">http://appfabricextensions.codeplex.com/</a></p><p>Currently it has cache allowed account management module embedded into IIS Manager; more to come…</p><p><a
class="highslide img_14"  href="http://www.enterprisecoding.com/blog/wp-content/uploads/image_1.png" getparams="null" onclick="return hs.expand(this)"><img
style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.enterprisecoding.com/blog/wp-content/uploads/image_thumb_1.png" width="404" height="209" /></a>&#160;</p><p><a
class="highslide img_15"  href="http://www.enterprisecoding.com/blog/wp-content/uploads/image_2.png" getparams="null" onclick="return hs.expand(this)"><img
style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.enterprisecoding.com/blog/wp-content/uploads/image_thumb_2.png" width="404" height="209" /></a></p><p>&#160;</p><p>Application setup is on the way; but source code can be download and compile from CodePlex project site. By the way; English and Turkish localizations are build in provided.</p><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1' rel='bookmark' title='AppFabric Cache Management cmdlet – v1.1'>AppFabric Cache Management cmdlet – v1.1</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-beta-2-ve-net-4-0-rtm' rel='bookmark' title='Windows Server AppFabric Beta 2 ve .Net 4.0 RTM'>Windows Server AppFabric Beta 2 ve .Net 4.0 RTM</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/windows-server-appfabric-rc-surumu-yayinlandi' rel='bookmark' title='Windows Server AppFabric RC sürümü yayınlandı'>Windows Server AppFabric RC sürümü yayınlandı</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/lZXFFGv5kmE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/windows-server-appfabric-management-extensions-is-out</feedburner:origLink></item> <item><title>Tip : Check AppFabric Cache Status Using PowerShell</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/I39GpP-v1OA/tip-check-appfabric-cache-status-using-powershell</link> <comments>http://www.enterprisecoding.com/blog/post/tip-check-appfabric-cache-status-using-powershell#comments</comments> <pubDate>Fri, 02 Apr 2010 15:47:55 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Windows Server AppFabric]]></category> <category><![CDATA[AppFabric]]></category> <category><![CDATA[PowerShell]]></category> <guid isPermaLink="false">/blog/post/Tip-Check-AppFabric-Cache-Status-Using-PowerShell.aspx</guid> <description><![CDATA[It’s&#160; a daily job of a System Administrator to check AppFabric Cache status, and it will be very usefull to have a script to do so. Please find following script which will guide you to do so; $hostinfo = Get-CacheHost if($hostinfo.Status -eq [Microsoft.ApplicationServer.Caching.AdminApi.ServiceStatus]::Down)){ # Do whatever you want with a down AppFabric Cache host }else{ [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/tip-appfabric-onbellek-calisma-durumunun-powershell-ile-kontrolu' rel='bookmark' title='Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü'>Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet' rel='bookmark' title='AppFabric Cache Management cmdlet'>AppFabric Cache Management cmdlet</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/tip-check-appfabric-cache-status-using-powershell' addthis:title='Tip : Check AppFabric Cache Status Using PowerShell '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>It’s&#160; a daily job of a System Administrator to check AppFabric Cache status, and it will be very usefull to have a script to do so. Please find following script which will guide you to do so;</p><pre class="brush: powershell;">$hostinfo = Get-CacheHost
if($hostinfo.Status -eq [Microsoft.ApplicationServer.Caching.AdminApi.ServiceStatus]::Down)){
  # Do whatever you want with a down AppFabric Cache host
}else{
  # Do whatever you want with a running AppFabric Cache host
}</pre><p>&#160;</p><p>As usual, in order to execute this PowerShell script, you should perform following commands first;</p><pre class="brush: powershell;">Import-Module DistributedCacheAdministration
Use-CacheCluster</pre><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/tip-appfabric-onbellek-calisma-durumunun-powershell-ile-kontrolu' rel='bookmark' title='Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü'>Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet' rel='bookmark' title='AppFabric Cache Management cmdlet'>AppFabric Cache Management cmdlet</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/I39GpP-v1OA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/tip-check-appfabric-cache-status-using-powershell/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/tip-check-appfabric-cache-status-using-powershell</feedburner:origLink></item> <item><title>Tip : Is Your PowerShell Session Running With Administrative Privileges?</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/x050foQ5Pf4/tip-is-your-powershell-session-running-with-administrative-privileges</link> <comments>http://www.enterprisecoding.com/blog/post/tip-is-your-powershell-session-running-with-administrative-privileges#comments</comments> <pubDate>Fri, 02 Apr 2010 15:05:25 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[PowerShell]]></category> <guid isPermaLink="false">/blog/post/Tip-Is-Your-PowerShell-Session-Running-With-Administrative-Privileges.aspx</guid> <description><![CDATA[Sometimes you may need to perform administrative stuff within your script. In such cases, it’s better to check whether your user has such privileges to execute the script. Please find the sample below, which checks user for administrative privilege; $user = [Security.Principal.WindowsIdentity]::GetCurrent() if((New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)){ # Keep executing your script... }else{ # Warn user for [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/tip-powershell-oturumu-sistem-yoneticisi-olarak-mi-baslatilmis' rel='bookmark' title='Tip : PowerShell Oturumu Sistem Yöneticisi Olarak Mı Başlatılmış?'>Tip : PowerShell Oturumu Sistem Yöneticisi Olarak Mı Başlatılmış?</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/connecting-to-tfs-with-different-user' rel='bookmark' title='Connecting to TFS with Different User'>Connecting to TFS with Different User</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/tip-is-your-powershell-session-running-with-administrative-privileges' addthis:title='Tip : Is Your PowerShell Session Running With Administrative Privileges? '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Sometimes you may need to perform administrative stuff within your script. In such cases, it’s better to check whether your user has such privileges to execute the script.</p><p>Please find the sample below, which checks user for administrative privilege;</p><pre class="brush: powershell;">$user = [Security.Principal.WindowsIdentity]::GetCurrent()
if((New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)){
  # Keep executing your script...
}else{
  # Warn user for required privileges...
  Write-Warning &quot;Please execute the script with administrative privileges.&quot;
}</pre><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/tip-powershell-oturumu-sistem-yoneticisi-olarak-mi-baslatilmis' rel='bookmark' title='Tip : PowerShell Oturumu Sistem Yöneticisi Olarak Mı Başlatılmış?'>Tip : PowerShell Oturumu Sistem Yöneticisi Olarak Mı Başlatılmış?</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/connecting-to-tfs-with-different-user' rel='bookmark' title='Connecting to TFS with Different User'>Connecting to TFS with Different User</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/x050foQ5Pf4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/tip-is-your-powershell-session-running-with-administrative-privileges/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/tip-is-your-powershell-session-running-with-administrative-privileges</feedburner:origLink></item> <item><title>AppFabric Cache Management cmdlet – v1.1</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/ppm2sCS97ZA/appfabric-cache-management-cmdlet-%e2%80%93-v1-1</link> <comments>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1#comments</comments> <pubDate>Thu, 01 Apr 2010 15:36:59 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Windows Server AppFabric]]></category> <category><![CDATA[AppFabric]]></category> <category><![CDATA[PowerShell]]></category> <guid isPermaLink="false">/blog/post/AppFabric-Cache-Management-cmdlet-e28093-v11.aspx</guid> <description><![CDATA[Please find below, updated version of cmdlet published on my AppFabric Cache management cmdlet post: ################################################################# # AppFabricCacheSetup.ps1 PowerShell Cmdlet # ################################################################# # Prepares your AppFabric Cache Cluster environment for # # development. # ################################################################# # Fatih Boy, April 2010 # # Version 1.1 # ################################################################# Import-Module DistributedCacheAdministration Use-CacheCluster $cacheName= Read-Host &#34;Please enter cache name [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet' rel='bookmark' title='AppFabric Cache Management cmdlet'>AppFabric Cache Management cmdlet</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i-%e2%80%93-1-1' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i – 1.1'>AppFabric Cache Yönetim cmdlet’i – 1.1</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i'>AppFabric Cache Yönetim cmdlet’i</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1' addthis:title='AppFabric Cache Management cmdlet – v1.1 '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Please find below, updated version of cmdlet published on my <a
href="http://www.enterprisecoding.com/blog/post/AppFabric-Cache-Management-cmdlet" target="_blank">AppFabric Cache management cmdlet</a> post:</p><pre class="brush: powershell;">#################################################################
#       AppFabricCacheSetup.ps1 PowerShell Cmdlet               #
#################################################################
# Prepares your AppFabric Cache Cluster environment for         #
# development.                                                  #
#################################################################
# Fatih Boy, April 2010                                         #
# Version 1.1                                                   #
#################################################################
Import-Module DistributedCacheAdministration
Use-CacheCluster
$cacheName= Read-Host &quot;Please enter cache name to create (press enter to use default)&quot;
if($cacheName -ne &quot;&quot;){
    New-Cache $cacheName
}
if ((Get-CacheAllowedClientAccounts) -notcontains $env:username) {
    Grant-CacheAllowedClientAccount $env:username
}
Start-CacheCluster
if($cacheName -ne &quot;&quot;){
    Write-Host &quot;&quot;
    Write-Host &quot;$cacheName cache properties : &quot;
    Write-Host &quot;----------------------------------&quot;
    Get-CacheConfig $cacheName
}else{
    Write-Host &quot;&quot;
    Write-Host &quot;default cache properties : &quot;
    Write-Host &quot;----------------------------------&quot;
    Get-CacheConfig default
}</pre><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet' rel='bookmark' title='AppFabric Cache Management cmdlet'>AppFabric Cache Management cmdlet</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i-%e2%80%93-1-1' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i – 1.1'>AppFabric Cache Yönetim cmdlet’i – 1.1</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i'>AppFabric Cache Yönetim cmdlet’i</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/ppm2sCS97ZA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet-%e2%80%93-v1-1</feedburner:origLink></item> <item><title>AppFabric Cache Management cmdlet</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/Wb5jIGUxF98/appfabric-cache-management-cmdlet</link> <comments>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet#comments</comments> <pubDate>Wed, 17 Mar 2010 18:09:07 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Windows Server AppFabric]]></category> <category><![CDATA[AppFabric]]></category> <category><![CDATA[PowerShell]]></category> <guid isPermaLink="false">/blog/post/AppFabric-Cache-Management-cmdlet.aspx</guid> <description><![CDATA[If you start writing your first couple of codes on AppFabric Caching, you’ve probably started to type the same PowerShell commands. If you are a lazy developer, just like me, you get bored to do the same things. So, here is my handy little PowerShell cmdlet, which will help you to prepare your developer environment: [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i'>AppFabric Cache Yönetim cmdlet’i</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet' addthis:title='AppFabric Cache Management cmdlet '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>If you start writing your first couple of codes on AppFabric Caching, you’ve probably started to type the same PowerShell commands. If you are a lazy developer, just like me, you get bored to do the same things. So, here is my handy little PowerShell cmdlet, which will help you to prepare your developer environment:</p><pre class="brush: powershell;">#################################################################
#       AppFabricCacheSetup.ps1 PowerShell Cmdlet               #
#################################################################
# Prepares your AppFabric Cache Cluster environment for         #
# development.                                                  #
#################################################################
# Fatih Boy, March 2010                                         #
# Version 1.0                                                   #
#################################################################
Import-Module DistributedCacheAdministration
Use-CacheCluster
$cacheName= Read-Host &quot;Please enter cache name to create (press enter to use default)&quot;
if($cacheName -ne &quot;&quot;){
    New-Cache $cacheName
}
if ((Get-CacheAllowedClientAccounts).IndexOf($env:username) -eq -1) {
    Grant-CacheAllowedClientAccount $env:username
}
Start-CacheCluster
if($cacheName -ne &quot;&quot;){
    Write-Host &quot;&quot;
    Write-Host &quot;$cacheName cache properties : &quot;
    Write-Host &quot;----------------------------------&quot;
    Get-CacheConfig $cacheName
}else{
    Write-Host &quot;&quot;
    Write-Host &quot;default cache properties : &quot;
    Write-Host &quot;----------------------------------&quot;
    Get-CacheConfig default
}</pre><p>This little cmdlet will –optionally- create a named cache, allows your user to access cache, starts cache cluster, finally display properties of created cache.</p><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-cache-yonetim-cmdlet%e2%80%99i' rel='bookmark' title='AppFabric Cache Yönetim cmdlet’i'>AppFabric Cache Yönetim cmdlet’i</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/powershell-ile-appfabric-cache-yonetimi' rel='bookmark' title='PowerShell ile AppFabric Cache Yönetimi'>PowerShell ile AppFabric Cache Yönetimi</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' rel='bookmark' title='AppFabric Beta 2 is out!'>AppFabric Beta 2 is out!</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/Wb5jIGUxF98" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet/feed</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/appfabric-cache-management-cmdlet</feedburner:origLink></item> <item><title>AppFabric Beta 2 is out!</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/gk03F9QuNUU/appfabric-beta-2-is-out</link> <comments>http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out#comments</comments> <pubDate>Mon, 01 Mar 2010 15:20:50 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Windows Server AppFabric]]></category> <category><![CDATA[AppFabric]]></category> <guid isPermaLink="false">/blog/post/AppFabric-Beta-2-is-out!.aspx</guid> <description><![CDATA[Microsoft just publish beta 2 release of its application server extensions, AppFabric. You can download this release from here. In order to uninstall previous release of AppFabric, here is the path to follow : Control Panel -&#62; Programs -&#62; Programs and Features -&#62; Installed Updates -&#62; Application Server Extensions for .NET 4 (KB970622) No related [...]
No related posts.]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out' addthis:title='AppFabric Beta 2 is out! '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Microsoft just publish beta 2 release of its application server extensions, AppFabric. You can download this release from <a
href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=a1ed6018-ddd1-4bd8-b4af-6561e910ebb4" target="_blank">here</a>.</p><p>In order to uninstall previous release of AppFabric, here is the path to follow :</p><p>Control Panel -&gt; Programs -&gt; Programs and Features -&gt; Installed Updates -&gt; Application Server Extensions for .NET 4 (KB970622)</p><p>No related posts.</p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/gk03F9QuNUU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/appfabric-beta-2-is-out</feedburner:origLink></item> <item><title>dynamic vs object</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/WPCy1p5lnfY/dynamic-vs-object</link> <comments>http://www.enterprisecoding.com/blog/post/dynamic-vs-object#comments</comments> <pubDate>Tue, 02 Feb 2010 15:07:23 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[C#]]></category> <category><![CDATA[English]]></category> <category><![CDATA[Dynamic]]></category> <guid isPermaLink="false">/blog/post/dynamic-vs-object.aspx</guid> <description><![CDATA[&#160;&#160;&#160;&#160;&#160; People keep asking me what is the difference between “dynamic” and the old friend “object”. Well, answer is a little tricky; in order to show the difference, it’s better to take a look at both of them more detailed. &#160;&#160;&#160;&#160; Let me start with the old friend “object”, that is nothing but a shortcut [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/reflection-and-dynamic-assemblies' rel='bookmark' title='Reflection and Dynamic Assemblies'>Reflection and Dynamic Assemblies</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/null-dte-when-vsip-package-is-auto-loaded-on-startup' rel='bookmark' title='Null DTE when VSIP Package is Auto Loaded on Startup'>Null DTE when VSIP Package is Auto Loaded on Startup</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/quick-open-add-in-for-visual-studio' rel='bookmark' title='Quick Open Add-in for Visual Studio'>Quick Open Add-in for Visual Studio</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/dynamic-vs-object' addthis:title='dynamic vs object '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>&#160;&#160;&#160;&#160;&#160; People keep asking me what is the difference between “dynamic” and the old friend “object”. Well, answer is a little tricky; in order to show the difference, it’s better to take a look at both of them more detailed.</p><p>&#160;&#160;&#160;&#160; Let me start with the old friend “object”, that is nothing but a shortcut for “System.Object”; it’s a part of our life since the first release of C#. Object is very powerful, cause you can assign almost any value. In order to compare them lets take a loot a example below:</p><pre class="brush: csharp;">object obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
 }  else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
Console.ReadKey();</pre><p>One may expect &quot;<em>Whole post is wrong <img
src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </em>&quot;, since obj is declared as object not the int; but output of the code is simply &quot;<em>of course type is int</em>&quot;; cause value stored at obj is of type int. Although value of obj is of type int and code runs without any problem, as soon as you perform any int related operation, like sum, code will not even compile:</p><pre class="brush: csharp;">object obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
} else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
obj = obj + 1;</pre><p>(error CS0019: Operator &#8216;+=&#8217; cannot be applied to operands of type &#8216;object&#8217; and &#8216;int&#8217;)</p><p>In order to compile your code, you need to cast obj first:</p><pre class="brush: csharp;">object obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
} else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
obj = (int)obj + 1;</pre><p>of course having a compiled code doesn’t means that everything is fine. Anyone can have a compiled code like below, which gives run-time error (InvalidCastException)</p><pre class="brush: csharp;">object obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
} else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
obj = (string)obj + 1;</pre><p>Compiler does not let you perform any mathematical operation on obj, as long as explicitly indicated. But still can be explicitly cast to any other type, which causes run-time exceptions.</p><p>Here comes “dynamic” in. Dynamic&#160; comes with C# 4.0 and instructs compiler not to perform additional rules on your type. You can use it just like you do with the “object”:</p><pre class="brush: csharp;">dynamic obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
 }  else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
Console.ReadKey();</pre><p>Also, following code will compile without any compiler error:</p><pre class="brush: csharp;">dynamic obj = 1;
 if (obj.GetType() == typeof(int)){
     Console.WriteLine(&quot;of course type is int&quot;);
} else {
     Console.WriteLine(&quot;Whole post is wrong <img src='http://www.enterprisecoding.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &quot;);
}
obj = obj + 1;</pre><p>You don’t need to cast obj to int as you do with object. This is the main difference between object and dynamic. By using dynamic keyword, you instruct compiler not to perform additional rules on your type. It will instruct compiler that its type can be known only at run-time, so compiler doesn’t try to interfere.</p><p>By using dynamic, your code’s readability will improve, you don’t have to perform additional explicit cast.</p><p>“WITH GREAT POWER THERE MUST ALSO COME &#8211; - GREAT RESPONSIBILITY!”</p><p>Dynamic is very handy; but must use very carefully. It is still as dangerous as object is and you should apply all check-points within your code.</p><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/reflection-and-dynamic-assemblies' rel='bookmark' title='Reflection and Dynamic Assemblies'>Reflection and Dynamic Assemblies</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/null-dte-when-vsip-package-is-auto-loaded-on-startup' rel='bookmark' title='Null DTE when VSIP Package is Auto Loaded on Startup'>Null DTE when VSIP Package is Auto Loaded on Startup</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/quick-open-add-in-for-visual-studio' rel='bookmark' title='Quick Open Add-in for Visual Studio'>Quick Open Add-in for Visual Studio</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/WPCy1p5lnfY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/dynamic-vs-object/feed</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/dynamic-vs-object</feedburner:origLink></item> <item><title>Changing schema names on Sql Server 2005</title><link>http://feeds.enterprisecoding.com/~r/Enterprisecoding-EN/~3/BpCcqcuFIEM/changing-schema-names-on-sql-server-2005</link> <comments>http://www.enterprisecoding.com/blog/post/changing-schema-names-on-sql-server-2005#comments</comments> <pubDate>Wed, 25 Jul 2007 14:25:00 +0000</pubDate> <dc:creator>Fatih Boy</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Misc]]></category> <guid isPermaLink="false">/blog/post/Changing-schema-names-on-Sql-Server-2005.aspx</guid> <description><![CDATA[&#160;&#160;&#160;&#160; I my database on Sql Server 2005, I have to change schema names from some username to dbo and I wrote the following sql statements which simply generates alter queries. All you have to do is to change &#8216;Username Here&#8216; to actual username, it will generates alter queries for you and then just copy [...]
Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/changing-team-foundation-server-smtp-server-and-e-mail-notification-settings' rel='bookmark' title='Changing Team Foundation Server SMTP Server and E-mail Notification Settings'>Changing Team Foundation Server SMTP Server and E-mail Notification Settings</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/unattended-installation-of-visual-studio-2005-team-explorer' rel='bookmark' title='Unattended installation of Visual Studio 2005 Team Explorer'>Unattended installation of Visual Studio 2005 Team Explorer</a></li></ol>]]></description> <content:encoded><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.enterprisecoding.com/blog/post/changing-schema-names-on-sql-server-2005' addthis:title='Changing schema names on Sql Server 2005 '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_button_google_plusone" g:plusone:size="medium"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>&nbsp;&nbsp;&nbsp;&nbsp; I my database on Sql Server 2005, I have to change schema names from some username to <em>dbo</em> and I wrote the following sql statements which simply generates alter queries. All you have to do is to change &#8216;<em>Username Here</em>&#8216; to actual username, it will generates alter queries for you and then just copy and execute them in query window.</p><pre class="brush: sql">SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + p.Name FROM sys.Procedures p INNER JOIN
sys.Schemas s on p.schema_id = s.schema_id WHERE s.Name = 'Username Here'
SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + t.Name FROM sys.Tables t INNER JOIN
sys.Schemas s on t.schema_id = s.schema_id WHERE s.Name = 'Username Here'
SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + v.Name FROM sys.Views v INNER JOIN
sys.Schemas s on v.schema_id = s.schema_id WHERE s.Name = 'Username Here'
</pre><p>Related posts:<ol><li><a
href='http://www.enterprisecoding.com/blog/post/changing-team-foundation-server-smtp-server-and-e-mail-notification-settings' rel='bookmark' title='Changing Team Foundation Server SMTP Server and E-mail Notification Settings'>Changing Team Foundation Server SMTP Server and E-mail Notification Settings</a></li><li><a
href='http://www.enterprisecoding.com/blog/post/unattended-installation-of-visual-studio-2005-team-explorer' rel='bookmark' title='Unattended installation of Visual Studio 2005 Team Explorer'>Unattended installation of Visual Studio 2005 Team Explorer</a></li></ol></p><img src="http://feeds.feedburner.com/~r/Enterprisecoding-EN/~4/BpCcqcuFIEM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.enterprisecoding.com/blog/post/changing-schema-names-on-sql-server-2005/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.enterprisecoding.com/blog/post/changing-schema-names-on-sql-server-2005</feedburner:origLink></item> </channel> </rss>

