• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

bVisual

  • Home
  • Services
    • How Visio smartness can help your business
    • Visio visual in Power BI
    • Visio Consulting Services
    • Visio Bureau Services
    • Visio Training and Support Services
  • Products
    • Visio Shape Report Converter
    • SS Plus
    • LayerManager
    • visViewer
    • Metro Icons
    • Rules Tools for Visio
    • The Visio 2010 Sessions App
    • Multi-Language Text for Visio
    • Document Imager for Visio
    • multiSelect for Visio
    • pdSelect for Visio
  • Case Studies
    • Case studies overview
    • Using Visio in Education for GIS
    • Visualizing Construction Project Schedules
    • Visio Online Business Process Mapping
    • Nexans Visio Template
    • CNEE Projects, WorldCom
    • Chase Manhattan Bank
  • News
    • Recent news
    • News archive
  • Resources
    • Articles➡
      • ShapeSheet Functions A-Z
      • Comparing Visio for the Web and Desktop
      • Customising Visio Shapes for the Web App
      • Key differences between the Visio desktop and web apps
      • Using the Visio Data Visualizer in Excel
      • Using Visio in Teams
      • Creating Visio Tabs and Apps for Teams with SharePoint Framework (SPFx)
      • Designing Power Automate Flows with Microsoft Visio
      • Innovative uses of Visio Lists
    • Webcasts ➡
      • Visio in Organizations
      • My session and other Visio sessions at MSIgnite 2019
      • Power up your Visio diagrams
      • Vision up your Visio diagrams
      • The Visio 2010 MVP Sessions
    • Visio Web Learning Resources
    • Books➡
      • Visualize Complex Processes with Microsoft Visio
      • Mastering Data Visualization with Microsoft Visio
      • Microsoft Visio Business Process Diagramming and Validation
      • Visualizing Information with Microsoft Visio
  • Blog
    • Browse blog articles
    • Visio Power BI articles
    • Visio for Web articles
    • A history of messaging and encryption
  • About us
    • About bVisual
    • Testimonials
    • Bio of David Parker
    • Contact Us
    • Website Privacy Policy
    • Website terms and conditions
    • Ariba Network
You are here: Home / Visio / Visio 2013 / Linking SQL database on Azure to Visio

Published on September 11, 2014 by David Parker

Linking SQL database on Azure to Visio

Microsoft Visio has many data sources available for Link Data to Shapes, and one of those is SQL Server. Microsoft Azure is increasingly becoming a low-cost, and always available, choice for hosting all sorts of data, and applications, so I thought I would document how easy it is to setup a SQL database on Azure for use with Visio.

Creating the SQL database on Azure

First, you need register for an Azure subscription, and then create a SQL database on a server in a suitable location.

Create Azure Sql database

In my case, I have created a database called VisioFM on a server in North Europe, and I have highlighted the server name and port that I will use later in Visio.

Azure Sql database properties

Of course, I need to setup a username and password in order to create any tables, and to access any data.

 

Azure Sql database login

I created three columns in my simple table which I named Floors.

Sql database Create tables

Then I entered some data for the ground and first floor (or if you are American first and second floor Smile ).

Sql Database Add data

So, there it is, a simple database with one table, no views, and no stored procedures.

Linking the SQL database on Azure to a Visio document

I then create a new Visio document, selected Link Data to Shapes. and then chose a Microsoft SQL Server database.

I entered the Azure SQL server name and port from above, and entered the user name and password.

Visio Link Data to Shapes Select Sql database

The Data Connection Wizard then allowed me to select the database on that server, and the table within it.

 

Visio Link Data to Shapes Select table

I set the properties of the data connection. 

Visio Link Data to Shapes Authentication settings

I could then save this Office Data Connection (odc) file for future use.

 

Visio Link Data to Shapes Save password in file

Finally, the table appeared in my External Data window in Visio, and so I could use it to connect rows of data to shapes.

 

Visio External Data

 

Conclusion

This scenario is useful when you want to link to a remotely available SQL database. You can setup multiple logins to the tables, views or stored procedures, with different levels of permissions.

Tables and views are available to select from the data connection wizard, but links to stored procedures have to be coded.

The data is refreshable in Visio, however, if you are hosting your Visio diagrams in SharePoint, and want them to be refreshable within the Visio Web Access control, then you will want to create the Azure SQL database as an External Type using Business Connectivity Services (see http://www.pointbeyond.com/2012/12/31/surfacing-data-from-sql-azure-in-sharepoint-2013-online-office-365 )

Related

Filed Under: Azure, External Data, Shape Data, SQL Server, Visio 2013 Tagged With: SQL, Visio

About David Parker

David Parker has 25 years' experience of providing data visualization solutions to companies around the globe. He is a Microsoft MVP and Visio expert.

Reader Interactions

Comments

  1. markymarq says

    July 24, 2018 at 4:11 pm

    Can you link more than one data table in Visio 2016 Pro? I can add multiple tables using Custom Import, but it seems like only one is active for pulling objects into a diagram.

    Reply
    • davidjpp says

      November 5, 2018 at 4:52 pm

      You can link one row from any number of External Data recordsets to any Visio shape. So, a shape can be linked to many recordsets, but only one row in each of them. They can have different key fields too.

      Reply
  2. Miles Thomas says

    March 21, 2021 at 7:57 pm

    Can Visio link to SharePoint lists?

    Reply
    • David Parker says

      March 21, 2021 at 9:43 pm

      Certainly you can!
      https://bvisual.net/?s=SharePoint+Lists
      Using SharePoint Links and Hyperlinks in Visio
      Using SharePoint Choice Columns with Visio Services

      Reply

Trackbacks

  1. Linking SQL database on Azure to Visio via SharePoint Online | bVisual says:
    September 26, 2014 at 8:48 am

    […] last post was entitled Linking SQL database on Azure to Visio (see http://blog.bvisual.net/2014/09/11/linking-sql-database-on-azure-to-visio/), but that was only half the solution I wanted to present because I was having issues with linking […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

  • LinkedIn
  • Twitter

Recent Posts

  • Fixing dimensions of 2D shapes
  • Merging Linked Data from Similar Tables
  • Smart Radio Buttons and Check Boxes in Visio
  • Using Button Face Ids in Visio
  • Grid Snapping Revisited

Categories

Tags

Accessibility Add-Ins Connectors Containers Data Export Data Graphics Data Import Data Visualizer Educational Excel GraphDatabase Hyperlinks Icon Sets JavaScript LayerManager Layers Legend Link Data to Shapes Lists MSIgnite MVP Office365 Org Chart PowerApps PowerBI PowerQuery Processes Setup and Deployment Shape Data Shape Design ShapeSheet ShapeSheet Functions SharePoint 2013 SQL Teams Validation VBA Video Visio Visio 2007 Visio for the Web Visio Online Visio Services Visio Viewer Webinar

Footer

bVisual Profile

The UK-based independent Visio consultancy with a worldwide reach. We have over 25 years experience of providing data visualization solutions to companies around the globe.

Learn more about bVisual

  • Amazon
  • E-mail
  • Facebook
  • LinkedIn
  • Twitter
  • YouTube

Search this website

Recent posts

  • Fixing dimensions of 2D shapes
  • Merging Linked Data from Similar Tables
  • Smart Radio Buttons and Check Boxes in Visio
  • Using Button Face Ids in Visio
  • Grid Snapping Revisited

Copyright © 2025 · Executive Pro on Genesis Framework · WordPress · Log in