With SSMS open, connect to your database server and click New Query from the toolbar. For OWNER RIGHTS check that Full control is ticked, if not, tick it and then hit Apply and OK through the remaining dialog windows. To check and rectify this, browse to the file using Windows Explorer and right-click the datafile, select Properties, Security tab then Edit. Some users have noted that if you’re using Windows 7 or 8 then you need to start SSMS as Administrator, I’m using Windows 7 and have had no problem running it up normally but it’s worth bearing in mind if you do hit an error.Īlso, you may encounter an “Access is denied” message when attempting to access the datafile – this is possibly the level of permissions on the data file itself. Once the download has completed, it is advisable to copy the data file to your DATA folder, in my case, this is located here: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQL_2012\MSSQL\DATA. To get the datafile, browse to the Microsoft SQL Server Samples page on CodePlex and take the AdventureWorks2012 Data File. The sample databases from Microsoft give you plenty of opportunities to work with different techniques for both OLTP and data warehouse and even familiarize yourself with Azure without having to come up with your own data.After installing SQL Server 2012, it is a good idea to download and add the sample database to your SQL Server instance. What Are You Waiting For?ĭatabase professionals, this is your chance to start exploring the features and functionality that SQL Server has to offer. The data set is large enough that it’s possible to make use of these features but it’s still small enough that you won’t need enterprise grade hardware to accomplish these things in a reasonable amount of time. While it’s not the biggest database (my copy is around 1.6GB), ContosoRetailDW provides a large enough data set where aspiring database professionals can really start to push the limits of a local SQL Server.ĬontosoRetailDW is also a good place to try out Enterprise Edition features like table partitioning and ColumnStore indexes. The Contoso Retail DW data set is several times the size of AdventureWorks and comes as a pre-built star schema. The AdventureWorks data sets are a great starting place, but the data set size doesn’t pose many challenges. Let’s say you want to do something a bit more adventurous and you want to branch out into the bigger BI world that Microsoft has to offer. If you’re just getting started, those are a good option (especially since there’s an SSAS tutorial available). There are some light weight data warehouse options available, but they are still relatively small. If you want to deal with international databases, pick the CS version.Ī full list of AdventureWorks OLTP options is available at. The CS lets you know it’s a case sensitive option. Protip: There’s usually a CS option for each of these. If you want something for Azure, use the script file to create the database and deploy data. AdventureWorks 2012 OLTP Script – these scripts will create AdventureWorks from scratch.įor a local database, go with one of the first two options – just drop the files in their appropriate folders, attach the database, and then you’re off to the races.AdventureWorks 2012 data and log file – there’s an MDF and an LDF zipped up in a file.You’ll need to drop it into a folder and tell SSMS to create a log file. AdventureWorks 2012 Data File – this is just an MDF file.To get started, database professionals should download one of the following: There are a number of downloads available for AdventureWorks, but only a few that matter to the OLTP crowd. All that aside, AdventureWorks is the first place that database professionals should go to get started practicing their skills. How Microsoft managed to cram all of the relevant SQL Server features into a 215MB database is beyond me. It’s not very exciting data and it’s not terribly big data, but it gives developers a highly normalized schema to work with for testing different querying techniques. Brightly colored sample databases for everyone! Introducing the AdventureWorks OLTP Sample DatabaseĪdventureWorks is a transactional database for a fictional bicycle and outdoor supply company. You can’t take a copy of your production database home with you, so what can you do? Thankfully, the fine people Microsoft have put together a set of databases that you can download and play with. If you’re like me, you might even take that practice outside of the workplace and do a bit of homework on the side. The best way to improve your skills as a database professional is to practice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |