 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>The Multifunctioning DBA &#187; Administration</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/dba</link>
	<description></description>
	<lastBuildDate>Wed, 06 Feb 2013 01:01:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Easy way to find bytes per cluster on your disk</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/easy-way-to-find-bytes-per-cluster-on-your-disk/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/easy-way-to-find-bytes-per-cluster-on-your-disk/#comments</comments>
		<pubDate>Thu, 16 Aug 2012 15:08:23 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Data Files]]></category>
		<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Disk Performance]]></category>
		<category><![CDATA[block size]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[Sql server]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/?p=708</guid>
		<description><![CDATA[I recently learned a new windows command that is not the most intuitive, but it is nice.  I know that when I get a server and I am told that all my volumes are ready to go for SQL Server, I want to make sure that I have a 64K block. This command makes it [...]]]></description>
				<content:encoded><![CDATA[<p>I recently learned a new windows command that is not the most intuitive, but it is nice.  I know that when I get a server and I am told that all my volumes are ready to go for SQL Server, I want to make sure that I have a 64K block. This command makes it easy to verify.</p>
<p>&nbsp;</p>
<p>fsutil fsinfo ntfsinfo &lt;path&gt;</p>
<p>&nbsp;</p>
<p>That is it. Really simple but not the most intuitive. Here are the results.</p>
<p>&nbsp;</p>
<div id="attachment_709" class="wp-caption alignleft" style="width: 310px"><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/83/files/2012/08/fsutil.jpg"><img class="size-medium wp-image-709" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/83/files/2012/08/fsutil-300x189.jpg" alt="FSUTIL" width="300" height="189" /></a><p class="wp-caption-text">fsutil example. Only 4k blocks on my c: drive</p></div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/easy-way-to-find-bytes-per-cluster-on-your-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell to get unique login count from SQL Server</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/powershell-to-get-unique-login-count-from-sql-server/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/powershell-to-get-unique-login-count-from-sql-server/#comments</comments>
		<pubDate>Wed, 26 May 2010 07:00:50 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Reporting]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/powershell-to-get-unique-login-count-from-sql-server/</guid>
		<description><![CDATA[Just like I needed to get a count of unique logins to an application on one of our Sybase instances I also needed to get these values for a few of our SQL Servers. Since SQL Server uses mixed mode authentication and we are using AD groups to aid in the security of the SQL [...]]]></description>
				<content:encoded><![CDATA[<p>Just like I needed to get a count of unique logins to an application on one of our Sybase instances I also needed to get these values for a few of our SQL Servers. Since SQL Server uses mixed mode authentication and we are using AD groups to aid in the security of the SQL Server, I could not just write a query against the instance to get a list of unique logins. I could have but it would have returned the groups and not the individuals that are members of the groups. So I wrote a PS Script to go out and connect to the SQL Server, get a list of logins and then parse the AD Groups to get me a listing of all the members of those groups. Then it takes that list and gets unique logins, since a user may be a member of more than one group, and then counted the number of users. First I made a connection to the SQL Server using SMO, then I find all the logins and filter them based on whether they are a user or a group. If it is a group then I query the domain to find the group members and output all those users as well as the local sql users to a file. Once I have looped thru all groups then I get the contents of the file and sort and get unique and then I select a count of the new object. That is it. If you have any questions or would like to see the code then just let me know.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/powershell-to-get-unique-login-count-from-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ddlgen in Sybase</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/ddlgen-in-sybase/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/ddlgen-in-sybase/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 21:32:09 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[DDL]]></category>
		<category><![CDATA[DDLGEN]]></category>
		<category><![CDATA[Sybase]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/ddlgen-in-sybase/</guid>
		<description><![CDATA[I completed an upgrade from Sybase 12.5 to Sybase 15.0 recently and I found that it ended up breaking some scripts that we use to generate ddl for all instance devices and all create databases. The scripts that we were using were writting log ago by people that are no longer working for the company. [...]]]></description>
				<content:encoded><![CDATA[<p>I completed an upgrade from Sybase 12.5 to Sybase 15.0 recently and I found that it ended up breaking some scripts that we use to generate ddl for all instance devices and all create databases. The scripts that we were using were writting log ago by people that are no longer working for the company. I decided to change this up to use ddlgen to create all this for us. ddlgen is a very nice little program that is able to generate the ddl and output it into files for use, if needed, in the future. Here is what I did to get all the devices ddl out of an instance.</p>
<p>ddlgen -U username -S servername -TDBD -N% -O outputfilename</p>
<p>That is simple enough to do and man it works great. This will get you the DDL needed to init all of the devices on the instance.  Now I need to get the DDL to create all of the databases. For this I wrote a little shell script to get a listing of all the databases and then do the ddl gen for each. Here is that.</p>
<p>#!/bin/ksh<br />
dblist=`isql -S servername -Usa &lt;&lt; endit | tail +4<br />
password<br />
use master<br />
go<br />
set nocount on<br />
go<br />
select name<br />
from sysdatabases<br />
go<br />
exit<br />
endit<br />
`<br />
echo $dblist<br />
for db in $dblist<br />
do<br />
ddlgen -Usa  -SCIRC_DBA -D $db -TDB -F% -O $db.definitions.out</p>
<p>password<br />
done</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/ddlgen-in-sybase/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Saturday in Phoenix</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/sql-saturday-in-phoenix/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/sql-saturday-in-phoenix/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 16:50:56 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[SQL Saturday]]></category>
		<category><![CDATA[sql saturday 47]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/sql-saturday-in-phoenix/</guid>
		<description><![CDATA[I have posted this before, but I was asked to post about it again. SQL Saturday is a go for Phoenix. We have a date of July 17th at the DeVry University Phoenix Campus. I know that we have at least one Sponser for the event but I think we have more. We are still [...]]]></description>
				<content:encoded><![CDATA[<p>I have posted this before, but I was asked to post about it again. SQL Saturday is a go for Phoenix. We have a date of July 17th at the <a title="MAP" href="http://www.mapquest.com/maps?name=Devry+University-Phoenix&amp;city=Phoenix&amp;state=AZ&amp;address=2149+W+Dunlap+Ave&amp;zipcode=85021&amp;country=US&amp;latitude=33.56753&amp;longitude=-112.1043&amp;geocode=ADDRESS&amp;id=263193286">DeVry University Phoenix Campus</a>. I know that we have at least one Sponser for the event but I think we have more. We are still hoping to get more and more presenters and just any type of help that we can for the event. I do not for sure of any speakers being confirmed but I have heard, via twitter, that Denny Cherry (<a title="SQL Server with Mr. Denny" href="http://itknowledgeexchange.techtarget.com/sql-server/">Blog</a> | <a title="Twitter" href="http://twitter.com/mrdenny">Twitter</a>), SQL Server MVP will be in town presenting for us. I know that I am really looking forward to meeting him and also look forward to hearing him speak.</p>
<p>Here is a link to the <a title="Register Now" href="http://www.sqlsaturday.com/47/register.aspx">official Registration for SQL Saturday 47</a>. Also if you are on Twitter, and you should be if you want to be a part of the community, please follow hashtag #sqlsatphx for updates and for the latest news about the event. You can also contact Samson Loo (<a title="Wetmatter" href="http://www.wetmatter.com/">Blog</a> | <a title="sqlsamson" href="http://twitter.com/sqlsamson">Twitter</a>). Just click the twitter link and follow him.  More information can also be found via the <a title="SQL SAT 47" href="http://www.sqlsaturday.com/47/eventhome.aspx">Event Home Page</a>. Please sign up come help us make this event great so we can have many more in the future.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/sql-saturday-in-phoenix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AD Audit in Powershell</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/ad-audit-in-powershell/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/ad-audit-in-powershell/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 16:37:58 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Audit]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/ad-audit-in-powershell/</guid>
		<description><![CDATA[I have mentioned this before but I have finally done what I set out to do and re-wrote my old vbscript that audits AD Accounts based on Create Date and Last LogonDate in Powershell. This is another great example of how much better powershell is and why everyone should now it. My VB Script was [...]]]></description>
				<content:encoded><![CDATA[<p>I have mentioned this before but I have finally done what I set out to do and re-wrote my old vbscript that audits AD Accounts based on Create Date and Last LogonDate in Powershell. This is another great example of how much better powershell is and why everyone should now it. My VB Script was just under 800 lines of code and that was without many comments that documented the process. Now I feel that documenting scripts is very important. This is because I have had to try to fix other peoples scripts when they did not document it well and it is not fun. My powershell version of the same script with added functionality as well as over 100 lines of comments is only just over 400 lines. That means that I was able to remove about 500 lines of actual code from the script as well as add functionality to the script.<br />
I will break the script down and post each one of the functions with a good explanation of each in my next few posts. It is a very cool script and it could be added to and customized to fit any situation that you may need. My version is based on my companies policy of disabling an account after 90 days of inactivity and deleting the account after 180 days of inactivity. My company runs the script weekly and the script sends out emails about the accounts that have been disabled and deleted to the needed personal so that the appropriate paperwork can be completed for those accounts. The script is soon to be posted. I am still testing but I will have it very soon.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/ad-audit-in-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell Profile</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/powershell-profile/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/powershell-profile/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 18:00:05 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Powershell Tips]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/powershell-profile/</guid>
		<description><![CDATA[The Powershell Profile is a script that druns anytime you launch Powershell. This is handy so you can ste up variables, add snapins, or just do what ever you like or think is cool when launching Powershell. I was just editing mine, which you can do by: notepad $profile This will pull up your profile [...]]]></description>
				<content:encoded><![CDATA[<p>The Powershell Profile is a script that druns anytime you launch Powershell. This is handy so you can ste up variables, add snapins, or just do what ever you like or think is cool when launching Powershell. I was just editing mine, which you can do by:</p>
<p>notepad $profile</p>
<p>This will pull up your profile so you can edit the script. If you would like to know where the script is located then just do a $profile to get the full path. Anyway after I edited my profile I wanted to reload the profile so that all the new things I just added would be available in my current powershell session. Like most things in Powershell this is simple.</p>
<p>. $profile</p>
<p>This will re-run the profile script and now all your new goodies are available</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/powershell-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Select Folder Dialog Box</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/select-folder-dialog-box/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/select-folder-dialog-box/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 20:13:54 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/select-folder-dialog-box/</guid>
		<description><![CDATA[If you would like your scripts to interact with the user and have a nice popup box for a user to select a folder here is a link to an article that will help you out. I think this is pretty great. http://powershell.com/cs/blogs/tips/archive/2009/04/01/select-folder-dialog.aspx]]></description>
				<content:encoded><![CDATA[<p>If you would like your scripts to interact with the user and have a nice popup box for a user to select a folder here is a link to an article that will help you out. I think this is pretty great.</p>
<p>http://powershell.com/cs/blogs/tips/archive/2009/04/01/select-folder-dialog.aspx</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/select-folder-dialog-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot a Remote Windows Host Remotely</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/reboot-a-remote-windows-host-remotely/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/reboot-a-remote-windows-host-remotely/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 15:38:38 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Remote boot]]></category>
		<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/reboot-a-remote-windows-host-remotely/</guid>
		<description><![CDATA[Say you need to reboot a server and this is something that you would like to automate based on certain criteria. For instance, I might want to reboot a server if I can talk to the server but for somereason my SQL Server is not up and running. If everything is configured correctly the SQL [...]]]></description>
				<content:encoded><![CDATA[<p>Say you need to reboot a server and this is something that you would like to automate based on certain criteria. For instance, I might want to reboot a server if I can talk to the server but for somereason my SQL Server is not up and running. If everything is configured correctly the SQL Server should start up again on boot. So you can do something like the following.</p>
<p>$varname = Get-WmiObject Win32_OperatingSystem -computername &#8220;remotemachine&#8221;</p>
<p>$varname.reboot()</p>
<p>Now you can check your SQL Server once the machine is back up.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/reboot-a-remote-windows-host-remotely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Example of why you should learn Powershell</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/another-example-of-why-you-should-learn-powershell/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/another-example-of-why-you-should-learn-powershell/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 15:54:54 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/another-example-of-why-you-should-learn-powershell/</guid>
		<description><![CDATA[I was roaming around the web and reading some articles and I ran across the following blog post: http://bassplayerdoc.blogspot.com/2008/10/another-one-liner-in-windows-powershell.html I think this is a great reason why all administrators that deal with Microsoft products should learn powershell. I know some Administrators are happy with VBScript and I know that many people use Pearl or other [...]]]></description>
				<content:encoded><![CDATA[<p>I was roaming around the web and reading some articles and I ran across the following blog post:</p>
<p>http://bassplayerdoc.blogspot.com/2008/10/another-one-liner-in-windows-powershell.html</p>
<p>I think this is a great reason why all administrators that deal with Microsoft products should learn powershell. I know some Administrators are happy with VBScript and I know that many people use Pearl or other languages. I am all for knowing them and using them when they make the most sense. Some languages are better at some things then others. I think that Powershell is the Future of Microsoft Administration and this is a great example. Check out the other articles on this Blog as well. Some really good stuff.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/another-example-of-why-you-should-learn-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
