You are on page 1of 5

CodePlexProject Hosting for Open Source Software

Register
Sign In

Chinook Database
HOME

SOURCE CODE

DOWNLOADS

DOCUMENTATION

DISCUSSIONS

ISSUES

PEOPLE

LICENSE
Page Info
Change History (all pages)
Follow (120)
Subscribe
Documentation Building_Scripts

Generating SQL scripts for the


Chinook Database
R EQUIRED T OOLS

Microsoft Visual Studio 2012

D ATABASE S ERVERS

SQL Server Express (already installed with Visual Studio).


Oracle Database 11g Express Edition (XE).
MySQL 5.5 Community Server: Choose all default settings when installing, but on the
MySQL Server Instance installer make sure to select:
o Best Support For Multilingualism
o Include Bin Directory in Windows PATH
Download the latest source code from here.
Open the Solution file ChinookDatabase.sln in Visual Studio.
If you want to use the data from your own iTunes library, then replace the
fileChinookDatabase\DataSources\_Xml\Source\iTunes Music Library.xml with
your version.
o In app.config, verify that the connection strings are matching any changes
you made to username/password above. Also, the Oracle connection string uses
the Express Edition, e.g. Data Source=xe. So, change it if you are using a
different Oracle edition.
On the Solution Explorer, click on your Solution and then click on the Transform All
Templates button at the Solution Explorer buttons bar.
Rebuild the solution.
Verify that your database servers are properly set:
o The batch file DataSources\CreateMySql.bat uses the root user with the
password p4ssw0rd.
o The generated Oracle SQL script creates a new user chinook, with the
password p4ssw0rd. You might want to change this to use a different
user/password.
Create the database using the appropriate scripts.
Run the database tests in ChinookDatabase.Test to make sure your database was
created properly.

Last edited Oct 14, 2012 at 2:26 AM by lerocha, version 18

COMMENTS

No comments yet.

Sign in to add a comment

SYSTEM REQUIREMENTS

FOR DEVELOPMENT
Visual Studio 2012
SQL Server 2008 Express
Oracle Database 11g Express Edition Release 2 (XE)
MySQL Community Server 5.5.28
SQLite 3.7 Command Line
DB2 Express-C
PostgreSQL

2006-2017 Microsoft
Get Help
Privacy Statement
Terms of Use
Code of Conduct
Advertise With Us
Version 8.21.2015.21031

CodePlexProject Hosting for Open Source Software


Register
Sign In

Chinook Database
HOME

SOURCE CODE

DOWNLOADS

DOCUMENTATION

DISCUSSIONS

ISSUES

PEOPLE

LICENSE
Page Info
Change History (all pages)
Follow (120)
Subscribe
Documentation Create_Databases

H OW DO I C REATE THE C HINOOK D ATABASE ?

Download and extract the zip file from the Downloads tab. It is provided one or more SQL
script file for each database vendor supported. You can run these SQL scripts with your
preferred database tool.

For SQL Server, Oracle, MySQL and SQLite, there are available batch files that will execute
the respective SQL script(s). These batch files use the database server command tool
(mysql.exe for MySQL, sqlcmd.exe for SQL Server, sqlplus.exe for Oracle,
and sqlite3.exe for SQLite). If you are using Windows Vista/2008/7, it is recommended to
open a Command Prompt window as Administrator in order to run these batch files.

For embedded databases, SQLite and SQL Server Compact, it is also provided the embedded
database files in addition to the SQL script files.

N OTES FOR M Y SQL V ERSION

The provided scripts were tested using MySQL Server 5.1.


The CreateMySql.bat file uses the localhost server, and the root user with the
password p4ssw0rd. Change this file to match your settings before running it.

N OTES FOR O RACLE V ERSION

The provided script was tested using Oracle Database 10g Express Edition (XE).
The CreateOracle.sql creates a new user chinook, with the password p4ssw0rd.
Change this script if you want a different user/password.

N OTES FOR SQL S ERVER V ERSION

The provided script was tested using SQL Server Express 2008.

N OTES FOR SQL S ERVER C OMPACT V ERSION

The provided scripts were tested using SQL Server Compact 3.5 SP1.
We included the compact databases (sdf files) using version 3.5.8080.0. If you prefer
to create your own compact database, then you can use the .sqlce script with SQL
Server Management Studio Express tool.

N OTES FOR SQL ITE V ERSION

The provided scripts were tested using SQLite 3.7.3

N OTES FOR E FFI P ROZ V ERSION

The provided scripts were tested using the EffiProz Silverlight Query Tool
Last edited Nov 15, 2010 at 5:39 AM by lerocha, version 8

COMMENTS

agowtham Sep 4, 2012 at 10:39 AM


after running the bat file how do i connect to the database??
Sign in to add a comment
SYSTEM REQUIREMENTS

FOR DEVELOPMENT
Visual Studio 2012
SQL Server 2008 Express
Oracle Database 11g Express Edition Release 2 (XE)
MySQL Community Server 5.5.28
SQLite 3.7 Command Line
DB2 Express-C
PostgreSQL

2006-2017 Microsoft
Get Help
Privacy Statement
Terms of Use
Code of Conduct
Advertise With Us
Version 8.21.2015.21031

You might also like