<?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>LieberLieber Software TeamBlog &#187; SQL</title>
	<atom:link href="http://blog.lieberlieber.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lieberlieber.com</link>
	<description>was uns treibt und verfolgt!</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:11:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>SQL Basics: Search in nText columns</title>
		<link>http://blog.lieberlieber.com/2011/07/01/sql-basics-search-in-ntext-columns/</link>
		<comments>http://blog.lieberlieber.com/2011/07/01/sql-basics-search-in-ntext-columns/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 09:23:04 +0000</pubDate>
		<dc:creator>Andreas Bruckner</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[cast]]></category>
		<category><![CDATA[ntext]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=3484</guid>
		<description><![CDATA[Anybody ever tried to search in ntext or text fields on MS SQL Server? Common experience is to fail. Solution: cast your search-term to text type, and try again. Example, using EA-Database: SELECT * FROM t_xref x WHERE x.Description LIKE CAST(&#8216;%GUID={761F0C9E-92E4-42d1-8F0A-D3740A2BFF60}%&#8217; AS TEXT) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>Anybody ever tried to search in ntext or text fields on MS SQL Server?<br />
Common experience is to fail.</p>
<p>Solution: cast your search-term to text type, and try again.</p>
<p>Example, using EA-Database:<br />
SELECT * FROM t_xref x<br />
WHERE x.Description LIKE <span style="color: #0000ff;">CAST(</span>&#8216;%GUID={761F0C9E-92E4-42d1-8F0A-D3740A2BFF60}%&#8217;<span style="color: #0000ff;"> AS TEXT)</span></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;bodytext=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;t=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;notes=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;annotation=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;bm_description=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;bm_description=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;desc=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F%20SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;t=SQL%20Basics%3A%20Search%20in%20nText%20columns&amp;s=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SQL%20Basics%3A%20Search%20in%20nText%20columns%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;title=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;t=SQL%20Basics%3A%20Search%20in%20nText%20columns&opener=bm&amp;ei=UTF-8&amp;d=Anybody%20ever%20tried%20to%20search%20in%20ntext%20or%20text%20fields%20on%20MS%20SQL%20Server%3F%0D%0ACommon%20experience%20is%20to%20fail.%0D%0A%0D%0ASolution%3A%20cast%20your%20search-term%20to%20text%20type%2C%20and%20try%20again.%0D%0A%0D%0AExample%2C%20using%20EA-Database%3A%0D%0ASELECT%20%2A%20FROM%20t_xref%20x%0D%0AWHERE%20x.Description%20LIKE%20CAS" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F07%2F01%2Fsql-basics-search-in-ntext-columns%2F&amp;exttitle=SQL%20Basics%3A%20Search%20in%20nText%20columns" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2011/07/01/sql-basics-search-in-ntext-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get only the first record on a LEFT OUTER JOIN ?</title>
		<link>http://blog.lieberlieber.com/2011/01/13/how-to-get-only-the-first-record-on-a-left-outer-join/</link>
		<comments>http://blog.lieberlieber.com/2011/01/13/how-to-get-only-the-first-record-on-a-left-outer-join/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 19:42:11 +0000</pubDate>
		<dc:creator>Andreas Bruckner</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[APPLY]]></category>
		<category><![CDATA[LEFT OUTER JOIN]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=2948</guid>
		<description><![CDATA[This is a very simple scenario, but is taken from a very complex one. A Customer may have more than 1 address, some may have none. You only want each customer to appear only once. So what can you do? SELECT C.Name, A.Address FROM Customer AS C OUTER APPLY (SELECT TOP 1 * FROM Addresses [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple scenario, but is taken from a very complex one.<br />
A Customer may have more than 1 address, some may have none. You only want each customer to appear only once. So what can you do?</p>
<p>SELECT C.Name, A.Address<br />
FROM Customer AS C<br />
<strong>OUTER APPLY</strong> (SELECT TOP 1 *<br />
FROM Addresses<br />
WHERE CID = C.ID) AS A</p>
<p>Note, that this will never work on SQL CE, but on SQL Server 2005 or 2008! And it&#8217;s not part of the ANSI standard!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;bodytext=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;t=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;notes=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;annotation=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;bm_description=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;bm_description=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;desc=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F%20How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;t=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&amp;s=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;title=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;t=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F&opener=bm&amp;ei=UTF-8&amp;d=This%20is%20a%20very%20simple%20scenario%2C%20but%20is%20taken%20from%20a%20very%20complex%20one.%0D%0AA%20Customer%20may%20have%20more%20than%201%20address%2C%20some%20may%20have%20none.%20You%20only%20want%20each%20customer%20to%20appear%20only%20once.%20So%20what%20can%20you%20do%3F%0D%0A%0D%0ASELECT%20C.Name%2C%20A.Address%0D%0AFROM%20Customer%20AS%20C%0D%0A" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2011%2F01%2F13%2Fhow-to-get-only-the-first-record-on-a-left-outer-join%2F&amp;exttitle=How%20to%20get%20only%20the%20first%20record%20on%20a%20LEFT%20OUTER%20JOIN%20%3F" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2011/01/13/how-to-get-only-the-first-record-on-a-left-outer-join/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server Management Studio Express</title>
		<link>http://blog.lieberlieber.com/2010/10/05/sql-server-management-studio-express/</link>
		<comments>http://blog.lieberlieber.com/2010/10/05/sql-server-management-studio-express/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 15:50:56 +0000</pubDate>
		<dc:creator>Andreas Bruckner</dc:creator>
				<category><![CDATA[Allgemeine Theorien]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[management studio]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[SSMSE]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=2638</guid>
		<description><![CDATA[SQL Server Management Studio In some cases the user might install the SQL Server Express Edition, before a &#8220;real&#8221; SQL Server (Developer Edition). This can result in a basic version of Management Studio. Keep in mind, that with SSMSE (e = Express), you cannot manage Analysis Services, Integration Services, or Reporting Services. The more, you [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">SQL Server Management Studio</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In some cases the user might install the SQL Server Express Edition, before a &#8220;real&#8221; SQL Server (Developer Edition).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">This can result in a basic version of Management Studio.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Keep in mind, that with SSMSE (e = Express), you cannot manage Analysis Services, Integration Services, or Reporting Services.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The more, you cannot update the full-text catalog by using SSMSE and it does not support scheduling administrative tasks by using SQL Server Agent.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If you installed a Developer Edition of a SQL Server on your system, you also cannot upgrade the basic version of SSMEE. Only possible thing is, to uninstall SQL Express, and do a &#8220;Upgrade&#8221; with the Developer Edition SQL Setup to the full version.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Easiest way to discover SSMSE: try to connect to a SQL server. If your only choice is &#8220;database engine&#8221;, that it&#8217;s express.</div>
<p>In some cases the user might install the SQL Server Express Edition, before a &#8220;real&#8221; SQL Server (e.g. Developer Edition).<br />
This can result in a basic version of Management Studio.</p>
<p>Keep in mind, that with SSMSE (e = Express), you cannot manage Analysis Services, Integration Services, or Reporting Services.<br />
The more, you cannot update the full-text catalog by using SSMSE and it does not support scheduling administrative tasks by using SQL Server Agent.</p>
<p>If you later install a Developer Edition of a SQL Server on your system, you also cannot upgrade from the basic version SSMSE. Only possible thing is, to uninstall SQL Express, and do a &#8220;Upgrade&#8221; with the Developer Edition SQL Setup to the full version SSMS.</p>
<p><em>Easiest way to discover SSMSE: try to connect to a SQL server: if your only choice is &#8220;database engine&#8221;, that&#8217;s express .</em></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express&amp;bodytext=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;t=SQL%20Server%20Management%20Studio%20Express" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express&amp;notes=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express&amp;annotation=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;bm_description=SQL%20Server%20Management%20Studio%20Express&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;bm_description=SQL%20Server%20Management%20Studio%20Express&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SQL%20Server%20Management%20Studio%20Express&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;desc=SQL%20Server%20Management%20Studio%20Express" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F%20SQL%20Server%20Management%20Studio%20Express" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;t=SQL%20Server%20Management%20Studio%20Express&amp;s=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SQL%20Server%20Management%20Studio%20Express%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;title=SQL%20Server%20Management%20Studio%20Express" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;t=SQL%20Server%20Management%20Studio%20Express&opener=bm&amp;ei=UTF-8&amp;d=SQL%20Server%20Management%20Studio%0D%0AIn%20some%20cases%20the%20user%20might%20install%20the%20SQL%20Server%20Express%20Edition%2C%20before%20a%20%22real%22%20SQL%20Server%20%28Developer%20Edition%29.%0D%0AThis%20can%20result%20in%20a%20basic%20version%20of%20Management%20Studio.%0D%0AKeep%20in%20mind%2C%20that%20with%20SSMSE%20%28e%20%3D%20Express%29%2C" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F10%2F05%2Fsql-server-management-studio-express%2F&amp;exttitle=SQL%20Server%20Management%20Studio%20Express" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2010/10/05/sql-server-management-studio-express/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sql QueryBuilder</title>
		<link>http://blog.lieberlieber.com/2010/09/28/sql-querybuilder/</link>
		<comments>http://blog.lieberlieber.com/2010/09/28/sql-querybuilder/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 13:27:04 +0000</pubDate>
		<dc:creator>Franz Kalchmair</dc:creator>
				<category><![CDATA[Programmierung Allgemein]]></category>
		<category><![CDATA[Ocf]]></category>
		<category><![CDATA[Open Components Framework]]></category>
		<category><![CDATA[QueryBuilder]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/2010/09/28/sql-querybuilder/</guid>
		<description><![CDATA[&#160; Im Rahmen eines OCF basierten Projektes brauchten wir die Möglichkeit komplexe Sql Abfragen abbilden zu können. Eine QueryBuilder musste her, dabei sollte die Anwendung aber möglichst einfach sein. Auf der Codeproject Seite “SelectQueryBuilder: Building complex and flexible SQL queries/commands from C#” findet sich eine sehr gute Implementierung. Damit lassen sich so nette Sachen wie [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Im Rahmen eines OCF basierten Projektes brauchten wir die Möglichkeit komplexe Sql Abfragen abbilden zu können. Eine QueryBuilder musste her, dabei sollte die Anwendung aber möglichst einfach sein. </p>
<p>Auf der Codeproject Seite “<a href="http://www.codeproject.com/KB/database/SelectQueryBuilder.aspx">SelectQueryBuilder: Building complex and flexible SQL queries/commands from C#</a>” findet sich eine sehr gute Implementierung.</p>
<p>Damit lassen sich so nette Sachen wie Join Bildung und dgl. ganz einfach umsetzen:</p>
<p><font color="#0000ff" size="2">SelectQueryBuilder query = new SelectQueryBuilder();     <br />query.SelectFromTable(&quot;Orders&quot;);      </p>
<p>query.AddJoin(JoinType.InnerJoin,       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;Customers&quot;, &quot;CustomerID&quot;,       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Comparison.Equals,       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;Orders&quot;, &quot;CustomerID&quot;);      </p>
<p>query.AddWhere(&quot;Customers.City&quot;,       <br />&#160;&#160;&#160;&#160;&#160; Comparison.Equals, &quot;London&quot;);</font></p>
<p>Die leicht abgeänderte Version des SelectQueryBuilders ist jetzt Teil der OCF assembly Ocf.Common.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder&amp;bodytext=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;t=Sql%20QueryBuilder" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder&amp;notes=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder&amp;annotation=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;bm_description=Sql%20QueryBuilder&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;bm_description=Sql%20QueryBuilder&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=Sql%20QueryBuilder&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;desc=Sql%20QueryBuilder" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F%20Sql%20QueryBuilder" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;t=Sql%20QueryBuilder&amp;s=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Sql%20QueryBuilder%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;title=Sql%20QueryBuilder" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;t=Sql%20QueryBuilder&opener=bm&amp;ei=UTF-8&amp;d=%26%23160%3B%20%20Im%20Rahmen%20eines%20OCF%20basierten%20Projektes%20brauchten%20wir%20die%20M%C3%B6glichkeit%20komplexe%20Sql%20Abfragen%20abbilden%20zu%20k%C3%B6nnen.%20Eine%20QueryBuilder%20musste%20her%2C%20dabei%20sollte%20die%20Anwendung%20aber%20m%C3%B6glichst%20einfach%20sein.%20%20%20Auf%20der%20Codeproject%20Seite%20%E2%80%9CSelectQuer" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F09%2F28%2Fsql-querybuilder%2F&amp;exttitle=Sql%20QueryBuilder" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2010/09/28/sql-querybuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS SQL Server: How to create Insert Scripts</title>
		<link>http://blog.lieberlieber.com/2010/04/14/ms-sql-server-how-to-create-insert-scripts/</link>
		<comments>http://blog.lieberlieber.com/2010/04/14/ms-sql-server-how-to-create-insert-scripts/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 08:23:35 +0000</pubDate>
		<dc:creator>Andreas Bruckner</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=1848</guid>
		<description><![CDATA[There are a lot of scripts out there promising to create insert scripts. You pass in the name of the table, and the scripts create an insert statement for each record contained. Only problem they have: the more columns there are, the greater the chance of lines being cut off in the middle. The only [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of scripts out there promising to create insert scripts. You pass in the name of the table, and the scripts create an insert statement for each record contained. Only problem they have: the more columns there are, the greater the chance of lines being cut off in the middle.<br />
The only <strong>working &amp; free</strong> solution I found up to now is called <strong>SSMS Tools</strong>. You can get it here: <a title="SSMS Tools" href="http://www.ssmstoolspack.com/" target="_blank">LINK</a>.<br />
It integrates into SQL Server Management Studio and offers a couple of functions. The most important: the creation of insert scripts, based on the result of any sql statement.</p>
<p>This is standard functionality in Oracle clients for years now. So MS, please tell me, why this wasn&#8217;t implemented into SQL Server 2008?</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;bodytext=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;t=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;notes=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;annotation=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;bm_description=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;bm_description=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;desc=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F%20MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;t=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&amp;s=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;title=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;t=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts&opener=bm&amp;ei=UTF-8&amp;d=There%20are%20a%20lot%20of%20scripts%20out%20there%20promising%20to%20create%20insert%20scripts.%20You%20pass%20in%20the%20name%20of%20the%20table%2C%20and%20the%20scripts%20create%20an%20insert%20statement%20for%20each%20record%20contained.%20Only%20problem%20they%20have%3A%20the%20more%20columns%20there%20are%2C%20the%20greater%20the%20chan" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F04%2F14%2Fms-sql-server-how-to-create-insert-scripts%2F&amp;exttitle=MS%20SQL%20Server%3A%20How%20to%20create%20Insert%20Scripts" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2010/04/14/ms-sql-server-how-to-create-insert-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server: Update Cursor</title>
		<link>http://blog.lieberlieber.com/2010/03/01/sql-server-update-cursor/</link>
		<comments>http://blog.lieberlieber.com/2010/03/01/sql-server-update-cursor/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 08:24:08 +0000</pubDate>
		<dc:creator>Andreas Bruckner</dc:creator>
				<category><![CDATA[Programmierung Allgemein]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Stored Procedure]]></category>
		<category><![CDATA[Update Cursor]]></category>
		<category><![CDATA[Update Table]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=1708</guid>
		<description><![CDATA[How to use an Update Cursor on MS SQL Server.
Requirements: If the update-table does not have a Primary Key, the cursor is read-only. So I advise to create at least a temporary Primary Key, and delete it afterwards.]]></description>
			<content:encoded><![CDATA[<p>How to use an Update Cursor on MS SQL Server.<br />
Requirements: If the update-table does not have a Primary Key, the cursor is read-only. So I advise to create at least a temporary Primary Key, and delete it afterwards.</p>
<p>Usage:</p>
<blockquote><p><span style="color: #0000ff;">DECLARE curs as CURSOR<br />
FOR SELECT * FROM t_image<br />
FOR UPDATE</span></p>
<p><span style="color: #0000ff;">OPEN curs<br />
FETCH curs INTO @lastValue</span></p>
<p><span style="color: #0000ff;">WHILE (@@FETCH_STATUS = 0) BEGIN</span></p>
<p><span style="color: #0000ff;">UPDATE [t_image]<br />
SET [CALC_VALUE] = @lastValue<br />
<span style="color: #ff0000;">WHERE current of curs</span></span></p>
<p><span style="color: #0000ff;">FETCH curs INTO @lastValue<br />
END</span></p>
<p><span style="color: #0000ff;">CLOSE calc<br />
DEALLOCATE calc</span></p></blockquote>
<p>if you replace &#8220;WHERE current of curs&#8221; by any &#8220;WHERE x = y&#8221; statement, it would decrease performance dramtically.</p>
<p>During a test with 80000 records, execution time without update cursor takes 20 minutes. Using an update cursor speeds up to a total time of 20 seconds!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor&amp;bodytext=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;t=SQL%20Server%3A%20Update%20Cursor" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor&amp;notes=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor&amp;annotation=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;bm_description=SQL%20Server%3A%20Update%20Cursor&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;bm_description=SQL%20Server%3A%20Update%20Cursor&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SQL%20Server%3A%20Update%20Cursor&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;desc=SQL%20Server%3A%20Update%20Cursor" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F%20SQL%20Server%3A%20Update%20Cursor" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;t=SQL%20Server%3A%20Update%20Cursor&amp;s=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SQL%20Server%3A%20Update%20Cursor%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;title=SQL%20Server%3A%20Update%20Cursor" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;t=SQL%20Server%3A%20Update%20Cursor&opener=bm&amp;ei=UTF-8&amp;d=How%20to%20use%20an%20Update%20Cursor%20on%20MS%20SQL%20Server.%0D%0ARequirements%3A%20If%20the%20update-table%20does%20not%20have%20a%20Primary%20Key%2C%20the%20cursor%20is%20read-only.%20So%20I%20advise%20to%20create%20at%20least%20a%20temporary%20Primary%20Key%2C%20and%20delete%20it%20afterwards." title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2010%2F03%2F01%2Fsql-server-update-cursor%2F&amp;exttitle=SQL%20Server%3A%20Update%20Cursor" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2010/03/01/sql-server-update-cursor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Abfragen &#8211; das Mirakel</title>
		<link>http://blog.lieberlieber.com/2009/06/03/sql-abfragen-das-mirakel/</link>
		<comments>http://blog.lieberlieber.com/2009/06/03/sql-abfragen-das-mirakel/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 16:11:58 +0000</pubDate>
		<dc:creator>Peter Lieber</dc:creator>
				<category><![CDATA[Datenbanken]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=1108</guid>
		<description><![CDATA[Im Folgenden habe ich zwei Varianten einer sich ziemlich ändelnden SQL Abfrage: SELECT Top 1 Employees.Country, Employees.LastName, Employees.FirstName, Orders.ShippedDate, Orders.OrderID, "Order Subtotals".Subtotal AS SaleAmount FROM Employees INNER JOIN (Orders INNER JOIN "Order Subtotals" ON Orders.OrderID = "Order Subtotals".OrderID) ON Employees.EmployeeID = Orders.EmployeeID and "Order Subtotals".Subtotal > 2490.50 WHERE Employees.EmployeeID > 1 SELECT Top 1 Employees.Country, [...]]]></description>
			<content:encoded><![CDATA[<p>Im Folgenden habe ich zwei Varianten einer sich ziemlich ändelnden SQL Abfrage:</p>
<p><code>SELECT Top 1 Employees.Country, Employees.LastName, Employees.FirstName, Orders.ShippedDate, Orders.OrderID, "Order Subtotals".Subtotal AS SaleAmount<br />
FROM Employees INNER JOIN<br />
	(Orders INNER JOIN "Order Subtotals" ON Orders.OrderID = "Order Subtotals".OrderID)<br />
	ON Employees.EmployeeID = Orders.EmployeeID</p>
<p><strong>and "Order Subtotals".Subtotal > 2490.50</strong></p>
<p>WHERE Employees.EmployeeID > 1  </p>
<p></code></p>
<p><code>SELECT Top 1 Employees.Country, Employees.LastName, Employees.FirstName, Orders.ShippedDate, Orders.OrderID, "Order Subtotals".Subtotal AS SaleAmount<br />
FROM Employees INNER JOIN<br />
	(Orders INNER JOIN "Order Subtotals" ON Orders.OrderID = "Order Subtotals".OrderID)<br />
	ON Employees.EmployeeID = Orders.EmployeeID<br />
WHERE Employees.EmployeeID > 1<br />
<strong>and "Order Subtotals".Subtotal > 2490.50</strong></p>
<p></code></p>
<p>Einmal ist die Subtotal Abfrage im FROM/JOIN Bereich und einmal im WHERE. In diesem Fall liefert der SQL Server tatsächlich das gleiche Ergebnis. Nun ist mir aber bei einem Kunden folgendes passiert: In einer Kundentabelle, werden die Kundendatensätze auch noch versioniert. Es musste auf eine bestimmte Version eines Satzes zugegriffen werden und dazu wurde leider weder ein ORDER BY DESC oder ein zielgerichtetes Abfragen auf die richtige Version des Datensatzes zurückgegriffen, sondern &#8211; einfach mit TOP 1 gearbeitet. Im FROM/JOIN Bereich hatte die Abfrage alle Versionen geliefert und daher bei TOP 1 immer die älteste Version. Durch Kopieren in den WHERE Bereich war das Problem dann gelöst. Ich werde versuchen auf Basis der Northwind Datenbank dieses Phenomen nachvollziehbarer zu machen. Aber es war mir jetzt schon wichtig genug das niederzuschreiben.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel&amp;bodytext=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;t=SQL%20Abfragen%20-%20das%20Mirakel" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel&amp;notes=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel&amp;annotation=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;bm_description=SQL%20Abfragen%20-%20das%20Mirakel&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;bm_description=SQL%20Abfragen%20-%20das%20Mirakel&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SQL%20Abfragen%20-%20das%20Mirakel&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;desc=SQL%20Abfragen%20-%20das%20Mirakel" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F%20SQL%20Abfragen%20-%20das%20Mirakel" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;t=SQL%20Abfragen%20-%20das%20Mirakel&amp;s=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SQL%20Abfragen%20-%20das%20Mirakel%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;title=SQL%20Abfragen%20-%20das%20Mirakel" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;t=SQL%20Abfragen%20-%20das%20Mirakel&opener=bm&amp;ei=UTF-8&amp;d=Im%20Folgenden%20habe%20ich%20zwei%20Varianten%20einer%20sich%20ziemlich%20%C3%A4ndelnden%20SQL%20Abfrage%3A%0D%0A%0D%0ASELECT%20Top%201%20Employees.Country%2C%20Employees.LastName%2C%20Employees.FirstName%2C%20Orders.ShippedDate%2C%20Orders.OrderID%2C%20%22Order%20Subtotals%22.Subtotal%20AS%20SaleAmount%0D%0AFROM%20Employees%20" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F06%2F03%2Fsql-abfragen-das-mirakel%2F&amp;exttitle=SQL%20Abfragen%20-%20das%20Mirakel" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2009/06/03/sql-abfragen-das-mirakel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SqlCe 3.1 auf 3.5 Upgraden</title>
		<link>http://blog.lieberlieber.com/2009/04/10/sqlce-31-auf-35-upgraden/</link>
		<comments>http://blog.lieberlieber.com/2009/04/10/sqlce-31-auf-35-upgraden/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 08:18:59 +0000</pubDate>
		<dc:creator>Daniel Siegl</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Compact Framework]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SqlCe]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=1096</guid>
		<description><![CDATA[Nachdem ich nur mehr die SQL Server 2008 Tools installiert habe &#8211; gibt es Schwierigkeiten mit dem öffnen von SQLCe 3.1 Datenbanken &#8211; 2 Zeilen Code machens wieder gut. Gefunden habe ich das bei MobileTech SqlCeEngineeng = new SqlCeEngine(@&#8221;DataSource=C:\MyDataBase.sdf&#8221;);  eng.Upgrade(@&#8221;DataSource=C:\MyDataBaseNew.sdf&#8221;); Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>Nachdem ich nur mehr die SQL Server 2008 Tools installiert habe &#8211; gibt es Schwierigkeiten mit dem öffnen von SQLCe 3.1 Datenbanken &#8211; 2 Zeilen Code machens wieder gut. Gefunden habe ich das bei <a accesskey="1" href="http://blog.quayinc.com/2008/04/upgrading-your.html" target="_blank">MobileTech</a></p>
<p><span style="font-size: 9pt; font-family: Courier New;"><span style="color: #2b91af;">SqlCeEngine</span>eng = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCeEngine</span>(<span style="color: #a31515;">@&#8221;DataSource=C:\MyDataBase.sdf&#8221;</span>); <br />
</span><span style="font-size: 9pt; font-family: Courier New;">eng.Upgrade(<span style="color: #a31515;">@&#8221;DataSource=C:\MyDataBaseNew.sdf&#8221;</span>); </span></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden&amp;bodytext=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;t=SqlCe%203.1%20auf%203.5%20Upgraden" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden&amp;notes=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden&amp;annotation=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;bm_description=SqlCe%203.1%20auf%203.5%20Upgraden&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;bm_description=SqlCe%203.1%20auf%203.5%20Upgraden&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SqlCe%203.1%20auf%203.5%20Upgraden&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;desc=SqlCe%203.1%20auf%203.5%20Upgraden" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F%20SqlCe%203.1%20auf%203.5%20Upgraden" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;t=SqlCe%203.1%20auf%203.5%20Upgraden&amp;s=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SqlCe%203.1%20auf%203.5%20Upgraden%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;title=SqlCe%203.1%20auf%203.5%20Upgraden" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;t=SqlCe%203.1%20auf%203.5%20Upgraden&opener=bm&amp;ei=UTF-8&amp;d=Nachdem%20ich%20nur%20mehr%20die%20SQL%20Server%202008%20Tools%20installiert%20habe%20-%20gibt%20es%20Schwierigkeiten%20mit%20dem%20%C3%B6ffnen%20von%20SQLCe%203.1%20Datenbanken%20-%202%20Zeilen%20Code%20machens%20wieder%20gut.%20Gefunden%20habe%20ich%20das%20bei%20MobileTech%0D%0A%0D%0ASqlCeEngineeng%20%3D%20new%20SqlCeEngine%28%40%22DataSou" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2009%2F04%2F10%2Fsqlce-31-auf-35-upgraden%2F&amp;exttitle=SqlCe%203.1%20auf%203.5%20Upgraden" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2009/04/10/sqlce-31-auf-35-upgraden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SqlMetal &#124; SQL 2 LINQ</title>
		<link>http://blog.lieberlieber.com/2008/11/24/sqlmetal-sql-2-linq/</link>
		<comments>http://blog.lieberlieber.com/2008/11/24/sqlmetal-sql-2-linq/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 17:46:00 +0000</pubDate>
		<dc:creator>Peter Lieber</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[DBMS]]></category>
		<category><![CDATA[EA]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[LINQ2SQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.lieberlieber.com/?p=474</guid>
		<description><![CDATA[Das Kommandozeilentool SqlMetal erstellt für eine gesamte Datenbank die Designerdateien für LINQ. Die generierte Codedatei kann anschlißend zur Optimierung unmittelbar im Editor nachbearbeitet werden. Bisher kannte ich nur die Projektvorlage LINQ to SQL Classes. Aber für größere DBMS ist das natürlich so viel feiner die DBML (Database Markup Language) Dateien zu erstellen. Wunsch an meine [...]]]></description>
			<content:encoded><![CDATA[<p>Das Kommandozeilentool <a href="http://msdn.microsoft.com/de-de/library/bb386987.aspx" target="_blank">SqlMetal</a> erstellt für eine gesamte Datenbank die Designerdateien für LINQ. Die generierte Codedatei kann anschlißend zur Optimierung unmittelbar im Editor nachbearbeitet werden. Bisher kannte ich nur die Projektvorlage LINQ to SQL Classes. Aber für größere DBMS ist das natürlich so viel feiner die DBML (Database Markup Language) Dateien zu erstellen.<br />
Wunsch an meine Enterprise Architect Addin Truppe: wäre doch fein, wenn man das mit EA auch rausbekommen würde <img src='http://blog.lieberlieber.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F" title="Technorati"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ&amp;bodytext=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="Digg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;t=SqlMetal%20%7C%20SQL%202%20LINQ" title="Facebook"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ&amp;notes=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="del.icio.us"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="Live"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ&amp;annotation=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="Google Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="DotNetKicks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="DZone"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.blogospherenews.com/submit.php?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="Blogosphere News"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogospherenews.png" title="Blogosphere News" alt="Blogosphere News" class="sociable-hovers" /></a></li>
	<li><a  target="_blank" href="http://blogplay.com" title="Blogplay"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ&amp;source=LieberLieber+Software+TeamBlog+was+uns+treibt+und+verfolgt%21&amp;summary=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="LinkedIn"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;bm_description=SqlMetal%20%7C%20SQL%202%20LINQ&amp;plugin=soc" title="MisterWong"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mister-wong.de/addurl/?bm_url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;bm_description=SqlMetal%20%7C%20SQL%202%20LINQ&amp;plugin=soc" title="MisterWong.DE"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong.DE" alt="MisterWong.DE" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reporter.nl.msn.com/?fn=contribute&amp;Title=SqlMetal%20%7C%20SQL%202%20LINQ&amp;URL=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="MSN Reporter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/msnreporter.png" title="MSN Reporter" alt="MSN Reporter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;desc=SqlMetal%20%7C%20SQL%202%20LINQ" title="MyShare"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://blog.lieberlieber.com/feed/" title="RSS"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="StumbleUpon"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home/?status=tip%20@Techmeme%20http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F%20SqlMetal%20%7C%20SQL%202%20LINQ" title="Suggest to Techmeme via Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/techmeme.png" title="Suggest to Techmeme via Twitter" alt="Suggest to Techmeme via Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;t=SqlMetal%20%7C%20SQL%202%20LINQ&amp;s=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="Tumblr"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SqlMetal%20%7C%20SQL%202%20LINQ%20-%20http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F" title="Twitter"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.webnews.de/einstellen?url=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;title=SqlMetal%20%7C%20SQL%202%20LINQ" title="Webnews.de"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/webnews.png" title="Webnews.de" alt="Webnews.de" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;t=SqlMetal%20%7C%20SQL%202%20LINQ&opener=bm&amp;ei=UTF-8&amp;d=Das%20Kommandozeilentool%20SqlMetal%20erstellt%20f%C3%BCr%20eine%20gesamte%20Datenbank%20die%20Designerdateien%20f%C3%BCr%20LINQ.%20Die%20generierte%20Codedatei%20kann%20anschli%C3%9Fend%20zur%20Optimierung%20unmittelbar%20im%20Editor%20nachbearbeitet%20werden.%20Bisher%20kannte%20ich%20nur%20die%20Projektvorlage%20LINQ%20" title="Yahoo! Bookmarks"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://yigg.de/neu?exturl=http%3A%2F%2Fblog.lieberlieber.com%2F2008%2F11%2F24%2Fsqlmetal-sql-2-linq%2F&amp;exttitle=SqlMetal%20%7C%20SQL%202%20LINQ" title="Yigg"><img src="http://blog.lieberlieber.com/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lieberlieber.com/2008/11/24/sqlmetal-sql-2-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

