Está en la página 1de 13

A Visual Guide to

Microsoft SQL Server 2008


Reporting Services and MySQL

A MySQL® White Paper


July 2009

Copyright © 2009, Sun Microsystems 1


Table of Contents

Introduction ............................................................................................................................................................3

Why MySQL on Microsoft Windows?..................................................................................................................3

What is SQL Server 2008 Reporting Services?....................................................................................................4

Building Reports with SQL Server 2008 Reporting Services .............................................................................4

Conclusion .............................................................................................................................................................11

MySQL on Windows Case Studies......................................................................................................................12

Resources ...............................................................................................................................................................12

About MySQL......................................................................................................................................................13

Copyright © 2009, Sun Microsystems 2


Introduction
For many years, Microsoft Windows has been the most popular development platform and second most
popular production platform for organizations developing MySQL applications. In early 2009 we
conducted our annual survey in which we found that 66% percent of those surveyed used Windows for
development and 48% ultimately deployed into production on Windows. For some, this fact may come as
a surprise given MySQL is the “M” in the open source Linux, Apache, PHP, Perl and Python (LAMP)
stack. We also found that roughly one in three MySQL Enterprise shops also made use of Microsoft SQL
Server. When we asked what motivated an organizations interest in MySQL, we found that cost savings,
performance and freedom from vendor lock in to be the most compelling reasons to deploy MySQL in
conjunction with SQL Server. In this paper we will visually show you how to connect MySQL into some of
the existing tools that the SQL Server DBA will already be familiar with. Specifically in this paper we will
look at how configure connectivity to MySQL with your existing reporting infrastructure based on SQL
Server 2008 Reporting Services.

Why MySQL on Microsoft Windows?


The popularity of MySQL on Windows remains strong due to the fact that MySQL delivers:

• Lower TCO
• Ease of use
• Reliability
• Performance
• Fully featured database with no functional limitations

Another metric for judging the popularity of MySQL on Windows is to look at the average number of
downloads for the MySQL server, tools and connectors for Windows from mysql.com. This number
roughly averaged an astonishing 45,000 per day during the first six months of 2009. Finally, in Gartner’s
recent “Market Share: Relational Database Management System Software by Operating System,
Worldwide, 2008” report they found that the growth for RDBMS running on Windows Server grew in 2007-
2008 by 17.5%.

MySQL Is Easy to Deploy With Minimal Requirements

MySQL supports all the current Windows versions from Microsoft with
minimal additional requirements concerning software, hardware,
storage or networking. Specifically, you can run MySQL on Windows
XP, Windows Vista, Windows Server 2003 and Windows Server 2008.
In general, you will need to install MySQL with Administrator privileges,
but the MySQL process can run afterwards without any special
administrative privileges. Many administrators also choose to run
MySQL as a service so that it can be easily stopped and started using
the Windows Service Control Manager. MySQL on Windows also
comes with its own Windows Systray application from which you can
start, configure and perform other administrative tasks on your MySQL
instance. Finally, you will need TCP/IP support as well as sufficient
local memory and storage to install and run your database.
MySQL Systray

Copyright © 2009, Sun Microsystems 3


Easy Installation

Getting started with MySQL on Windows is a very


straight forward process. Unless you require an
advanced or customized configuration of MySQL,
the wizard-driven Automated Installer will get you
up and running on Windows in just a couple of
minutes. The MySQL for Windows MSI packages
can be downloaded from:

http://dev.mysql.com/downloads/.

We should also point out that it is very easy to


install and run multiple versions or instances of
MySQL on a single box. To run multiple
instances, you only need assign each instance a
different port to run on. Managing different
versions and instances is very easy and done
through either MySQL-supplied interfaces or the
standard Windows service manager. MySQL Server Instance Configuration Wizard

What is SQL Server 2008 Reporting Services?


According to Microsoft, “…SQL Server 2008 Reporting Services provides a complete server-based
platform designed to support a wide variety of reporting needs enabling organizations to deliver relevant
information where needed across the entire enterprise. Create comprehensive, richly formatted reports
quickly and easily. Benefit from increased productivity through familiar Microsoft Visual Studio-based
report development tools. Take advantage of intuitive design interfaces and wizards to quickly build
reporting solutions. Build reports from different data sources throughout your enterprise. Data sources
1
can be from SQL Server, Oracle, DB2, SAP NetWeaver BI, Hyperion Essbase and MySQL.”

Report Builder 2.0 is an intuitive authoring tool for building reports which leverage Reporting Services.
Report Builder allows you to query a variety of data sources, including MySQL, and define layouts, color
schemes and in turn publish them to Reporting Services for reuse, scheduling, and retrieval.

Building Reports with SQL Server 2008 Reporting Services

Prerequisites

For the purpose of this section we assume that you have already installed and configured Microsoft SQL
Server 2008 Reporting Services and are also familiar with the basics surrounding Microsoft’s Report
Builder 2.0.

1
http://www.microsoft.com/sqlserver/2008/en/us/reporting.aspx

Copyright © 2009, Sun Microsystems 4


Step One: Install the MySQL ODBC Driver

Download the ODBC driver from


http://dev.mysql.com/downloads/connector/odb
c/5.1.html and begin the installation wizard

Select the Typical installation

The installation is now complete, click Finish

Copyright © 2009, Sun Microsystems 5


Step Two: Configure the MySQL ODBC Driver

Open up the Windows ODBC Data Source


Administrator

Start > Settings > Control Panel >


Administrative Tools > Data Sources (ODBC)

Click Add

Select the MySQL ODBC 5.1 Driver

Click Finish

Input the Data Source Name, a Description,


the name of the MySQL Server, the Port
assignment, User and Password plus the
Database you wish to connect to.

Test the connection

Copyright © 2009, Sun Microsystems 6


Step Three: Configure the MySQL Connection in Reporting Services

Connect to the Reporting Services server

Configure the connection between the


Reporting Services server and the MySQL
server.

In this example the connection string is:

Dsn=DELLXP1;server=DELLXP1;database=
mondial;port=3306

Step Four: Build an Example Report with Report Builder 2.0

Configure the Dataset Properties by


selecting the appropriate data source and
specifying the query.

Copyright © 2009, Sun Microsystems 7


Configure the data source connectivity

Specify the credentials required to generate


the report

Click on New Table/Matrix

Copyright © 2009, Sun Microsystems 8


Click Browse to locate the connection to the
MySQL Server.

Supply the appropriate credentials

Design and specify your query

In this example we are performing a simple


SELECT * FROM country;

Copyright © 2009, Sun Microsystems 9


Arrange your columns and rows

Choose your layout, color scheme and style

Review the report and click Run

Copyright © 2009, Sun Microsystems 10


You have now successfully generated a report
inside of Report Builder 2.0 which makes use of
data stored in a MySQL server.

Save the .rdl file on the Reporting Services


server

Conclusion
Windows remains a very popular MySQL development and production platform for ISVs, OEMs and
organizations looking to lower the costs associated with developing and deploying databases. In this
paper we covered how SQL Server DBAs can leverage their existing investments in technologies like
Microsoft SQL Server 2008 Reporting Services to generate reports from MySQL data sources. This
degree of interoperability between Microsoft technologies and MySQL highlights the ongoing popularity of
organizations leveraging both SQL Server and MySQL for specific database tasks.

Copyright © 2009, Sun Microsystems 11


MySQL on Windows Case Studies

Adobe Relies on MySQL to Make Creative Professionals More Productive

Adobe Systems is one of the largest software companies and is the leading provider of creative tools for
print, web, interactive, mobile, video and film. Adobe embeds MySQL into several Adobe Creative Suite 3
components, including Adobe Acrobat CS3, Adobe® Bridge CS3, and Adobe® Version Cue® CS3 so that
workgroups can work more efficiently on complex projects. For more information please visit:

http://www.mysql.com/why-mysql/case-studies/MySQL_CaseStudy_Adobe.pdf

NetQoS Delivers Distributed Network Management Solution with Embedded


MySQL

NetQoS delivers products and services that enable some of the world’s most demanding enterprises to
improve network performance. American Express, Barclays, Boeing, Chevron, Cisco, Citrix, DuPont, Sara
Lee, and Schlumberger are among the corporations that rely on NetQoS performance management
solutions to ensure consistent delivery of business critical applications, monitor application service levels,
troubleshoot problems quickly, contain infrastructure costs, and manage user expectations. To find the
right embedded database solution to fit its innovative product architecture, NetQoS evaluated everything
from flat-files to proprietary databases. NetQoS found that MySQL provided the ideal combination of
performance, reliability, and ease of administration on Windows. For more information please visit:

http://www.mysql.com/why-mysql/case-studies/mysql-netqos-casestudy.pdf

For a complete list of case studies and other resources concerning organizations making use of MySQL
on Windows, please visit:

http://www.mysql.com/customers/operatingsystem/?id=109

Resources

White Papers

http://www.mysql.com/why-mysql/white-papers/

Case Studies

http://www.mysql.com/why-mysql/case-studies/

Press Releases, News and Events

http://www.mysql.com/news-and-events/

Live Webinars

http://www.mysql.com/news-and-events/web-seminars/

Copyright © 2009, Sun Microsystems 12


Webinars on Demand

http://www.mysql.com/news-and-events/on-demand-webinars/

About MySQL
MySQL is the most popular open source database software in the world. Many of the world's largest and
fastest-growing organizations use MySQL to save time and money powering their high-volume Web sites,
critical business systems and packaged software -- including industry leaders such as Yahoo!, Alcatel-
Lucent, Google, Nokia, YouTube and Zappos.com. At http://www.mysql.com, Sun provides corporate
users with commercial subscriptions and services, and actively supports the large MySQL open source
developer community.

To discover how Sun’s offerings can help you harness the power of next-generation Web capabilities,
please visit http://www.sun.com/web.

Copyright © 2009, Sun Microsystems 13