<?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>Shawson&#039;s Code Blog &#187; sql profiler</title>
	<atom:link href="http://www.shawson.co.uk/codeblog/tag/sql-profiler/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawson.co.uk/codeblog</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:08:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to run SQL Profiler against local SQL Express instances</title>
		<link>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/</link>
		<comments>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 09:30:50 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[entity framework]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[sql profiler]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=421</guid>
		<description><![CDATA[I&#8217;m building a project using entity framework and wanted to ensure it wasn&#8217;t going mental and spamming the database with more queries than it should- this requires SQL Profiler, but i didn&#8217;t know how to connect it to my local instance of sql (I had just added an MDB file to the app&#8217;s app_data folder, [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Permanent Link: Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/' rel='bookmark' title='Permanent Link: ASP.net membership log times incorrect in the database'>ASP.net membership log times incorrect in the database</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m building a project using entity framework and wanted to ensure it wasn&#8217;t going mental and spamming the database with more queries than it should- this requires SQL Profiler, but i didn&#8217;t know how to connect it to my local instance of sql (I had just added an MDB file to the app&#8217;s app_data folder, so it was running via local sql express)</p>
<p>Turns out it&#8217;s easy- you just connect to .\SQLEXPRESS database and then execute this query against the master database;</p>
<pre class="brush: sql">
SELECT
owning_principal_name,
instance_pipe_name
FROM
sys.dm_os_child_instances
</pre>
<p>From the results you will be able fish out the &#8220;named pipe&#8221; that you can just put into the server name box when connecting with profiler.</p>
<div id="attachment_426" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-426 " title="Sql Profiler connection dialogue" src="http://www.shawson.co.uk/codeblog/wp-content/uploads/2009/12/profiler-300x223.jpg" alt="Sql Profiler connection dialogue" width="300" height="223" /><p class="wp-caption-text">Sql Profiler connection dialogue</p></div>
<p>via <a href="http://bradwilson.typepad.com/blog/2008/12/profiling-sql-server-express-user-instances.html">Brad Wilson: Profiling SQL Server Express User Instances</a>.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Permanent Link: Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/' rel='bookmark' title='Permanent Link: ASP.net membership log times incorrect in the database'>ASP.net membership log times incorrect in the database</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
