问题
I am using Microsoft SQL Server Report Builder 3.0. And I have remote Linux Server(with certain IP) that have MySQL database. I want connect this MySQL database from Report Builder (in my PC), So that I can create some reports about it. How can i do that? Please help and Thanks.
回答1:
First, you need to download and install (32-bit or 64-bit) appropriate MySQL connector.
MySQL ODBC connector
After installation, you need to create ODBC Data Source Name (DSN) on this way:
- Open Control Panel -> Administrative Tools -> ODBC Data Sources (32-bit or 64-bit, depending of installed connector)
- Choose System DSN tab and click on Add
- In dialog window, choose installed connector for MySQL
- In new dialog window populate Data source name field with descriptive name, fill MySQL server address and port (IP address or server network name) and fill credentials that have enough permissions to MySQL server. Catalog field is optional field. Test the connection.
- Open Microsoft Report Builder 3.0, and create new report. While creating dataset, you need to choose data source. Click New Data Source (or just New) and in the dialog window for Connection type, choose ODBC and in the Connection string choose Build option.
- In new dialog window, in Data source specification section choose your DSN that you created in stages 2, 3 and 4 and test connection.
- Voila :)
来源:https://stackoverflow.com/questions/36495451/how-to-set-datasource-for-mysql-database-in-microsoft-sql-report-builder-3-0