<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Access queries</title>
	<atom:link href="http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/</link>
	<description>Simon Murphy on professional spreadsheet development stuff</description>
	<pubDate>Fri, 08 Aug 2008 19:53:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Doug Glancy</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11379</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Tue, 13 May 2008 00:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11379</guid>
		<description>Great conversation.  I'm just starting to program Access and this post gave me the inspiration to write a class to handle Select Querydefs to feed into reports.</description>
		<content:encoded><![CDATA[<p>Great conversation.  I&#8217;m just starting to program Access and this post gave me the inspiration to write a class to handle Select Querydefs to feed into reports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11288</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Tue, 29 Apr 2008 03:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11288</guid>
		<description>I use MS Query to build a SQL connection string, save the query file, then just open it from Excel 2003 VBA using the OpenDatabase Method. That executes the query without any need to touch Access (which personally I detest). Just assign the macro to a toolbar button and POOF! anyone with Excel can query the db. If you have a copy of the book 'Managing Data with Microsoft Excel', there's an excellent section about querying an Access database from Excel.

--JP</description>
		<content:encoded><![CDATA[<p>I use MS Query to build a SQL connection string, save the query file, then just open it from Excel 2003 VBA using the OpenDatabase Method. That executes the query without any need to touch Access (which personally I detest). Just assign the macro to a toolbar button and POOF! anyone with Excel can query the db. If you have a copy of the book &#8216;Managing Data with Microsoft Excel&#8217;, there&#8217;s an excellent section about querying an Access database from Excel.</p>
<p>&#8211;JP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11225</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 24 Apr 2008 09:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11225</guid>
		<description>Rob
Don't you base views on views or queries on queries?

I may do a base groupby, and then have various views of that, perhaps further summarised, or filtered or joined. Not stuff like dates, they would probably go in as parameters, but I would join to a product type table, of a geo one. I guess stability is the key, unstable - param, stable - view of view?

I'll dig out an example for a future post, as I suspect we are thinking of different scenarios.</description>
		<content:encoded><![CDATA[<p>Rob<br />
Don&#8217;t you base views on views or queries on queries?</p>
<p>I may do a base groupby, and then have various views of that, perhaps further summarised, or filtered or joined. Not stuff like dates, they would probably go in as parameters, but I would join to a product type table, of a geo one. I guess stability is the key, unstable - param, stable - view of view?</p>
<p>I&#8217;ll dig out an example for a future post, as I suspect we are thinking of different scenarios.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bruce</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11223</link>
		<dc:creator>Rob Bruce</dc:creator>
		<pubDate>Thu, 24 Apr 2008 06:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11223</guid>
		<description>Maintenance. With an 'a'. I blame the teachers.</description>
		<content:encoded><![CDATA[<p>Maintenance. With an &#8216;a&#8217;. I blame the teachers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bruce</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11222</link>
		<dc:creator>Rob Bruce</dc:creator>
		<pubDate>Thu, 24 Apr 2008 06:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11222</guid>
		<description>Simon,

"I assumed Dick meant ’select * from qryXXX…’ where … means WHERE or HAVING or whatever. I build queries up just the same based on others, does anyone else?"

Wouldn't this be a textbook example of distributing logic across different layers of your application? This looks like a maintenence nightmare. Wouldn't it be better to make qryXXX as param query so that the WHERE logic happens with the rest of your app's data access logic?

Rob</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>&#8220;I assumed Dick meant ’select * from qryXXX…’ where … means WHERE or HAVING or whatever. I build queries up just the same based on others, does anyone else?&#8221;</p>
<p>Wouldn&#8217;t this be a textbook example of distributing logic across different layers of your application? This looks like a maintenence nightmare. Wouldn&#8217;t it be better to make qryXXX as param query so that the WHERE logic happens with the rest of your app&#8217;s data access logic?</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alastair</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11215</link>
		<dc:creator>alastair</dc:creator>
		<pubDate>Wed, 23 Apr 2008 08:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11215</guid>
		<description>I have always used DAO - don't know why.  Access and performance is something of an art rather than a science!!!</description>
		<content:encoded><![CDATA[<p>I have always used DAO - don&#8217;t know why.  Access and performance is something of an art rather than a science!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11207</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 22 Apr 2008 20:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11207</guid>
		<description>Yeah, I was going to sign my name Littlus Dickus, but that's the kind of thing that follows a guy around.

I like the pre-compiled argument.  And I never thought of the SQL statement being saved as a property of the QD, but that makes sense.  I should admit that I use ADO even when connecting to Jet (because I'm lazy), so I'm a bit of hypocrite for bringing up performance issues in the first place.</description>
		<content:encoded><![CDATA[<p>Yeah, I was going to sign my name Littlus Dickus, but that&#8217;s the kind of thing that follows a guy around.</p>
<p>I like the pre-compiled argument.  And I never thought of the SQL statement being saved as a property of the QD, but that makes sense.  I should admit that I use ADO even when connecting to Jet (because I&#8217;m lazy), so I&#8217;m a bit of hypocrite for bringing up performance issues in the first place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11206</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 22 Apr 2008 20:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11206</guid>
		<description>Rob
I assumed Dick meant 'select * from qryXXX...' where ... means WHERE or HAVING or whatever. I build queries up just the same based on others, does anyone else?

Marcus yes I do that, I have SQL (and MDX) generator library code.

Performance wise I'd expect querydefs to have the edge, but I don't know, havent tested it, and no idea whether it would be material. It would depend on how you access the db though, I imagine DAO is faster than ADO is faster than ADO.net?
Anyone got any decent performance links?
cheers
Simon</description>
		<content:encoded><![CDATA[<p>Rob<br />
I assumed Dick meant &#8217;select * from qryXXX&#8230;&#8217; where &#8230; means WHERE or HAVING or whatever. I build queries up just the same based on others, does anyone else?</p>
<p>Marcus yes I do that, I have SQL (and MDX) generator library code.</p>
<p>Performance wise I&#8217;d expect querydefs to have the edge, but I don&#8217;t know, havent tested it, and no idea whether it would be material. It would depend on how you access the db though, I imagine DAO is faster than ADO is faster than ADO.net?<br />
Anyone got any decent performance links?<br />
cheers<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bruce</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11205</link>
		<dc:creator>Rob Bruce</dc:creator>
		<pubDate>Tue, 22 Apr 2008 19:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11205</guid>
		<description>"This gain used to be easily seen in earlier versions of Access and on earlier slow machines and networks."

I was going to comment that "Select * from qryXXXX" is probably doing the query twice (well, doing the query and then querying the result of the query) and that the use of the '*' also makes Jet do more work in finding out what fields it should be dealing with, but I think that, generally at least, such micro optimisation is becoming less relevant as hardware becomes faster and cheaper.</description>
		<content:encoded><![CDATA[<p>&#8220;This gain used to be easily seen in earlier versions of Access and on earlier slow machines and networks.&#8221;</p>
<p>I was going to comment that &#8220;Select * from qryXXXX&#8221; is probably doing the query twice (well, doing the query and then querying the result of the query) and that the use of the &#8216;*&#8217; also makes Jet do more work in finding out what fields it should be dealing with, but I think that, generally at least, such micro optimisation is becoming less relevant as hardware becomes faster and cheaper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biggus Dickus</title>
		<link>http://smurfonspreadsheets.wordpress.com/2008/04/22/access-queries/#comment-11202</link>
		<dc:creator>Biggus Dickus</dc:creator>
		<pubDate>Tue, 22 Apr 2008 17:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://smurfonspreadsheets.wordpress.com/?p=570#comment-11202</guid>
		<description>Dick (what a great name eh?):

"There has to be some kind of performance hit using qeurydefs, doesn’t there?"

Actually I have always thought the opposite is the case because a saved query is pre-compiled and Jet likes that.  
This gain used to be easily seen in earlier versions of Access and on earlier slow machines and networks.  Even though I haven't tested it in recent versions (where's Ken Getz when we need him ??), I have always thought it still had some value.  If anything it's neutral not a negative.

Biggus Dickus</description>
		<content:encoded><![CDATA[<p>Dick (what a great name eh?):</p>
<p>&#8220;There has to be some kind of performance hit using qeurydefs, doesn’t there?&#8221;</p>
<p>Actually I have always thought the opposite is the case because a saved query is pre-compiled and Jet likes that.<br />
This gain used to be easily seen in earlier versions of Access and on earlier slow machines and networks.  Even though I haven&#8217;t tested it in recent versions (where&#8217;s Ken Getz when we need him ??), I have always thought it still had some value.  If anything it&#8217;s neutral not a negative.</p>
<p>Biggus Dickus</p>
]]></content:encoded>
	</item>
</channel>
</rss>
