<?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://codeblog.shawson.co.uk/tag/sql-profiler/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Tue, 15 May 2012 15:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to run SQL Profiler against local SQL Express instances</title>
		<link>http://codeblog.shawson.co.uk/how-to-run-sql-profiler-against-local-sql-express-instances/</link>
		<comments>http://codeblog.shawson.co.uk/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://codeblog.shawson.co.uk/asp-net-roles-and-membership-installed-to-local-sql-express-2008-mdf-file/' rel='bookmark' title='ASP.net Roles and Membership installed to local SQL Express 2008 MDF file'>ASP.net Roles and Membership installed to local SQL Express 2008 MDF file</a></li>
<li><a href='http://codeblog.shawson.co.uk/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://codeblog.shawson.co.uk/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</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>
<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>
<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://codeblog.shawson.co.uk/asp-net-roles-and-membership-installed-to-local-sql-express-2008-mdf-file/' rel='bookmark' title='ASP.net Roles and Membership installed to local SQL Express 2008 MDF file'>ASP.net Roles and Membership installed to local SQL Express 2008 MDF file</a></li>
<li><a href='http://codeblog.shawson.co.uk/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://codeblog.shawson.co.uk/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/how-to-run-sql-profiler-against-local-sql-express-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

