Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Set Up a SQL Server With the AdventureWorks Sample Database in 2 Minutes

DZone's Guide to

Set Up a SQL Server With the AdventureWorks Sample Database in 2 Minutes

Now that the AdventureWorks database has been integrated into the database setup in the Azure Portal, see how you can set it up on a SQL Server in 2 minutes.

· Database Zone ·
Free Resource

Running out of memory? Learn how Redis Enterprise enables large dataset analysis with the highest throughput and lowest latency while reducing costs over 75%! 

I remember when I wrote a blog post in 2014 about how you can set up the AdventureWorks Sample Database on a SQL Server hosted in Azure in under 10 minutes.

Well, today, we can beat this time.

In the meantime, the AdventureWorks database has been integrated into the database setup in the Azure Portal. This allows us to create the whole shabang in under two (!) minutes — but only if you know what you are doing and if you are a reasonably fast typer...

Follow these 4 steps.

  1.  Navigate to the Azure Portal and click the New button. Then, search for SQL Database.

  2. imageOn the next screen, click Create.

  3. imageFill in the details — specify a database name, select a subscription, and select a resource group.

  4. Then comes the important part. In the drop-down Select source, take Sample (AdventureWorksLT) instead of blank.

    Select or create a database server and adjust your pricing tier.

  5. imageHit Create!

And that's it!

Now, you have a SQL Server in Azure that contains the entire AdventureWorks database.

It could not get any easier than this! Azure is amazing!

Note that in order to connect from a client such as SQL Server Management Studio (SSMS) or Visual Studio, you need to allow connections from your IP on the Firewall blade from your database server in the Azure Portal. Check out this description.

Running out of memory? Never run out of memory with Redis Enterprise databaseStart your free trial today.

Topics:
database ,tutorial ,sql server ,adventureworks ,azure

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}