<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bogy Weblog &#187; SQL</title>
	<atom:link href="http://bagalaty.wordpress.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://bagalaty.wordpress.com</link>
	<description>What i Learn is what You See</description>
	<lastBuildDate>Sun, 25 Oct 2009 21:59:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bagalaty.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/8e8cbfd23199c6a87395dd1db30e4f93?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bogy Weblog &#187; SQL</title>
		<link>http://bagalaty.wordpress.com</link>
	</image>
			<item>
		<title>News In SQL 2008</title>
		<link>http://bagalaty.wordpress.com/2009/10/25/news-in-sql-2008/</link>
		<comments>http://bagalaty.wordpress.com/2009/10/25/news-in-sql-2008/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 21:48:58 +0000</pubDate>
		<dc:creator>أبو رحمـــــــة - روح الفـــــؤاد</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[insert statment]]></category>
		<category><![CDATA[new sql feature]]></category>
		<category><![CDATA[sql 2008]]></category>
		<category><![CDATA[sql 2008 feature]]></category>

		<guid isPermaLink="false">http://bagalaty.wordpress.com/?p=267</guid>
		<description><![CDATA[you can run this insert statement :
insert into tablename(col1,col2,col3)
values(1,&#8221;Ahmed&#8221;,&#8221;Bagalaty&#8221;),
(2,&#8221;SQL&#8221;,&#8221;2008&#8243;),
(3,&#8221;Rahma&#8221;,&#8221;Bagalaty&#8221;)       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=267&subd=bagalaty&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>you can run this insert statement :</p>
<p>insert into tablename(col1,col2,col3)</p>
<p>values(1,&#8221;Ahmed&#8221;,&#8221;Bagalaty&#8221;),</p>
<p>(2,&#8221;SQL&#8221;,&#8221;2008&#8243;),</p>
<p>(3,&#8221;Rahma&#8221;,&#8221;Bagalaty&#8221;)</p>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bagalaty.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bagalaty.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bagalaty.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bagalaty.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bagalaty.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bagalaty.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bagalaty.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bagalaty.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bagalaty.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bagalaty.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=267&subd=bagalaty&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bagalaty.wordpress.com/2009/10/25/news-in-sql-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cc6961f43d159fbde341b166c79c341?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">أبو رحمـــــــة - روح الفـــــؤاد</media:title>
		</media:content>
	</item>
		<item>
		<title>Some SQL Statments (Up-to-date)</title>
		<link>http://bagalaty.wordpress.com/2008/05/15/sql-statments/</link>
		<comments>http://bagalaty.wordpress.com/2008/05/15/sql-statments/#comments</comments>
		<pubDate>Thu, 15 May 2008 13:23:04 +0000</pubDate>
		<dc:creator>أبو رحمـــــــة - روح الفـــــؤاد</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[copy tables]]></category>
		<category><![CDATA[copy tables From Database To other]]></category>
		<category><![CDATA[get last row]]></category>
		<category><![CDATA[last row]]></category>
		<category><![CDATA[SQL identification]]></category>
		<category><![CDATA[sql last row]]></category>

		<guid isPermaLink="false">http://bagalaty.wordpress.com/?p=39</guid>
		<description><![CDATA[1- To Get the Last Record in table name test for Example With columns ( testId,testName )
then write the select statment :

SELECT testid,testName FROM test WHERE testid=( SELECT MAX( testid ) FROM test )
you can also use the Following statment :
SELECT Top 1 testid,testName FROM test ORDER BY testid DESC
2- To copy tables From Database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=39&subd=bagalaty&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>1- To Get the Last Record in table name test for Example With columns ( testId,testName )</strong></p>
<p>then write the select statment :</p>
<p><span id="more-39"></span></p>
<p>SELECT testid,testName FROM test WHERE testid=( SELECT MAX( testid ) FROM test )</p>
<p>you can also use the Following statment :</p>
<p>SELECT Top 1 testid,testName FROM test ORDER BY testid DESC</p>
<p><strong>2- To copy tables From Database To other :</strong></p>
<p>SELECT   * into TargetTable<br />
FROM        hrdb.dbo.SourceTable</p>
<p>we want to copy the table hrEmployees from the database HR to Created Table tblEmployees in Accounting Database for Example:</p>
<p>SELECT   * into tblEmployees<br />
FROM        hrdb.dbo.hrEmployees</p><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bagalaty.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bagalaty.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bagalaty.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bagalaty.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bagalaty.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bagalaty.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bagalaty.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bagalaty.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bagalaty.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bagalaty.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bagalaty.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bagalaty.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=39&subd=bagalaty&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bagalaty.wordpress.com/2008/05/15/sql-statments/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cc6961f43d159fbde341b166c79c341?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">أبو رحمـــــــة - روح الفـــــؤاد</media:title>
		</media:content>
	</item>
		<item>
		<title>Connection Strings</title>
		<link>http://bagalaty.wordpress.com/2008/04/22/connection-strings/</link>
		<comments>http://bagalaty.wordpress.com/2008/04/22/connection-strings/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 13:54:40 +0000</pubDate>
		<dc:creator>أبو رحمـــــــة - روح الفـــــؤاد</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Active Directory Service]]></category>
		<category><![CDATA[Connection]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://bagalaty.wordpress.com/?p=23</guid>
		<description><![CDATA[Microsoft SQL Server File ( Local Machine)
Data Source =(Local); Initial Catalog=Database Name;Integrated Security =SSPI
or
Data Source = . ; Initial Catalog=Database Name;Integrated Security =SSPI

Microsoft SQL Server (Server):
Server=(HostName) ; Database = DatabaseName ; Trusted Connection = yes
Active Directory Service (OLEDB):
Provider=ADSDSobject ; User id = username ; password = password
Microsoft JET (Access) (OLEDB)
provider = Microsoft.Jet.OLEDB.4.0 ; Data Source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=23&subd=bagalaty&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><em><strong>Microsoft SQL Server File ( Local Machine)</strong></em><br />
<code>Data Source =(Local); Initial Catalog=Database Name;Integrated Security =SSPI<br />
or<br />
Data Source = . ; Initial Catalog=Database Name;Integrated Security =SSPI</code></p>
<p><code><span id="more-23"></span></code></p>
<p><em><strong>Microsoft SQL Server (Server):</strong></em><br />
<code>Server=(HostName) ; Database = DatabaseName ; Trusted Connection = yes</code></p>
<p><em><strong>Active Directory Service (OLEDB):</strong></em><br />
<code>Provider=ADSDSobject ; User id = username ; password = password</code></p>
<p><em><strong>Microsoft JET (Access) (OLEDB)</strong></em><br />
<code>provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = C:\somepath\filename.mdb</code></p>
<p><em><strong>Microsoft Excel</strong></em><br />
<code>Provider=Microsoft.JET.OLEDB.4.0 ; Data Source = c:\SomePath\FileName.xls;<br />
Extented Properties = "Excel 8.0 HDR = Yes"</code></p><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bagalaty.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bagalaty.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bagalaty.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bagalaty.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bagalaty.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bagalaty.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bagalaty.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bagalaty.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bagalaty.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bagalaty.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bagalaty.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bagalaty.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bagalaty.wordpress.com&blog=3124414&post=23&subd=bagalaty&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bagalaty.wordpress.com/2008/04/22/connection-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cc6961f43d159fbde341b166c79c341?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">أبو رحمـــــــة - روح الفـــــؤاد</media:title>
		</media:content>
	</item>
	</channel>
</rss>