Sunday, May 21, 2017

Is it JSON or not?

The following is formatted in JSON

{"student":{"name":"Linda Jones","legacySkill":"Access, VB 5.0"}etc..
{  "student":{"name":"Adam Davidson","legacySkill":"Cobol, MainFrame"}
{"student":{"name":"Charles Boyer","legacySkill":"HTML, XML"}

This is a valid JSON according to RFC 4627.


However when you use this in SQL Server to look at the JSON using the OpenJSON, for example, you will get this error:


The reason for this error:
Msg 103, Level 15, State 4, Line 2
The identifier that starts with "wclass"...
lies in the fact that SQL Server string starts with a single quote and therefore you need to provide this declaration:

declare @json nvarchar(Max)
set @json=
{"student":{"name":"Linda Jones","legacySkill":"Access, VB 5.0"}
{"student":{"name":"Adam Davidson","legacySkill":"Cobol, MainFrame"}
{"student":{"name":"Charles Boyer","legacySkill":"HTML, XML"}

When you do this the error goes away as shown:


The character count in @json is also important as you see in this SQL query:


The answer is that RFC 4627 validation requires a string to start with a double quote("), but the SQL Server's JSON validation requires the JSON to begin with a single quote(') as we saw in this post.

How do you query the OpenJSON function with a SELECT statement?

OpenJSON converts an array of objects in a variable in JSON Format to a rowset
that can be queried with standard SQL Select statement.

Here is an example:

We are going to look at a JSON list of my first batch of students who took my course shown here. 

{"student":{"name":"Linda Jones","legacySkill":"Access, VB 5.0"}
{"student":{"name":"Adam Davidson","legacySkill":"Cobol, MainFrame"}
{"student":{"name":"Charles Boyer","legacySkill":"HTML, XML"}

This is the result of running OpenJSON using the above:

Now you can run a SELECT query with a with clause on the rows returned by OpenJSON as shown here:

The first member "wclass" has nulls for the selected columns. It exists because it actually was in the original XML that got converted to JSON.
Here are my more recent JSON related articles:

JSON validation in SQL Server:

Nested JSON using SQL Server 2012:

Retrieve JSON formatted data from SQL Anywhere 17

Friday, May 19, 2017

What are geometry primitives in GeoJSON?

In Eucledian geometry we were taught about the concepts of 'Point' and straight line being the shortest distance between two points.

GeoJSON is an Open Standard format based on JavaScript Object Notation for representing simple geographical (geometrical?)features.

In GeoJson Point, Line and Polygon are the Geometric Primitives:

{ "type": "Point",
    "coordinates": [30, 10]
{ "type": "LineString",
    "coordinates": [
        [30, 10], [10, 30], [40, 40]
{ "type": "Polygon",
    "coordinates": [
        [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
This post is based on GeoJSON on Wikipedia.

Tuesday, May 16, 2017

What is Azure Cosmos DB?

This is how Azure Cosmos DB is described by Microsoft, "Azure Cosmos DB is Microsoft's globally distributed, multi-model database. With the click of a button, Azure Cosmos DB enables you to elastically and independently scale throughput and storage across any number of Azure's geographic regions. It offers throughput, latency, availability, and consistency guarantees with comprehensive service level agreements (SLAs), something no other database service can offer"

If you are looking for Global Distribution, horizontal scaling, guaranteed latency, high availability, comprehensive SLA's and unrivalled Data Model and API that no RDBMS, no no-sql database can provide there is nothing out there to match Azure Cosmos DB.

Azure Cosmos DB Engine supports multiple database systems and it is based on the following:

 Atom: Consisting of a small set of primitive types (String, Bol, number)
 Records: Structs
 Sequence: Arrays of atoms, records and sequences

Azure Cosmos DB engine currently supports the following:

Document DB SQL
Mongo DB
Azure Table Storage
Gremlin Graphh Query API
It will support other API's in the future.

For developers looking for a globally distributed database system Azure Cosmos DB is the answer.

Sunday, May 14, 2017

How do you build an ODBC Connection String with Report Builder 3?

ODBC source is one of the many sources that you can connect to in Reporting
Services using the Report Builder.

Here are the steps. It is assumed you have SQL Server 2016 SP1 installed; Report Builder is also
installed on the same machine. For these steps it is assumed that the SQL Server is up and running
and you are the owner of the computer who installed the SQL Server.

1. Launch Report Builder with Administrative Privileges.
2. Right click Data Sources and Click Add DataSource... to bring up the Data Source properties window.
3.  Provide a name for the data source, DS_ODBC
4. Choose Use a connection embedded in my report
5. Select connection type: click handle and choose ODBC at the bottom of list
6. Click Build... to bring up the Connection properties window
7. In the Data source specification section choose Use connection string:
8. Click the Build... button that gets activated to display Select Data Source window
9. Click Machine Data Source
10. In Machine Data Source tabbed page, click New... to display Create New Data Source
11. Accept the default, User Data Source and click Next
12. In the Select a driver for which you want to set up a data source, scroll down and
    select SQL Server (SQLSRV32.dll); click Next to display the next window
13  Click Finish. Create a New Data Source to SQL Server is displayed
14. Provide a name of your choice (ODBC_DSN); Description:(ODBC for Report Builder); Server
    use handle to locate: Hodentek9\OHANA. Click Next
15. Accept the default in the displayed page: with Windows NT authentication using the
    Network login id. Click Next
16. Change the default database by clicking handle to Northwind. accept all other
    defaults. Click Next
17. Accept all defaults on the displayed page. Click Finish
18. In the ODBC Microsoft SQL Server Setup page test the connection and make sure it works. Click OK
19. ODBC_DSN enters the Machine Data Source tabbed page. Click OK
20. SQL Server Login window gets displayed. Enter creator owner's credentials
21. Copy the connection string from the connection properties window.
Dsn=ODBC_DSN;description=ODBC for Report Builder;trusted_connection=Yes;app=Microsoft SQL Server;wsid=HODENTEK9;network=DBNMPNTW
22. Test Connection to make sure it works
23. Click OK
The Connection string enters the Data Source Properties window as shown.

Thursday, May 11, 2017

How do you create a Report Model in SQL Server Reporting Services 2016 (Native Mode)?

You cannot as it is discontinued.

RS Web Portal is the new name for Report Manager of earlier versions.

The following two features related to Report Model are discontinued  in SQL Server 2016.

Feature                                                                Replacement or workaround
Upload report models through the web portal     This can still be done through the SOAP API.
Manage report models through the web portal    This can still be done through the SOAP API.

Note: Whereas HTML4 is supported, the future SQL Server Reporting Services will be using HTML5.

Wednesday, May 10, 2017

How do you fix the rsErrorOpeningConnection error in Reporting Services 2016?

The error, rsErrorOpeningConnection has been asked many times in almost
all versions of SQL Server Reporting Services starting from SSRS 2008. Various
reasons have been given. The error message hints at what may be wrong.

In the present case, a simple report with embedded data source  was created in Report Builder 3 by the creator owner who is also the local administrator. This report was saved to the
Report Server (also gets uploaded to the Web Portal front-end).

The report is processed in the Report Builder without any error.

If the Where_2 report is double clicked this is the message displayed after correct authentication
by the local administrator.

The Data Source is shown in the following and the report gets correctly displayed in
the Report Builder and it can be saved to the Report Server as seen above.

The rsErrorOpeningConnection arises because of the credentials to the Data Source is not
properly configured (what is shown is the default). Review the credentials for the data source:

When you make the proper entries for the report as shown here:

The error goes away.

 The SQL Server 2016 SP1, the Report Builder 3 are both on a Dell Laptop with Windows 10 Pro. The Reporting Services configuration is for Native Mode managed by the laptop owner.

Sunday, April 23, 2017

What is KanaType as related to SQL Server?

This is specifically for data in Japanese language databases. There are two types of Japanese phonetic scripts, the Hiragana and the Katakana. Of course there is also the Kanji (non-phonetic) which characters which are modified/simplified Chinese characters used in Japan together with Hiragana and Katakana.

While dealing with Japanese data Kanatype is used to distinguish between Katakana and Hiragana. Katakana is usually used for words of foreign origin not found in Japanese, like, Bus, Laser, harassment etc.

For example, the 'dataset' in Reporting Services have this property:


Here is a piece of text in Hiragana

ふるい もの の なか に ある かくれた うつくしさを 「さび」 と いいます。 また、かざらない そぼくな うつくしさ を 「わび」 と いいます。ふたつ を あわせて、「わび・さび」 と いいます。


Here is a piece of text in Katakana (the same text written in Katakana):

フルイ モノ ノ ナカ ニ アル カクレタ ウツクシサヲ 「サビ」 ト イイマス。 マタ、カザラナイ ソボクナ ウツクシサ ヲ 「ワビ」 ト イイマス。フタツ ヲ アワセテ、「ワビ・サビ」 ト イイマス。


Friday, April 21, 2017

Can you save reports created in Power BI to a Report Server? - FINAL

I apologize to the readers of my post,Can you save reports created in Power BI to a Report Server?  for having given the wrong impression. The reports you create cannot be saved to any report server but the stand-alone report server created using the same .msi file downloaded from the same location where you downloaded Power BI Desktop Technical Preview.

I am only partly to blame for this and I apologize. Let me correctly present what kinds of reports can be saved to what kind of report server. The other reason for the problem was created by the Power BI itself for giving the wrong guidance for the users while saving the report to the report server. It must be changed.

  • The only kind of reports that can be saved to Report Server (strictly speaking, you are only saving it to the Web Portal URL) are the ones created with data from the Analysis Services server.
  • In order to save you need to configure a stand-alone Report Server whose database is stored not on a SQL Server 2016 but an earlier version. In my case I use the SQL Server 2012. The .msi file for this server is on the same download site as the Power BI Technical Preview.

After you fulfill the above conditions then only you can host the report.

I was able to get the correct server by an answer to my question on

Where do you find 'hosts' file on Windows 10?

I don't think it's location in the fle/folder system has changed. It should be in the 'Windows' folder.

Try the following on a C:\ prompt:

C:\>cd %SystemRoot%\system32\drivers\etc
 Volume in drive C is TI10672700E
 Volume Serial Number is 16FB-D230

 Directory of C:\Windows\System32\drivers\etc

[.]           [..]          hosts         hosts.ics     lmhosts.sam   networks      protocol      services
               6 File(s)         24,174 bytes
               2 Dir(s)  667,711,660,032 bytes free

Saturday, April 8, 2017

Can you save reports created in Power BI to a Report Server?

The answer is yes if you use the Technical Preview version of Power BI Desktop. You can save reports to your on premises SQL Server.

NOTE: If you already have configured a SQL Server 2016 Reporting Services server you will not be able to upload the reports from Power BI. You need to install the SQLServerReportingServices.exe mentioned below and configure a Standalone SQL Server Reporting Services which will provide a http:///ReportServer.

You can download this for both x32 and x64 versions. With this you can,

  •     Connect “live” to Analysis Services models – both Tabular and Multidimensional (cubes)
  •     Visually explore data and create an interactive report
  •     Save that report to your report server running the Technical Preview
  •     View and interact with the report in your web browser

If you do have Power BI for Desktop on your computer you still need the (January 2017) Technical Preview. This can sit alongside your present Power BI.

Preview version details below:
Version:            Date Published:

0.1                1/11/2017

File Name:                                                               File Size:

PBIDesktopRS.msi                                      102.2 MB

PBIDesktopRS_x64.msi                           118.3 MB

SQLServerReportingServices.exe    49.6 MB

System Requirements:
Supported Operating System

Windows 10 , Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016

    You'll need
        .NET Framework 4.5.2 or later
        SQL Server Database Engine (2008 or later), to store the report server database
        SQL Server Analysis Services (2012 SP1 CU4 or later), to store your data models
        Get SQL Server 2016 Evaluation
        Try SQL Server vNext CTP1.1

Friday, April 7, 2017

Download and Install Report Builder for SQL Server 2016

Report Builder is a highly productive, stand-alone tool for authoring reports and deploying them on configured Microsoft Reporting services report servers. It can use data from different kinds of data sources to produce  a variety of reports, from hard copies to web based reporting.

Report Builder 3 Details:
File Name:
Date Published:
File Size:
22.6 MB

You need Microsoft .NET Framework 4.5
. The memory and CPU requirements are average.

This is supported on  the following OSs:
Windows 10 , Windows 7, Windows 8, Windows 8.1, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2

download from here:

Please review the earlier versions of Report builder in two of my published books here:

The second book Learning SQL Server 2008 Reporting Services is ideal for beginners who want to spin-out reports from a variety of data sources and deploy them to report servers. The book is replete with step-by-step, hands-on exercises where the users can hone their skills.

The fifth book Learning SQL Server Reporting Services 2012 is a revised edition and a deals with both Native and SharePoint Integrated modes of Report Servers. This covers every aspect of the first edition(second book) with lots of added material to include development in the intervening years.

  As the author of these Microsoft Business Intelligence related books I have great confidence in their usefulness. I would love to hear from you. Email me at:

Installing Report Builder

You will have downloaded the ReportBuilder.msi file published on 3/9/3017. Note that there are other Report Builder.msi related to other versions (for example ReportBuilder.msi for SQL Server 2014 etc).

The installation is driven by a wizard and it installs without any problem. You need not indicate a Reporting Services Report Server during installation.

Here are screen shots of the installation:

Welcome Screen

License agreement window. Click I Accept...

 It will be installed on the local hard drive. Note that this product may also work with SQL Server vNext CTP1.3.

SQL Server 2016 reporting services has two modes and you need not have these installed and configured. You may keep this empty. Click Next.

Click Next and you are ready to install.

 Click Install. Begins installing with a progress screen.

 It is done installing.

 You should see these in All Programs on Windows 10.

Double click and you are ready to Author a report. If you want to put it out on the Report Server, you need a Report Server.

You are ready to go!

Wednesday, April 5, 2017

What is Markdown Syntax?

HTML markup is well known and Markdown markup is a construct to make a web page readable.  Markdown syntax is used to make it possible to write to the web using simple text.  It is a text-to-HTML tool for web authors.

Markdown syntax is very small and not extensive like that of HTML. It is not used to replace HTML but to make it easy to read/write/edit prose in a web page. Markdown does not need special editors.

Since Markdown consists of few constructs if you need beyond them you can use HTML. One of the special constraints in using Markdown is in the case of block level elements such as 'table', 'pre', 'p' etc. In this case for using Markdown just surround block-level elements with blank lines and Markdown syntax takes care of the rest.

Learn more about Markdown syntax here. While you are there click on the tab Dingus tool (written in Perl) to convert your Markdown Syntax to html syntax.

For example you can create first and second level headers by just typing them as shown here:

A First Level Header

A Second Level Header

The above Markdown text will be converted  into the HTML source by the Dingus tool: (note: Firefox browser does not render the 'pre' tags which are in the source of this page. That is why you are seeing the h1 and h2 tags rendered. Review my post on this browser problem.

A First Level Header

A Second Level Header

The Markdown text is readable and can be typed in with a text editor and the tool converts it to web compliant HTML.

Review the screen shot here:

Saturday, April 1, 2017

What is a SQL Server Mobile Report Publisher?

SQL Server Mobile Report Publisher (SSMRP) is an authoring tool that can be used to quickly creating Reporting Services mobile reports that are optimized for mobile device with a variety of form factors. You can have an assortment of visualizations, from time, category, charts, tree maps, and custom maps.

With SSMRP you can,
  • Connect mobile reports to a range of data sources including on-premises SQL Server and Analysis Services
  • Layout reports on a design surface to accommodate flexible mobile reports
  • Save mobile reports to a Reporting Services server and interact with them in a browser or with Power BI on mobile devices(iPad, Android Phones and tablets and Windows 10 devices).
What do you need to create Reporting Services mobile reports?
You need the SQL Server Mobile Report Publisher

File Name:
Date Published:
File Size:
25.3 MB

System requirements:
Supported Operating System
Windows 10 , Windows 7, Windows 8.1
.NET Framework 4.5 (or later)
Visual C++ Redistributable for Visual Studio 2012 (x86)

Download SSMRP here:

Friday, March 31, 2017

What was the fix for the DVD drive that disappeared?

Quite a long time ago I reported in my post regarding the loss of DVD drive. I use the DVD very infrequently and it was on the back burner. Finally I decided to get to the bottom of it and succeeded. Here is the result.

In the Device Manager I could see that the DVD device was not working properly as reported in the previous link. The Toshiba, TSST Corp CDDVDW SU-208DB drive was not working and the DVD drive was not seen in the Windows Explorer. The properties of the problematic drive appeared as shown with the Code 19 error (image from the above post).

Finally I came across this Toshiba support site here.

Interestingly this page does not say anything about Windows 10 but describes the fix for Windows 8
My problem started when Windows 10 anniversary update was made and the DVD stopped working from that time.

The fix for this problem consisted of removing two of the programs from the Control Panel|...|Programs and Features shown here:

Toshiba Recovery Media Creator
Toshiba Disk Creator

and also uninstall the DVD\CD_ROM Drives element in the Device Manager.

I did not have the Toshiba Disk Creator, but I uninstalled the TOSHIBA Recovery Media Creator and the DVD/CD-ROM drives in the Device Manager.

These are as shown in the screen shots:



And now after restarting the computer I can see the DVD drive in the explorer.

Wednesday, March 29, 2017

What is a dual-band router?

A dual-band router is a router that has two bands.

For example, the Arris router used by subscribers to Time Warner Oceanic service provider uses the service provider provided router that two has bands, 2.4 GHZ and 5 GHz.

A typical dual-band router has an administration panel shown here:

 You can see that you can have separate settings (password, encryption, etc.) for the 2.4 GHz and 5 GHZ bands that this router can provide.

You can have devices working with either of these two bands or both. For example one or two of desktop works on 2.4 GHZ and my Lumia 950 on 5 GHZ.
My Samsung TV works on the 2.4GHZ as well.

If want to utilize the full power of bandwidth, or have multiple devices that depend on Wi-Fi it may be better to go to dual-band router although they may cost higher.

Tuesday, March 28, 2017

Are there tools to look at financial information of the stock market in R?

I read a very illuminating article on R-Bloggers which was originally published on R-Curtiss Miller's Personal Website (

Ever since Microsoft SQL Server began supporting R in its 2016 version, I got interested in R language. It is extremely rich with wide applicability from Astronomy( to Zoology( and everything in between.

Financial information from Yahoo as the source, the packgae 'quantmod' brings with it most of the useful financial information about stocks. quantmod gets data from Yahoo Finance and Google Finance plus from other sources.

In order to work with financial data you should download the package which can done as shown:
> # Get quantmod
> if (!require("quantmod")) {
+     install.packages("quantmod")
+     library(quantmod)
+ }
Loading required package: quantmod
Installing package into ‘C:/Users/Jayaram/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘xts’, ‘zoo’, ‘TTR’
[ I chose the CRAN site in California ]
trying URL ''
Content type 'application/zip' length 662188 bytes (646 KB)
downloaded 646 KB

trying URL ''
Content type 'application/zip' length 905140 bytes (883 KB)
downloaded 883 KB

trying URL ''
Content type 'application/zip' length 432456 bytes (422 KB)
downloaded 422 KB

trying URL ''
Content type 'application/zip' length 473601 bytes (462 KB)
downloaded 462 KB

package ‘xts’ successfully unpacked and MD5 sums checked
package ‘zoo’ successfully unpacked and MD5 sums checked
package ‘TTR’ successfully unpacked and MD5 sums checked
package ‘quantmod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
Loading required package: xts
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric

Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘quantmod’
2: package ‘quantmod’ was built under R version 3.2.5
3: package ‘xts’ was built under R version 3.2.5
4: package ‘zoo’ was built under R version 3.2.5
5: package ‘TTR’ was built under R version 3.2.5
Once it is installed. You can set up start and end dates variables for viewing your stocks like in:
start<-"" br="">end <-"" br="">
With these defined, you can get the Apple's stock price using its ticker symbol AAPL using the functions in the package as shown obtaining data from the Yahoo source.
> getSymbols("AAPL", src="yahoo", from=start, to=end)
To view the data just run the statement

Thursday, March 23, 2017

How do you set up the DMZ on your router?

You may want to place one of your computers behind the firewall temporarily outside the firewall for troubleshooting purposes. Keeping a computer outside the firewall is not good practice except temporarily for troubleshooting.

In order to do this you need access to your router's IP Address. In most home computers connected to the Internet via a router, this address is

On my Arris router supplied by Oceanic Time Warner, I can go to the DMZ page directly by entering the router address as shown:


Of course you need the username and password, which you can get from the service provider.

All you need to do is indicate which of the Internal computers behind the firewall goes to the DMZ. The settings of DMZ will have both a Public IP (WAN IP) as well as an Internal (Private IP). Note that all the ports on the computer in the DMZ can be attacked by hackers.

Tuesday, March 21, 2017

What kind of a file is this?

This is often a question you ask yourselves when you come across a file which has no extension, or has an extension that you do not recognize. Often you get into this questioning mode while trying to read an email attachment, or a file you downloaded from the Internet. Often times it is also an archived document.

The designer of TriEngine has looked through various types of documents, over 8000 of them and has set up a database which he uses to compare the patterns in the files to make the best guess of the file type. This is useful mostly for files in binary format.

You can download a copy of the latest program from here or use an online version )of it.

I did downlaod a windows version and a .NET GUI version, but they had problems with a missing root for some XML file. You may give it a try.

I used the online version to see if it can find some of the files in my directory filled with file types. I deliberately deleted extensions from two of the files but renamed it to recognize later. 

It did quite a reasonable job. It found the match if it is within the definitions directory(constantly updated) which now has over 8000 definitions. Here are some of the results:

.diagcab file

 .sqlite file

 .pbiviz file

.ogg file

It did not file with an extension .nar and a file with no extension was recognized as a .pdf file

Friday, March 17, 2017

What if I do not find Remote Procedure Call Service (RPC) on my Windows 10?

It can happen as it happened to me that the RPC service line item may be missing in the Windows 10 Professional.

RPCss is the Service Control Manager (SCM) for COM and DCOM servers. It performs object activation requests, object explorer resolutions and distributed garbage collection for COM and DCOM. Programs on the local computer and or on a remote computer may fail if it is not working.

You should find this in Control Panel|...|Services.

By default RPC will be running as NT Authority\NetworkService, a shared process of svchost. If it fails error is logged.

If it is absent you can get it from here:

Note. Make sure that the rpcss.dll file exists in the %WinDir%\system32 folder.

If this file is missing you can try to restore it from your Windows 10 installation media.

Tuesday, March 14, 2017

How do you open a X.tar.gz file in Window 10?

The word 'tar' refers to the software utility program for archiving many files into an archive file. It was usually called a tarball for distributing or backing up file lots. This is very similar to the files in Windows.

Recently I needed to open a file of this type in my Windows 10 Professional and I looked at the various Apps in Windows Store. I finally decided to use the app, OpenZip shown here.

Open ZIP+_0.png

This iss downloaded from the Windows Store as shown.

Open ZIP+_1.png

I had downloaded the file with extension  tar.gz to the Downloads folder. After launching Open ZIP+,  I just browsed the file and extracted to a folder on the desktop.

Open Zip+_2.png

Extracted files were saved to a folder on the computer as shown:

Open Zip+_2.png 

Looks like this is a reliable app for this task. 

Monday, March 6, 2017

Can I use the bacpac file to import WWI database?

Although the bacpac file available is for the Azure SQL Database, you can use it to import it inot SQL Server 2016 Sp1.

In this post I describe how you may construct the database on the named instance using a BacPac file.
If you have not used this kind of file please review the following link here.

In what follows I describe using the .bacpac file to construct the WWI database
Go here:

Get this bacpac file:
Azure SQL Database Standard tier

    WideWorldImporters-Standard.bacpac - standard edition OLTP sample database in bacpac format. For Azure SQL Databases in the Standard tier.

Download the 58.4 MB file from the above site.

SQL Server 2016 SP1 like the other versions has a wizard to bring the database using a .bacpac file such the one you downloaded.

You invoke the wizard as shown in the next image and follow through.


Click Import Data-tier Applicaiton... to open the window shown in the next image.  Read the steps in this introductory page.


 Click Next. You click the Browse... button to locate the  indicated file. This is the location to which I saved the WideWorldImporters-Standard.bacpac file. 
It does not matter it is for Azure SQL Database.


After getting the file location from the location as shown in the next image proceed to next step.


After getting the file location in the wizard's interface (the image one above the previous) click Next.


 Just verify that the location for files are what you want. Herein defaults are accepted. You could browse and park elsewhere.

The database name was changed to WWI_Bacpac.

Click Next. The Summary of processing is presented as shown.


Click Next. The next four images shows the progress captured in images. Indexes are dropped and created, etc.


Object explorer refreshed - last processing step.

The WWI database is imported successfully.

Here is the final verification of the import into the named instance.


Another way to import the database is using the Restore utility in SQL Server 2016 as described here.