<?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>Ralf Hüsing &#187; SQL</title>
	<atom:link href="http://ralf.stormbind.net/category/programmierung/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://ralf.stormbind.net</link>
	<description></description>
	<lastBuildDate>Sun, 10 Apr 2011 09:50:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Deadlockopfer</title>
		<link>http://ralf.stormbind.net/2009/05/14/deadlockopfer/</link>
		<comments>http://ralf.stormbind.net/2009/05/14/deadlockopfer/#comments</comments>
		<pubDate>Thu, 14 May 2009 09:52:46 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/?p=248</guid>
		<description><![CDATA[&#8220;Die Transaktion (Prozess-ID xxxx) befand sich auf Sperre Ressourcen aufgrund eines anderen Prozesses in einer Deadlocksituation und wurde als Deadlockopfer ausgewählt. Führen Sie die Transaktion erneut aus.&#8221; Soweit ich das verstanden habe treten Deadlock&#8217;s auf wenn zwei Transaktionen dauerhaft auf eine bestimmte Ressource warten würden. Eine Ressource kann zbspl. eine Speicher-Seite sein. Der MS-SQL-Server erkennt &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2009/05/14/deadlockopfer/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2009/05/14/deadlockopfer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zahlen sortieren mal anders</title>
		<link>http://ralf.stormbind.net/2009/03/31/zahlen-sortieren-mal-anders/</link>
		<comments>http://ralf.stormbind.net/2009/03/31/zahlen-sortieren-mal-anders/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 22:07:01 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Hirndefekt]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/?p=235</guid>
		<description><![CDATA[So könnte man Zahlen mal auf eine andere Art sortieren:

<pre>
SELECT 3 AS ID
UNION ALL
SELECT 1 AS ID
UNION ALL
SELECT 2 AS ID
ORDER BY ID
</pre>

Sieht dann in etwa so aus:

<img src="/wp-content/uploads/2009/03/sql-sort.jpg" alt="SQL-Sort" />
]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2009/03/31/zahlen-sortieren-mal-anders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eingabedaten flexibel und unabhängig von der Programmiersprache mittels SQL prüfen</title>
		<link>http://ralf.stormbind.net/2008/12/12/eingabedaten-flexibel-und-unabhangig-von-der-programmiersprache-mittels-sql-prufen/</link>
		<comments>http://ralf.stormbind.net/2008/12/12/eingabedaten-flexibel-und-unabhangig-von-der-programmiersprache-mittels-sql-prufen/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 17:05:25 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/?p=163</guid>
		<description><![CDATA[Möchte man Eingaben flexibel und evtl. komplexen Prüfungen unterziehen kann man sich die Fähigkeiten von SQL zu nutze machen. Ich gehe hier davon aus das die Anwendung generell eine Datenbankverbindung hat und nicht extra wegen der Prüfung eine Verbindung aufbauen muss. Ein Beispiel: Der Benutzer gibt eine Zeichenfolge ein: &#8220;D016381&#8243;. Die Anwendung muss nun etwas &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2008/12/12/eingabedaten-flexibel-und-unabhangig-von-der-programmiersprache-mittels-sql-prufen/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2008/12/12/eingabedaten-flexibel-und-unabhangig-von-der-programmiersprache-mittels-sql-prufen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Den Inhalt aller Tabellen einer Microsoft SQL-Datenbank löschen</title>
		<link>http://ralf.stormbind.net/2008/09/26/den-inhalt-aller-tabellen-einer-microsoft-sql-datenbank-loschen/</link>
		<comments>http://ralf.stormbind.net/2008/09/26/den-inhalt-aller-tabellen-einer-microsoft-sql-datenbank-loschen/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 21:42:33 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/?p=126</guid>
		<description><![CDATA[Mit folgendem TSQL-Script wird der Inhalt aller in der aktuellen Datenbank vorhandenen Benutzer-Tabellen gelöscht: Sollte TRUNCATE TABLE wg. Referenzen oä. nicht funktionieren kann es durch das etwas langsamere DELETE FROM ersetzt werden. Bevor man das Script ausführt sollte man mehrfach Prüfen das man in der richtigen Datenbank / auf dem richtigen SQL Server ist. DECLARE &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2008/09/26/den-inhalt-aller-tabellen-einer-microsoft-sql-datenbank-loschen/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2008/09/26/den-inhalt-aller-tabellen-einer-microsoft-sql-datenbank-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sichten und Vernichten</title>
		<link>http://ralf.stormbind.net/2008/05/03/sichten-und-vernichten/</link>
		<comments>http://ralf.stormbind.net/2008/05/03/sichten-und-vernichten/#comments</comments>
		<pubDate>Sat, 03 May 2008 16:14:42 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Hirndefekt]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/2008/05/03/sichten-und-vernichten/</guid>
		<description><![CDATA[Eine sehr übersichtliche <a href="http://de.wikipedia.org/wiki/Sicht_(Datenbank)">SQL Sicht</a>:
<center><img src="/junk/sichten-und-vernichten.jpg" alt="SQL Sicht" /></center>
]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2008/05/03/sichten-und-vernichten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Datenbank Offline Schalten</title>
		<link>http://ralf.stormbind.net/2008/01/13/microsoft-sql-datenbank-offline-schalten/</link>
		<comments>http://ralf.stormbind.net/2008/01/13/microsoft-sql-datenbank-offline-schalten/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 17:53:06 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/2008/01/13/microsoft-sql-datenbank-offline-schalten/</guid>
		<description><![CDATA[Folgendes SQL Script killt ALLE Prozesse die mit einer bestimmten SQL-Datenbank verbunden sind und schaltet die Datenbank offline. Da ich gerade nicht weiß wie man einen Datenbank namen als Objekt (DECLARE .. database) definiert muss man den Datenbanknamen zweimal angeben, einmal oben bei &#8220;SET @db..&#8221; und einmal unten bei &#8220;ALTER DATABASE&#8221;. USE [master] DECLARE @spid &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2008/01/13/microsoft-sql-datenbank-offline-schalten/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2008/01/13/microsoft-sql-datenbank-offline-schalten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prozesse von Microsoft SQL Server Killen</title>
		<link>http://ralf.stormbind.net/2008/01/12/prozesse-von-microsoft-sql-server-killen/</link>
		<comments>http://ralf.stormbind.net/2008/01/12/prozesse-von-microsoft-sql-server-killen/#comments</comments>
		<pubDate>Sat, 12 Jan 2008 19:13:15 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/2008/01/12/prozesse-von-microsoft-sql-server-killen/</guid>
		<description><![CDATA[Folgendes Script killt alle SQL-Prozesse einer bestimmten Anwendung / eines bestimmten Benutzers. MS-SQL macht teilweise richtig Spass DECLARE @spid int DECLARE CUR CURSOR FOR SELECT spid FROM sysprocesses WHERE program_name = 'Name der Anwendung' AND loginame = 'Name des SQL Benutzers' OPEN CUR FETCH NEXT FROM CUR INTO @spid WHILE @@FETCH_STATUS = 0 BEGIN EXECUTE &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2008/01/12/prozesse-von-microsoft-sql-server-killen/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2008/01/12/prozesse-von-microsoft-sql-server-killen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Server 2000 Partitionen</title>
		<link>http://ralf.stormbind.net/2007/12/31/microsoft-sql-server-2000-partitionen/</link>
		<comments>http://ralf.stormbind.net/2007/12/31/microsoft-sql-server-2000-partitionen/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 01:47:56 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/2007/12/31/microsoft-sql-server-2000-partitionen/</guid>
		<description><![CDATA[Da Wochenende war kam bei mir wiedermal der Spieltrieb durch. Ich wollte mir schon immer mal die Partitionierung von Tabellen im SQL Server 2000 näher anschauen. Vorweg sei zu erwähnen das die Paritionen erst mit SQL 2005 halbwegs vernünftig implementiert sind. Partitionen in SQL 2000 (oder gar SQL 7) haben folgende (gravierende Nachteile): Es müssen &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2007/12/31/microsoft-sql-server-2000-partitionen/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2007/12/31/microsoft-sql-server-2000-partitionen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nächste Freie Lücke in Datensätzen</title>
		<link>http://ralf.stormbind.net/2007/09/11/nachste-freie-lucke-in-datensatzen/</link>
		<comments>http://ralf.stormbind.net/2007/09/11/nachste-freie-lucke-in-datensatzen/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:03:52 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ralf.stormbind.net/2007/09/11/nachste-freie-lucke-in-datensatzen/</guid>
		<description><![CDATA[Folgendes SQL Statement ermittelt die nächsten freien Datensätze innerhalb einer teilweise gefüllten Tabelle: SELECT t1.id + 1 AS id FROM tabelle t1 WHERE t1.id + 1 NOT IN (SELECT t2.id FROM tabelle t2 WHERE t2.id = t1.id + 1) ORDER BY t1.id ASC Ausgebend davon das die tabelle bereits die id&#8217;s 1, 2, 4, 5 &#8230; </p><p><a class="more-link block-button" href="http://ralf.stormbind.net/2007/09/11/nachste-freie-lucke-in-datensatzen/">Weiterlesen &#187;</a>]]></description>
		<wfw:commentRss>http://ralf.stormbind.net/2007/09/11/nachste-freie-lucke-in-datensatzen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

