 




<?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; Help</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/help/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>JackandJill Comment</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/jackandjill-comment/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/jackandjill-comment/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 16:36:49 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Comment]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/jackandjill-comment/</guid>
		<description><![CDATA[JackandJill left me a comment about an issue with one of my scripts and I would like to reach out to you and let you know that I would like to help. I am not sure what the issue really is and I would like to get more information from you so I can help [...]]]></description>
				<content:encoded><![CDATA[<p>JackandJill left me a comment about an issue with one of my scripts and I would like to reach out to you and let you know that I would like to help. I am not sure what the issue really is and I would like to get more information from you so I can help you get it working. My twitter is @smithco32 but I am not on twitter all the time as my work will not allow me to have it up. I check it on my phone when I can so please send me a message and I will help you.</p>
<p>Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/jackandjill-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I need some help</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/i-need-some-help/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/i-need-some-help/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 13:52:40 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[background spid]]></category>
		<category><![CDATA[Help]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/i-need-some-help/</guid>
		<description><![CDATA[Yesterday I had an interesting issue that I had never run into before. I attempted to drop a database in SQL Server 2008 SP1 and it failed and it moved the database into single user mode. I attempted the drop again and it failed saying the database was in single user mode and a user [...]]]></description>
				<content:encoded><![CDATA[<p>Yesterday I had an interesting issue that I had never run into before. I attempted to drop a database in SQL Server 2008 SP1 and it failed and it moved the database into single user mode. I attempted the drop again and it failed saying the database was in single user mode and a user was already in it. I ran an sp_who and i found that spid 12 was in my database and the command was checkpoint. That never changed and as you know I can not kill that spid since it is not a user session. I had to restart the instance in order to get that session out of my database and then I was able to drop the database. Why did that spid stick in my db though? How can I get it out without restarting if it happens again? If you have any clue please help me out. I am stumped by this one. Please leave a comment here or hit me up on twitter, @smithco32</p>
<p>thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/i-need-some-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Powershell Help</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/some-powershell-help/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/some-powershell-help/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 10:00:07 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/?p=606</guid>
		<description><![CDATA[Since I started my new job, I let the guys that I used to work with know that I would be happy to help them out if they have any questions about anything especially powershell since I took care of pretty much all of our Powershell needs. And the other day I got an email [...]]]></description>
				<content:encoded><![CDATA[<p>Since I started my new job, I let the guys that I used to work with know that I would be happy to help them out if they have any questions about anything especially powershell since I took care of pretty much all of our Powershell needs. And the other day I got an email asking about how to find out how many lines were in an array that they created doing a get-content on a file.They were doing:</p>
<p>$var | measure-object</p>
<p>This will get you what you want but it does not just give you the value. It will output more information then they were looking for. They also tried:</p>
<p>$var| measure-object | select-object count</p>
<p>This will work as well but this will also give the header and they did not want that so the easiest way to do this is to do a get-member on var and see if it gives you what you want as a property on that object.</p>
<p>you will see a length property. so if you say $var.length that will tell you how many entries are in the array&#8230;</p>
<p>hope that helps</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/some-powershell-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Health Check Follow Up</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/sql-server-health-check-follow-up/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/sql-server-health-check-follow-up/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 10:00:33 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/sql-server-health-check-follow-up/</guid>
		<description><![CDATA[A long while ago I wrote a script that does a SQL Server Health check and I posted it here. Recently I have gotten some comments on it and I want to help some people out. So I thought I would review it. So it is a script that goes out and connects to sql [...]]]></description>
				<content:encoded><![CDATA[<p>A long while ago I wrote a script that does a<a href="http://itknowledgeexchange.techtarget.com/dba/powershell-sql-server-health-check-script/"> SQL Server Health check</a> and I posted it here. Recently I have gotten some comments on it and I want to help some people out. So I thought I would review it. So it is a script that goes out and connects to sql servers that are defined in a list, actually a csv file, and gathers some information and outputs that data into an Excel sheet. You can modify the script in any way you want to gather any data you want. The script is available in that post.</p>
<p>It seems that the questions are related to reading in the file that holds the instance information. You can see that this is the line that reads in the file.</p>
<pre><code>$servers = Import-Csv "\\ent-pocpacapcx01\d$\monitoring\sqltab.txt"</code></pre>
<p>So you need to make sure that you change that path and file name to where your server file is. Lets go over the block that defines what has been read in so we can define what the csv file needs to look like.</p>
<pre><code>foreach ($entry in $servers)
{
$torp = $entry.TorP
$mon = $entry.monitor
$machine = $entry.server
$errorlog = $entry.errorlog
$os = $entry.os2000
$iname = $entry.Instance
if ($iname -eq "Null")
{
$instance = "$machine"
}
else
{
$instance = "$machine\$iname"
}
}
$instance = $instance.toupper()

</code></pre>
<p>What we can see is that I am looking at everything that the import-csv brought in to the $servers variable. Then I am defining some variables and you may not have all of these in your csv file. but if you look at $entry._____, that ______ is what my header information is. You need to make sure that your CSV file has the header information that you want to have in it. You might not have a errorlog or a TORP header because you may not need them. Just make sure that you modify either your file or this code so that they all match up. Then you should not have issues with the file not reading in correctly. Please let me know if you have any questions. leave me a comment and I will try to respond but you can also hit me up on twitter @smithco32 and I will get back to you.</p>
<p>Thanks and I hope that this helps.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/sql-server-health-check-follow-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My New Favorite Web Site</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/my-new-favorite-web-site/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/my-new-favorite-web-site/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 08:00:26 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Help]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/my-new-favorite-web-site/</guid>
		<description><![CDATA[This has probably been around for a long time and I just did not know but I do now. Ever have someone come up to you and ask a question and you think to yourself,, &#8220;Self, They did not even try to figure this out.&#8221; Well that happens to me all the time and now [...]]]></description>
				<content:encoded><![CDATA[<p>This has probably been around for a long time and I just did not know but I do now. Ever have someone come up to you and ask a question and you think to yourself,, &#8220;Self, They did not even try to figure this out.&#8221; Well that happens to me all the time and now I have a good way to respond to them. Have them send it to me in an email, do a search for them using terms they put in the email, like error numbers, and then see what pops. If it is a easy thing to search on then go to:</p>
<p><a href="http://lmgtfy.com/">Let Me Google That For You</a></p>
<p>Pop in your search and it will give you a link to send back to them and it will get the point across. Great site and I hope that it will help you teach people how to search and think for themselves.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/my-new-favorite-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The SQL Server Community</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/the-sql-server-community/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/the-sql-server-community/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 02:50:16 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SQL Admin]]></category>
		<category><![CDATA[SQL community]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/the-sql-server-community/</guid>
		<description><![CDATA[As you know, I am pretty new to being a DBA and new to the community of SQL Server. I come from a background of being a Windows Administrator and I can say, that I never really found a lot of support from a community. I really never found a community to ask for support. [...]]]></description>
				<content:encoded><![CDATA[<p>As you know, I am pretty new to being a DBA and new to the community of SQL Server. I come from a background of being a Windows Administrator and I can say, that I never really found a lot of support from a community. I really never found a community to ask for support. I can honestly say that is not the case with SQL Server. The community is pretty big, and very tight and solid.</p>
<p>I know that I was a bit afraid of trying to get my foot in the door with the communtiy, and I think that a lot of people are like me in that respect. The thing with this communtiy is that you do not have to be. No question is dumb or below anybody to answer. We have all probably had that question or one similiar.</p>
<p>If you want to get involved then become a member of <a title="PASS" href="http://www.sqlpass.org/" target="_blank">PASS</a> and also get on <a title="twitter" href="http://twitter.com/">Twitter</a> if you are not already. I have never been a big fan of social networking like Twitter but it is an invaluable tool for beinbg involved in the SQL Server community. When I signed up I only followed a few people, only people like MR. Denny (<a title="Mr. Denny" href="http://itknowledgeexchange.techtarget.com/sql-server/">Blog</a> | <a title="Mr. Denny Twitter" href="http://twitter.com/mrdenny">Twitter</a>) and Brent Ozar( <a title="Brent Ozar" href="http://www.brentozar.com/">Blog</a>| <a title="Brent Ozar Twitter" href="http://twitter.com/BrentO">Twitter</a>), because I read the blogs all the time. That is where I started and I also read Brent Ozars <a title="Brent on Twitter" href="http://www.brentozar.com/archive/2009/12/i-need-sqlhelp/">blog post about Twitter</a>. He talks about following groups, and I recommend that, as well as the #sqlhelp hashtag which works really well.</p>
<p>Also do not be afraid to tweet. Get involved and let people know that you want to be involved. Do that and you will see that we all are on the same team and are willing to help everyone out if we can.</p>
<p>I hope that this helps and I hope to see you out there.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/the-sql-server-community/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
