<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Chinook Database</title><link>http://chinookdatabase.codeplex.com/Project/ProjectRss.aspx</link><description>Chinook is a sample database available for SQL Server, Oracle and MySQL. It can be created by running a single SQL script. Chinook database is an alternative to the Northwind database, being ideal ...</description><item><title>New Post: DROP DATABASE if database exists (SQLServer)</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=75798</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;If I start CreateDB.sql and database already exists and used (connections to database is opened) database not droped&lt;/p&gt;
&lt;p&gt;Solution could be add additional logic&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CreateDb.sql LINE:10&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'Chinook')&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;BEGIN&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;ALTER DATABASE [Chinook]&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;SET OFFLINE&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;WITH ROLLBACK IMMEDIATE;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;ALTER DATABASE [Chinook]&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;&amp;nbsp;SET ONLINE; &amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;DROP DATABASE [Chinook];&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;END&amp;nbsp;&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;CREATE DATABASE [Chinook];&lt;/div&gt;
&lt;p&gt;
&lt;p&gt;IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'Chinook')&lt;/p&gt;
&lt;p&gt;BEGIN&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Take database offline ignoring any connection made&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ALTER DATABASE [Chinook]&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;SET OFFLINE&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;WITH ROLLBACK IMMEDIATE;&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;-&lt;/span&gt;-Bring online before delete&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ALTER DATABASE [Chinook]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;SET ONLINE; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;DROP DATABASE [Chinook];&amp;nbsp;&lt;/p&gt;
&lt;p&gt;END&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CREATE DATABASE [Chinook];&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>sadkamikaze</author><pubDate>Sat, 21 Nov 2009 13:46:24 GMT</pubDate><guid isPermaLink="false">New Post: DROP DATABASE if database exists (SQLServer) 20091121014624P</guid></item><item><title>Patch Uploaded: #3717</title><link>http://chinookdatabase.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/NelsonCabral'&gt;NelsonCabral&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;SQLite version 0.1&lt;br /&gt;Commented out two parts &amp;#58;&lt;br /&gt;- initial db drop and create, it looks like I cannot &amp;#39;create a db&amp;#39; in a sqlite file, as a file &amp;#61; a db&lt;br /&gt;- foreign keys constraints. SQLite doesn&amp;#39;t support directly foreign keys, see http&amp;#58;&amp;#47;&amp;#47;www.justatheory.com&amp;#47;computers&amp;#47;databases&amp;#47;sqlite&amp;#47;foreign_key_triggers.html for a way to implement them with trigger&lt;br /&gt;Easy test with firefox&amp;#39;s sqlite manager extension&lt;/p&gt;</description><author>NelsonCabral</author><pubDate>Sun, 30 Aug 2009 11:50:07 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #3717 20090830115007A</guid></item><item><title>New Post: SQLite?</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=67373</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Yes, sure! If you have already a SQLite version and want to share it, I can include it on the next version. Thanks!&lt;/p&gt;
&lt;p&gt;Luis&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>lerocha</author><pubDate>Sat, 29 Aug 2009 19:19:56 GMT</pubDate><guid isPermaLink="false">New Post: SQLite? 20090829071956P</guid></item><item><title>New Post: SQLite?</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=67373</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Are you interested in the SQLite version of your Chinook db?&lt;/p&gt;&lt;/div&gt;</description><author>NelsonCabral</author><pubDate>Sat, 29 Aug 2009 17:14:26 GMT</pubDate><guid isPermaLink="false">New Post: SQLite? 20090829051426P</guid></item><item><title>Created Issue: Indexes based on primary keys should be UNIQUE</title><link>http://chinookdatabase.codeplex.com/WorkItem/View.aspx?WorkItemId=24257</link><description>If not, ORM tools like CodeSmith do not work as expected &amp;#40;as a non-unique index indicates that more rows will be returned per key&amp;#41;. I had planned to feature Chinook in a blog post, but this must be fixed for the following tables&amp;#47;indexes, before I can do that&amp;#58;&lt;br /&gt;&lt;br /&gt;CREATE INDEX IPK_Genre ON Genre&amp;#40;GenreId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_MediaType ON MediaType&amp;#40;MediaTypeId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Artist ON Artist&amp;#40;ArtistId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_ProductItem ON Album&amp;#40;AlbumId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Track ON Track&amp;#40;TrackId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Employee ON Employee&amp;#40;EmployeeId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Customer ON Customer&amp;#40;CustomerId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Invoice ON Invoice&amp;#40;InvoiceId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_InvoiceLine ON InvoiceLine&amp;#40;InvoiceLineId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_Playlist ON Playlist&amp;#40;PlaylistId&amp;#41;&amp;#59;&lt;br /&gt;CREATE INDEX IPK_PlaylistTrack ON PlaylistTrack&amp;#40;PlaylistId&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;should be&lt;br /&gt;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Genre ON Genre&amp;#40;GenreId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_MediaType ON MediaType&amp;#40;MediaTypeId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Artist ON Artist&amp;#40;ArtistId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_ProductItem ON Album&amp;#40;AlbumId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Track ON Track&amp;#40;TrackId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Employee ON Employee&amp;#40;EmployeeId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Customer ON Customer&amp;#40;CustomerId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Invoice ON Invoice&amp;#40;InvoiceId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_InvoiceLine ON InvoiceLine&amp;#40;InvoiceLineId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_Playlist ON Playlist&amp;#40;PlaylistId&amp;#41;&amp;#59;&lt;br /&gt;CREATE UNIQUE INDEX IPK_PlaylistTrack ON PlaylistTrack&amp;#40;PlaylistId&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Likewise, the enclosed chinook.sdf file needs to be recreated.&lt;br /&gt;</description><author>ErikEJ</author><pubDate>Mon, 10 Aug 2009 14:14:48 GMT</pubDate><guid isPermaLink="false">Created Issue: Indexes based on primary keys should be UNIQUE 20090810021448P</guid></item><item><title>New Post: Domain model ?</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=61326</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;No, there is no domain model for it. There is just the physical database schema:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://chinookdatabase.codeplex.com/Wiki/View.aspx?title=Chinook_Schema"&gt;http://chinookdatabase.codeplex.com/Wiki/View.aspx?title=Chinook_Schema&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>lerocha</author><pubDate>Tue, 07 Jul 2009 03:44:47 GMT</pubDate><guid isPermaLink="false">New Post: Domain model ? 20090707034447A</guid></item><item><title>New Post: Domain model ?</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=61326</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Do you know is there is, in some place, a domain model of Chinook ?&lt;/p&gt;&lt;/div&gt;</description><author>fabiomaulo</author><pubDate>Thu, 02 Jul 2009 16:28:07 GMT</pubDate><guid isPermaLink="false">New Post: Domain model ? 20090702042807P</guid></item><item><title>Source code checked in, #50685</title><link>http://chinookdatabase.codeplex.com/SourceControl/ListDownloadableCommits.aspx</link><description>Renaming T4 template include file to use .ttinclude extension and fixing issue to generate files with UTF16 encoding.</description><author>lerocha</author><pubDate>Sat, 16 May 2009 23:53:47 GMT</pubDate><guid isPermaLink="false">Source code checked in, #50685 20090516115347P</guid></item><item><title>Source code checked in, #49579</title><link>http://chinookdatabase.codeplex.com/SourceControl/ListDownloadableCommits.aspx</link><description>Auto-generating the main T4 template file &amp;#40;chinook.t4&amp;#41; from the ChinookMetadata assembly and refactoring existing T4 templates to include Chinook.t4.</description><author>lerocha</author><pubDate>Tue, 28 Apr 2009 05:04:29 GMT</pubDate><guid isPermaLink="false">Source code checked in, #49579 20090428050429A</guid></item><item><title>Created Feature: Feature Request: Schema change to allow implementation of inheritance mapping strategies</title><link>http://chinookdatabase.codeplex.com/WorkItem/View.aspx?WorkItemId=22184</link><description>This request is from Rub member of the uNhAddIns project &amp;#40;Unofficial addins for NHibernate&amp;#41;&amp;#58; http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;unhaddins&amp;#47;&lt;br /&gt;&lt;br /&gt;Change the schema to allow developers to implement the three basic strategies for inheritance mapping&amp;#58;&lt;br /&gt;&lt;br /&gt;1. Table per Class Hierarchy&lt;br /&gt;2. Table per Subclass&lt;br /&gt;3. Table per Concrete Class&lt;br /&gt;&lt;br /&gt;For more info, see&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;www.nhforge.org&amp;#47;doc&amp;#47;nh&amp;#47;en&amp;#47;index.html&amp;#35;inheritance&lt;br /&gt;</description><author>lerocha</author><pubDate>Sun, 26 Apr 2009 22:30:24 GMT</pubDate><guid isPermaLink="false">Created Feature: Feature Request: Schema change to allow implementation of inheritance mapping strategies 20090426103024P</guid></item><item><title>Created Feature: Support for NHibernate using HiLo generator</title><link>http://chinookdatabase.codeplex.com/WorkItem/View.aspx?WorkItemId=22115</link><description>This request is from Rub member of the uNhAddIns project &amp;#40;Unofficial addins for NHibernate&amp;#41;&amp;#58; http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;unhaddins&amp;#47;&lt;br /&gt;&lt;br /&gt;The current scripts use Identity to auto-generate primary keys. Although NHibernate supports Identity, it is not a good solution for it, as described below&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;nhforge.org&amp;#47;blogs&amp;#47;nhibernate&amp;#47;archive&amp;#47;2008&amp;#47;12&amp;#47;21&amp;#47;identity-the-never-ending-story.aspx&lt;br /&gt;&lt;br /&gt;We need to add support for nhibernate HiLo generation. For example, the Genre table would be&amp;#58;&lt;br /&gt;&lt;br /&gt;CREATE TABLE Genre &lt;br /&gt;&amp;#40; &lt;br /&gt;    GenreId INTEGER NOT NULL, &amp;#47;&amp;#47;  IDENTITY - no identity  here &lt;br /&gt;    Name NVARCHAR&amp;#40;120&amp;#41;,&lt;br /&gt;    PRIMARY KEY&amp;#40;GenreId&amp;#41;&lt;br /&gt;&amp;#41;&amp;#59;&lt;br /&gt;</description><author>lerocha</author><pubDate>Mon, 20 Apr 2009 05:15:15 GMT</pubDate><guid isPermaLink="false">Created Feature: Support for NHibernate using HiLo generator 20090420051515A</guid></item><item><title>Created Feature: Feature Request</title><link>http://chinookdatabase.codeplex.com/WorkItem/View.aspx?WorkItemId=22114</link><description>Feature requests by Evoluteur&amp;#58;&lt;br /&gt;- script to drop all tables &amp;#40;because it needs to drop ref integrity first&amp;#41;.&lt;br /&gt;- triggers to update order total.&lt;br /&gt;- a few records in Chinese or Japanese&lt;br /&gt;</description><author>lerocha</author><pubDate>Mon, 20 Apr 2009 04:55:25 GMT</pubDate><guid isPermaLink="false">Created Feature: Feature Request 20090420045525A</guid></item><item><title>New Post: Live web demo</title><link>http://chinookdatabase.codeplex.com/Thread/View.aspx?ThreadId=52242</link><description>&lt;div style="line-height: normal;"&gt;Great database for demos. I've just used it for a demo of my CRUD framework. Thanks.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://evolutility.org/Chinook/Chinook_by_Evolutility.aspx"&gt;http://evolutility.org/Chinook/Chinook_by_Evolutility.aspx&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>evoluteur</author><pubDate>Fri, 03 Apr 2009 21:58:11 GMT</pubDate><guid isPermaLink="false">New Post: Live web demo 20090403095811P</guid></item><item><title>Updated Release: Chinook Database 1.1 (Jan 04, 2009)</title><link>http://www.codeplex.com/ChinookDatabase/Release/ProjectReleases.aspx?ReleaseId=21111</link><description>&lt;div&gt;
This is a sample database available for SQL Server, Oracle and MySQL. It can be created by running a single SQL script. You can see the Chinook database schema &lt;a href="http://www.codeplex.com/ChinookDatabase/Wiki/View.aspx?title=Chinook_Schema"&gt;here&lt;/a&gt;.&lt;br&gt; &lt;br&gt;The zip file above contains SQL scripts and batch files for each database supported. It also contains the data in XML format, see &lt;b&gt;SampleData\ChinookData.xml&lt;/b&gt;, and a SQL Server Compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;.&lt;br&gt;&lt;h2&gt;
What is new?
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Support for SQL Server Compact.&lt;/li&gt;&lt;li&gt;Additional customers from multiple countries.&lt;/li&gt;&lt;li&gt;Added a many-to-many relationship (a Playlist contains many Tracks, a Track belongs to many Playlists).&lt;/li&gt;&lt;li&gt;Added a one-to-many relationship between Employee and Customer (support representative).&lt;/li&gt;&lt;li&gt;Added Total field to invoice table.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Supported Database Servers
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;&lt;li&gt;Oracle&lt;/li&gt;&lt;li&gt;SQL Server&lt;/li&gt;&lt;li&gt;SQL Server Compact&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
How do I Create the Chinook Database?
&lt;/h2&gt;Download and extract the zip file above. Under the &lt;b&gt;Script&lt;/b&gt; folder, there are two files per database server: a SQL script, &lt;b&gt;CreateDB.sql&lt;/b&gt;, and a batch file, &lt;b&gt;CreateDB.bat&lt;/b&gt;. You can either run the SQL script by using your preferred database tool or run the provided batch file. &lt;br&gt; &lt;br&gt;The batch files use the database server command tool (&lt;b&gt;mysql.exe&lt;/b&gt; for MySQL, &lt;b&gt;sqlcmd.exe&lt;/b&gt; for SQL Server, and &lt;b&gt;sqlplus.exe&lt;/b&gt; for Oracle). If you are using Windows Vista, it is recommended to open a Command Prompt window as Administrator in order to run these batch files.&lt;br&gt; &lt;br&gt;For SQL Server Compact, we included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use its &lt;b&gt;CreateTables.sqlce&lt;/b&gt; script.&lt;br&gt;&lt;h2&gt;
Notes for MySQL Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://dev.mysql.com/downloads/mysql/5.1.html"&gt;MySQL Server 5.1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.bat&lt;/b&gt; file uses the localhost server, and the &lt;b&gt;root&lt;/b&gt; user with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this file to match your settings before running it.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for Oracle Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.oracle.com/technology/products/database/xe/index.html"&gt;Oracle Database 10g Express Edition (XE)&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.sql&lt;/b&gt; creates a new user &lt;b&gt;chinook&lt;/b&gt;, with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this script if you want a different user/password.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7522a683-4cb2-454e-b908-e805e9bd4e28&amp;DisplayLang=en"&gt;SQL Server Express 2008&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Compact Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/Sqlserver/2008/en/us/compact.aspx"&gt;SQL Server Compact 3.5 SP1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;We included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use the &lt;b&gt;CreateTables.sqlce&lt;/b&gt; script with &lt;a href="http://msdn.microsoft.com/en-us/library/ms365247.aspx"&gt;SQL Server Management Studio Express&lt;span&gt;&lt;/span&gt;&lt;/a&gt; tool.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>lerocha</author><pubDate>Sun, 11 Jan 2009 19:25:55 GMT</pubDate><guid isPermaLink="false">Updated Release: Chinook Database 1.1 (Jan 04, 2009) 20090111072555P</guid></item><item><title>Released: Chinook Database 1.1 (Jan 04, 2009)</title><link>http://www.codeplex.com/ChinookDatabase/Release/ProjectReleases.aspx?ReleaseId=21111</link><description>&lt;div&gt;
This is a sample database available for SQL Server, Oracle and MySQL. It can be created by running a single SQL script. You can see the Chinook database schema &lt;a href="http://www.codeplex.com/ChinookDatabase/Wiki/View.aspx?title=Chinook_Schema"&gt;here&lt;/a&gt;.&lt;br&gt; &lt;br&gt;The zip file above contains SQL scripts and batch files for each database supported. It also contains the data in XML format, see &lt;b&gt;SampleData\ChinookData.xml&lt;/b&gt;, and a SQL Server Compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;.&lt;br&gt;&lt;h2&gt;
What is new?
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Support for SQL Server Compact.&lt;/li&gt;&lt;li&gt;Additional customers from multiple countries.&lt;/li&gt;&lt;li&gt;Added a many-to-many relationship (a Playlist contains many Tracks, a Track belongs to many Playlists).&lt;/li&gt;&lt;li&gt;Added a one-to-many relationship between Employee and Customer (support representative).&lt;/li&gt;&lt;li&gt;Added Total field to invoice table.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Supported Database Servers
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;&lt;li&gt;Oracle&lt;/li&gt;&lt;li&gt;SQL Server&lt;/li&gt;&lt;li&gt;SQL Server Compact&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
How do I Create the Chinook Database?
&lt;/h2&gt;Download and extract the zip file above. Under the &lt;b&gt;Script&lt;/b&gt; folder, there are two files per database server: a SQL script, &lt;b&gt;CreateDB.sql&lt;/b&gt;, and a batch file, &lt;b&gt;CreateDB.bat&lt;/b&gt;. You can either run the SQL script by using your preferred database tool or run the provided batch file. &lt;br&gt; &lt;br&gt;The batch files use the database server command tool (&lt;b&gt;mysql.exe&lt;/b&gt; for MySQL, &lt;b&gt;sqlcmd.exe&lt;/b&gt; for SQL Server, and &lt;b&gt;sqlplus.exe&lt;/b&gt; for Oracle). If you are using Windows Vista, it is recommended to open a Command Prompt window as Administrator in order to run these batch files.&lt;br&gt; &lt;br&gt;For SQL Server Compact, we included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use its &lt;b&gt;CreateTables.sqlce&lt;/b&gt; script.&lt;br&gt;&lt;h2&gt;
Notes for MySQL Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://dev.mysql.com/downloads/mysql/5.1.html"&gt;MySQL Server 5.1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.bat&lt;/b&gt; file uses the localhost server, and the &lt;b&gt;root&lt;/b&gt; user with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this file to match your settings before running it.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for Oracle Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.oracle.com/technology/products/database/xe/index.html"&gt;Oracle Database 10g Express Edition (XE)&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.sql&lt;/b&gt; creates a new user &lt;b&gt;chinook&lt;/b&gt;, with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this script if you want a different user/password.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7522a683-4cb2-454e-b908-e805e9bd4e28&amp;DisplayLang=en"&gt;SQL Server Express 2008&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Compact Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/Sqlserver/2008/en/us/compact.aspx"&gt;SQL Server Compact 3.5 SP1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;We included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use the &lt;b&gt;CreateTables.sqlce&lt;/b&gt; script with &lt;a href="http://msdn.microsoft.com/en-us/library/ms365247.aspx"&gt;SQL Server Management Studio Express&lt;span&gt;&lt;/span&gt;&lt;/a&gt; tool.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author></author><pubDate>Sun, 11 Jan 2009 19:25:55 GMT</pubDate><guid isPermaLink="false">Released: Chinook Database 1.1 (Jan 04, 2009) 20090111072555P</guid></item><item><title>Updated Release: Chinook Database 1.1 (Jan 04, 2009)</title><link>http://www.codeplex.com/ChinookDatabase/Release/ProjectReleases.aspx?ReleaseId=21111</link><description>&lt;div&gt;
This is a sample database available for SQL Server, Oracle and MySQL. It can be created by running a single SQL script. You can see the Chinook database schema &lt;a href="http://www.codeplex.com/ChinookDatabase/Wiki/View.aspx?title=Chinook_Schema"&gt;here&lt;/a&gt;.&lt;br&gt; &lt;br&gt;The zip file above contains SQL scripts and batch files for each database supported. It also contains the data in XML format, see &lt;b&gt;SampleData\ChinookData.xml&lt;/b&gt;, and a SQL Server Compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;.&lt;br&gt;&lt;h2&gt;
What is new?
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Support for SQL Server Compact.&lt;/li&gt;&lt;li&gt;Additional customers from multiple countries.&lt;/li&gt;&lt;li&gt;Added a many-to-many relationship (a Playlist contains many Tracks, a Track belongs to many Playlists).&lt;/li&gt;&lt;li&gt;Added a one-to-many relationship between Employee and Customer (support representative).&lt;/li&gt;&lt;li&gt;Added Total field to invoice table.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Supported Database Servers
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;&lt;li&gt;Oracle&lt;/li&gt;&lt;li&gt;SQL Server&lt;/li&gt;&lt;li&gt;SQL Server Compact&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
How do I Create the Chinook Database?
&lt;/h2&gt;Download and extract the zip file above. Under the &lt;b&gt;Script&lt;/b&gt; folder, there are two files per database server: a SQL script, &lt;b&gt;CreateDB.sql&lt;/b&gt;, and a batch file, &lt;b&gt;CreateDB.bat&lt;/b&gt;. You can either run the SQL script by using your preferred database tool or run the provided batch file. &lt;br&gt; &lt;br&gt;The batch files use the database server command tool (&lt;b&gt;mysql.exe&lt;/b&gt; for MySQL, &lt;b&gt;sqlcmd.exe&lt;/b&gt; for SQL Server, and &lt;b&gt;sqlplus.exe&lt;/b&gt; for Oracle). If you are using Windows Vista, it is recommended to open a Command Prompt window as Administrator in order to run these batch files.&lt;br&gt; &lt;br&gt;For SQL Server Compact, we included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use its &lt;b&gt;CreateDB.sql&lt;/b&gt; script.&lt;br&gt;&lt;h2&gt;
Notes for MySQL Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://dev.mysql.com/downloads/mysql/5.1.html"&gt;MySQL Server 5.1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.bat&lt;/b&gt; file uses the localhost server, and the &lt;b&gt;root&lt;/b&gt; user with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this file to match your settings before running it.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for Oracle Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.oracle.com/technology/products/database/xe/index.html"&gt;Oracle Database 10g Express Edition (XE)&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.sql&lt;/b&gt; creates a new user &lt;b&gt;chinook&lt;/b&gt;, with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this script if you want a different user/password.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7522a683-4cb2-454e-b908-e805e9bd4e28&amp;DisplayLang=en"&gt;SQL Server Express 2008&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Compact Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/Sqlserver/2008/en/us/compact.aspx"&gt;SQL Server Compact 3.5 SP1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;We included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use the &lt;i&gt;CreateTables.sql&lt;/i&gt; script with &lt;a href="http://msdn.microsoft.com/en-us/library/ms365247.aspx"&gt;SQL Server Management Studio Express&lt;span&gt;&lt;/span&gt;&lt;/a&gt; tool.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>lerocha</author><pubDate>Tue, 06 Jan 2009 03:08:40 GMT</pubDate><guid isPermaLink="false">Updated Release: Chinook Database 1.1 (Jan 04, 2009) 20090106030840A</guid></item><item><title>Released: Chinook Database 1.1 (Jan 04, 2009)</title><link>http://www.codeplex.com/ChinookDatabase/Release/ProjectReleases.aspx?ReleaseId=21111</link><description>&lt;div&gt;
This is a sample database available for SQL Server, Oracle and MySQL. It can be created by running a single SQL script. You can see the Chinook database schema &lt;a href="http://www.codeplex.com/ChinookDatabase/Wiki/View.aspx?title=Chinook_Schema"&gt;here&lt;/a&gt;.&lt;br&gt; &lt;br&gt;The zip file above contains SQL scripts and batch files for each database supported. It also contains the data in XML format, see &lt;b&gt;SampleData\ChinookData.xml&lt;/b&gt;, and a SQL Server Compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;.&lt;br&gt;&lt;h2&gt;
What is new?
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Support for SQL Server Compact.&lt;/li&gt;&lt;li&gt;Additional customers from multiple countries.&lt;/li&gt;&lt;li&gt;Added a many-to-many relationship (a Playlist contains many Tracks, a Track belongs to many Playlists).&lt;/li&gt;&lt;li&gt;Added a one-to-many relationship between Employee and Customer (support representative).&lt;/li&gt;&lt;li&gt;Added Total field to invoice table.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Supported Database Servers
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;&lt;li&gt;Oracle&lt;/li&gt;&lt;li&gt;SQL Server&lt;/li&gt;&lt;li&gt;SQL Server Compact&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
How do I Create the Chinook Database?
&lt;/h2&gt;Download and extract the zip file above. Under the &lt;b&gt;Script&lt;/b&gt; folder, there are two files per database server: a SQL script, &lt;b&gt;CreateDB.sql&lt;/b&gt;, and a batch file, &lt;b&gt;CreateDB.bat&lt;/b&gt;. You can either run the SQL script by using your preferred database tool or run the provided batch file. &lt;br&gt; &lt;br&gt;The batch files use the database server command tool (&lt;b&gt;mysql.exe&lt;/b&gt; for MySQL, &lt;b&gt;sqlcmd.exe&lt;/b&gt; for SQL Server, and &lt;b&gt;sqlplus.exe&lt;/b&gt; for Oracle). If you are using Windows Vista, it is recommended to open a Command Prompt window as Administrator in order to run these batch files.&lt;br&gt; &lt;br&gt;For SQL Server Compact, we included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use its &lt;b&gt;CreateDB.sql&lt;/b&gt; script.&lt;br&gt;&lt;h2&gt;
Notes for MySQL Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://dev.mysql.com/downloads/mysql/5.1.html"&gt;MySQL Server 5.1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.bat&lt;/b&gt; file uses the localhost server, and the &lt;b&gt;root&lt;/b&gt; user with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this file to match your settings before running it.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for Oracle Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.oracle.com/technology/products/database/xe/index.html"&gt;Oracle Database 10g Express Edition (XE)&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;CreateDB.sql&lt;/b&gt; creates a new user &lt;b&gt;chinook&lt;/b&gt;, with the password &lt;b&gt;p4ssw0rd&lt;/b&gt;. Change this script if you want a different user/password.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7522a683-4cb2-454e-b908-e805e9bd4e28&amp;DisplayLang=en"&gt;SQL Server Express 2008&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
Notes for SQL Server Compact Version
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;The provided script was tested using &lt;a href="http://www.microsoft.com/Sqlserver/2008/en/us/compact.aspx"&gt;SQL Server Compact 3.5 SP1&lt;span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;We included the compact database &lt;b&gt;SampleData\Chinook.sdf&lt;/b&gt;. If you prefer to create your own compact database, then you can use the &lt;i&gt;CreateTables.sql&lt;/i&gt; script with &lt;a href="http://msdn.microsoft.com/en-us/library/ms365247.aspx"&gt;SQL Server Management Studio Express&lt;span&gt;&lt;/span&gt;&lt;/a&gt; tool.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author></author><pubDate>Tue, 06 Jan 2009 03:08:40 GMT</pubDate><guid isPermaLink="false">Released: Chinook Database 1.1 (Jan 04, 2009) 20090106030840A</guid></item><item><title>Closed Issue: Error when creating database for the first time in SQL Server Express</title><link>http://www.codeplex.com/ChinookDatabase/WorkItem/View.aspx?WorkItemId=20453</link><description>When trying to create the Chinook Database for the first time &amp;#40;SQL Express only&amp;#41; we get the following error&amp;#58;&lt;br /&gt;&lt;br /&gt;Msg 911, Level 16, State 1, Server VM-MCPD&amp;#92;SQLEXPRESS, Line 13&lt;br /&gt;Could not locate entry in sysdatabases for database &amp;#39;Chinook&amp;#39;. No entry found with that name. Make sure that the name is entered correctly.&lt;br /&gt;&lt;br /&gt;The scripts for the other databases do not have this issue.&lt;br /&gt;&lt;br /&gt;Workaround&amp;#58;&lt;br /&gt;Edit the Scripts&amp;#92;SqlServer&amp;#92;CreateDB.sql and add the GO command line right after the CREATE DATABASE line&amp;#58;&lt;br /&gt;&lt;br /&gt;IF EXISTS &amp;#40;SELECT name FROM master.dbo.sysdatabases WHERE name &amp;#61; N&amp;#39;Chinook&amp;#39;&amp;#41; DROP DATABASE &amp;#91;Chinook&amp;#93;&amp;#59;&lt;br /&gt;CREATE DATABASE &amp;#91;Chinook&amp;#93;&amp;#59;&lt;br /&gt;GO&lt;br /&gt;</description><author>lerocha</author><pubDate>Tue, 06 Jan 2009 03:00:44 GMT</pubDate><guid isPermaLink="false">Closed Issue: Error when creating database for the first time in SQL Server Express 20090106030044A</guid></item><item><title>Source code checked in, #45543</title><link>http://www.codeplex.com/ChinookDatabase/SourceControl/ListDownloadableCommits.aspx</link><description>Work Item &amp;#35; 20453&amp;#58; Adding missing GO command in the SQL Server script. The missing command was causing the script to fail when creating the database for the first time.</description><author>lerocha</author><pubDate>Tue, 06 Jan 2009 03:00:42 GMT</pubDate><guid isPermaLink="false">Source code checked in, #45543 20090106030042A</guid></item><item><title>Created Issue: Error when creating database using SQL Express 2005</title><link>http://www.codeplex.com/ChinookDatabase/WorkItem/View.aspx?WorkItemId=20453</link><description>When trying to create the Chinook Database using SQL Express 2005 we get the following error&amp;#58;&lt;br /&gt;&lt;br /&gt;Msg 911, Level 16, State 1, Server VM-MCPD&amp;#92;SQLEXPRESS, Line 13&lt;br /&gt;Could not locate entry in sysdatabases for database &amp;#39;Chinook&amp;#39;. No entry found with that name. Make sure that the name is entered correctly.&lt;br /&gt;&lt;br /&gt;This only happens when&amp;#58;&lt;br /&gt;1. Using SQL Express 2005.&lt;br /&gt;2. It is the first time that the Chinook Database is created on the DB Server.&lt;br /&gt;&lt;br /&gt;Workaround&amp;#58;&lt;br /&gt;Edit the Scripts&amp;#92;SqlServer&amp;#92;CreateDB.sql and add the GO command line right after the CREATE DATABASE line&amp;#58;&lt;br /&gt;&lt;br /&gt;IF EXISTS &amp;#40;SELECT name FROM master.dbo.sysdatabases WHERE name &amp;#61; N&amp;#39;Chinook&amp;#39;&amp;#41; DROP DATABASE &amp;#91;Chinook&amp;#93;&amp;#59;&lt;br /&gt;CREATE DATABASE &amp;#91;Chinook&amp;#93;&amp;#59;&lt;br /&gt;GO&lt;br /&gt;</description><author>lerocha</author><pubDate>Mon, 05 Jan 2009 21:30:12 GMT</pubDate><guid isPermaLink="false">Created Issue: Error when creating database using SQL Express 2005 20090105093012P</guid></item></channel></rss>