<?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>dbanotes.com &#187; SQL Server</title>
	<atom:link href="http://www.dbanotes.com/category/sqlserver-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbanotes.com</link>
	<description>Data expands knoweldge. Database technology is the tool we use.</description>
	<lastBuildDate>Sun, 01 Jan 2012 21:05:08 +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>What is a Database?</title>
		<link>http://www.dbanotes.com/database-administration/what-is-a-database/</link>
		<comments>http://www.dbanotes.com/database-administration/what-is-a-database/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 20:49:13 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Database Development]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dbanotes.com/?p=159</guid>
		<description><![CDATA[For the technical purpose of database developers and administrators, a database is simply a collection of operating system files. Database files are normally stored in a proprietary binary format that can only be mounted by an instance of the relational database software that created them. The purpose of the database instance is to to manage and [...]]]></description>
			<content:encoded><![CDATA[<p>For the technical purpose of database developers and administrators, a database is simply a collection of operating system files.</p>
<p>Database files are normally stored in a proprietary binary format that can only be mounted by an instance of the relational database software that created them.</p>
<p>The purpose of the database instance is to to manage and deliver the data held within the database files for the users.</p>
<p>Modern Relational Database Management Systems (RDBMS) provide a declarative natural language abstraction layer called SQL to query the data held within the database, and provides <strong>ACID</strong> (<em><a title="Atomicity (database systems)" href="http://en.wikipedia.org/wiki/Atomicity_(database_systems)">atomicity</a>, <a title="Consistency (database systems)" href="http://en.wikipedia.org/wiki/Consistency_(database_systems)">consistency</a>, <a title="Isolation (database systems)" href="http://en.wikipedia.org/wiki/Isolation_(database_systems)">isolation</a>, <a title="Durability (database systems)" href="http://en.wikipedia.org/wiki/Durability_(database_systems)">durability</a></em>) based transactions as a key feature and benefit over other alternatives for data storage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/database-administration/what-is-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking forward to SQL Server 2012</title>
		<link>http://www.dbanotes.com/sqlserver-database/looking-forward-to-sql-server-2012/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/looking-forward-to-sql-server-2012/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 20:15:44 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL 2012]]></category>

		<guid isPermaLink="false">http://www.dbanotes.com/?p=880</guid>
		<description><![CDATA[I finally got around to installing SQL Server 2012 RC 0 on VMware Fusion 4 yesterday. Like a kid on Christmas, I started looking for the enhancements that do not get much marketing attention, but will improve my development workflow or put an end to some administration pains. This is what I found so far: [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to installing SQL Server 2012 RC 0 on VMware Fusion 4 yesterday. Like a kid on Christmas, I started looking for the enhancements that do not get much marketing attention, but will improve my development workflow or put an end to some administration pains.</p>
<p>This is what I found so far:</p>
<ul>
<li>LocalDB</li>
<li>Sequences</li>
<li>SQL users without Instance logins</li>
<li>File Tables</li>
<li>THROW statement</li>
<li>Support for up to 15,000 partitions</li>
<li>Columnstore indexes</li>
<li>User-defined server roles</li>
<li>Default schemas for a Windows NT Group</li>
<li>ad-hoc query paging for SELECT statements</li>
<li>Support for importing and exporting Spatial data types natively using the SSMS Import/Export utility. For those of you wondering, this is a SSMS client enhancement and in my testing export/import of spatial tables worked between two SQL 2008 R2 databases where it would error on any table containing a spatial data type using the SSMS 2008 R2 client. Thank you SQL Dev Team.</li>
</ul>
<h3>New Functions:</h3>
<div>
<p>Conversion functions</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213316(v=SQL.110).aspx">PARSE (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh230993(v=SQL.110).aspx">TRY_CONVERT (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213126(v=SQL.110).aspx">TRY_PARSE (Transact-SQL)</a></li>
</ul>
<p>Date and time functions</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213228(v=SQL.110).aspx">DATEFROMPARTS (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213312(v=SQL.110).aspx">DATETIME2FROMPARTS (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213233(v=SQL.110).aspx">DATETIMEFROMPARTS (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh231077(v=SQL.110).aspx">DATETIMEOFFSETFROMPARTS (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213020(v=SQL.110).aspx">EOMONTH (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213396(v=SQL.110).aspx">SMALLDATETIMEFROMPARTS (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213398(v=SQL.110).aspx">TIMEFROMPARTS (Transact-SQL)</a></li>
</ul>
<p>Logical functions</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213019(v=SQL.110).aspx">CHOOSE (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213574(v=SQL.110).aspx">IIF (Transact-SQL)</a></li>
</ul>
<p>String functions</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/hh231515(v=SQL.110).aspx">CONCAT (Transact-SQL)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/hh213505(v=SQL.110).aspx">FORMAT (Transact-SQL)</a></li>
</ul>
</div>
<div>Analytic functions</div>
<div>
<table>
<tbody>
<tr>
<td><a href="http://msdn.microsoft.com/en-us/library/hh231078(v=SQL.110).aspx">CUME_DIST (Transact-SQL)</a></td>
<td><a href="http://msdn.microsoft.com/en-us/library/hh231517(v=SQL.110).aspx">LAST_VALUE (Transact-SQL)</a></td>
<td><a href="http://msdn.microsoft.com/en-us/library/hh231327(v=SQL.110).aspx">PERCENTILE_DISC (Transact-SQL)</a></td>
</tr>
<tr>
<td><a href="http://msdn.microsoft.com/en-us/library/hh213018(v=SQL.110).aspx">FIRST_VALUE (Transact-SQL)</a></td>
<td><a href="http://msdn.microsoft.com/en-us/library/hh213125(v=SQL.110).aspx">LEAD (Transact-SQL)</a></td>
<td><a href="http://msdn.microsoft.com/en-us/library/hh213573(v=SQL.110).aspx">PERCENT_RANK (Transact-SQL)</a></td>
</tr>
<tr>
<td><a href="http://msdn.microsoft.com/en-us/library/hh231256(v=SQL.110).aspx">LAG (Transact-SQL)</a></td>
<td><a href="http://msdn.microsoft.com/en-us/library/hh231473(v=SQL.110).aspx">PERCENTILE_CONT (Transact-SQL)</a></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div></div>
<h3>Still wishing for:</h3>
<div>
<ul>
<li>ALTER TYPE &#8211; Am I the only one that uses TVPs? Changing the database schema when using TVPs is a dependency nightmare and a mess to deploy the change. VS Ultimate helps, but I will always have reservations with making a change to objects, e.g., all the stored procedures dependent on the TVP, that are not actually having a code change. Please SQL Dev Team, consider prioritizing a usability enhancement for TVPs in the first service pack or R2.</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/looking-forward-to-sql-server-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a Schema in SQL Server 2005?</title>
		<link>http://www.dbanotes.com/sqlserver-database/what-is-a-schema-in-sql-server-2005/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/what-is-a-schema-in-sql-server-2005/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 17:39:34 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL 2005]]></category>

		<guid isPermaLink="false">http://dbanotes.com/?p=72</guid>
		<description><![CDATA[What is a Schema? In Microsoft SQL Server 2005, a schema is a collection of objects adhering to the ANSI SQL-92 standard. The ANSI SQL-92 standard defines a schema as a collection of database objects that are owned by a single principle and form a single namespace. All objects within a schema must be uniquely [...]]]></description>
			<content:encoded><![CDATA[<p>What is a Schema?</p>
<p>In Microsoft SQL Server 2005, a schema is a collection of objects adhering to the <a title="ANSI SQL 92 Standard" href="http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt" target="_blank">ANSI SQL-92 standard</a>.</p>
<p>The ANSI SQL-92 standard defines a schema as a collection of database objects that are owned by a single principle and form a single namespace.</p>
<p>All objects within a schema must be uniquely named and a schema must be uniquely named in the database catalog. SQL Server 2005 breaks the link between users and schemas, users do not own objects. <strong>Schemas own objects and principles own schemas.</strong></p>
<p>A schema can be owned by either a primary or secondary principle, with the term &#8220;principle&#8221; meaning any SQL Server entity that can access securable objects.</p>
<p>Principle types that can own schemas:</p>
<ul>
<li>Primary
<ul>
<li>SQL Server Login</li>
<li>Database User</li>
<li>Windows Login</li>
</ul>
</li>
<li>Secondary
<ul>
<li>SQL Server Roles</li>
<li>Windows Groups</li>
<li>Default Schemas</li>
</ul>
</li>
</ul>
<p>Users can now have a default schema assigned using the DEFAULT_SCHEMA option of CREATE USER and ALTER USER commands. If no default schema is supplied for a user then DBO will be used as the default schema.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>SQL Server 2005 Schema Objects</p>
<ul>
<li>Tables</li>
<li>Indexes</li>
<li>Views</li>
<li>Synonyms</li>
<li>Stored Procedures</li>
<li>Triggers</li>
<li>Functions</li>
<li>Assemblies</li>
<li>Types</li>
<li>Defaults</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/what-is-a-schema-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>SQL Server 2008 System Views Map</title>
		<link>http://www.dbanotes.com/sqlserver-database/sql-server-2008-system-views-map/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/sql-server-2008-system-views-map/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 02:43:21 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.dbanotes.com/?p=235</guid>
		<description><![CDATA[Download the SQL 2008 System View Map The Microsoft SQL Server 2008 System Views Map shows the key system views included in SQL Server 2008, and the relationships between them.]]></description>
			<content:encoded><![CDATA[<p><a title="Download SQL 2008 System Map" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=531c53e7-8a2a-4375-8f2f-5d799aa67b5c&amp;displaylang=en">Download the SQL 2008 System View Map</a></p>
<p><span>The Microsoft SQL Server 2008 System Views Map shows the key system views included in SQL Server 2008, and the relationships between them.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/sql-server-2008-system-views-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best New Features of SQL 2008</title>
		<link>http://www.dbanotes.com/sqlserver-database/best-new-features-of-sql-2008/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/best-new-features-of-sql-2008/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 01:44:28 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.dbanotes.com/?p=231</guid>
		<description><![CDATA[I am getting ready to upgrade an existing SQL 2005 application and have found the following SQL 2008 features worth more exploration: INSERT (Transact-SQL Row Constructors) &#8211; Allows the ability to add one or more new rows to a table or a view. Seems novel but not sure how useful in practice. MERGE Statement. This new Transact-SQL [...]]]></description>
			<content:encoded><![CDATA[<p>I am getting ready to upgrade an existing SQL 2005 application and have found the following SQL 2008 features worth more exploration:</p>
<ol>
<li><strong>INSERT</strong> (Transact-SQL Row Constructors) &#8211; Allows the ability to add one or more new rows to a table or a view. Seems novel but not sure how useful in practice.</li>
<li><strong>MERGE</strong> Statement. This new Transact-SQL statement performs INSERT, UPDATE, or DELETE operations on a target table based on the results of a join with a source table. Oracle has had this statement for years. I am glad Microsoft has finally added it to TSQL.</li>
<li><strong>Full-Text Search</strong>: Full-text search is now a fully integrated feature of a database. Wow that took forever. I still remember the 8 hour Microsoft support call back in 2002, that included my rant session to support about the need for 1. Logging, 2. Database integration.</li>
<li><strong>SP_DEPENDS</strong>: Identifies down to the columns of each table your stored procedure uses.</li>
</ol>
<p>Things I am still waiting for:</p>
<ol>
<li>Row Level Security</li>
<li>Something equivalent to the Oracle %ROWTYPE attribute in variable declarations as a datatype specifier.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/best-new-features-of-sql-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 Data Types</title>
		<link>http://www.dbanotes.com/sqlserver-database/sql-server-2005-data-types/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/sql-server-2005-data-types/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 21:54:32 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dbanotes.com/?p=92</guid>
		<description><![CDATA[SQL Server 2005 has the following data types available: Exact Numerics BIGINT INT SMALLINT TINYINT BIT bit DECIMAL NUMERIC MONEY SMALLMONEY Approximate Numerics FLOAT REAL Date and Time DATETIME SMALLDATETIME Character CHAR VARCHAR TEXT Unicode Character NCHAR NVARCHAR NTEXT Binary BINARY VARBINARY IMAGE Other CURSOR SQL_VARIANT TABLE TIMESTAMP UNIQUEIDENTIFIER XML]]></description>
			<content:encoded><![CDATA[<p>SQL Server 2005 has the following data types available:</p>
<ul>
<li><strong>Exact Numerics</strong>
<ul>
<li>BIGINT</li>
<li>INT</li>
<li>SMALLINT</li>
<li>TINYINT</li>
<li>BIT bit</li>
<li>DECIMAL</li>
<li>NUMERIC</li>
<li>MONEY</li>
<li>SMALLMONEY</li>
</ul>
</li>
<li><strong>Approximate Numerics</strong>
<ul>
<li>FLOAT</li>
<li>REAL</li>
</ul>
</li>
<li><strong>Date and Time</strong>
<ul>
<li>DATETIME</li>
<li>SMALLDATETIME</li>
</ul>
</li>
<li><strong>Character</strong>
<ul>
<li>CHAR</li>
<li>VARCHAR</li>
<li>TEXT</li>
</ul>
</li>
<li><strong>Unicode Character</strong>
<ul>
<li>NCHAR</li>
<li>NVARCHAR</li>
<li>NTEXT</li>
</ul>
</li>
<li><strong>Binary</strong>
<ul>
<li>BINARY</li>
<li>VARBINARY</li>
<li>IMAGE</li>
</ul>
</li>
<li><strong>Other </strong>
<ul>
<li>CURSOR</li>
<li>SQL_VARIANT</li>
<li>TABLE</li>
<li>TIMESTAMP</li>
<li>UNIQUEIDENTIFIER</li>
<li>XML</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/sql-server-2005-data-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All about SQL Server</title>
		<link>http://www.dbanotes.com/sqlserver-database/sql-server-a-new-platform-arrives/</link>
		<comments>http://www.dbanotes.com/sqlserver-database/sql-server-a-new-platform-arrives/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 22:35:22 +0000</pubDate>
		<dc:creator>Michael Ritacco</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dbanotes.com/wp/?p=30</guid>
		<description><![CDATA[SQL Server is not yet Oracle but it does provide a key piece of the Microsoft developer platform. It must be judged for what it is, and that is a great database if designed within its limitations.]]></description>
			<content:encoded><![CDATA[<p>SQL Server is not yet Oracle but it does provide a key piece of the Microsoft developer platform. It must be judged for what it is, and that is a great database if designed within its limitations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbanotes.com/sqlserver-database/sql-server-a-new-platform-arrives/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

