简体   繁体   English

如何将 Excel 与 SQL 数据库连接?

[英]How to connect Excel with SQL Database?

I work as a consultant for a data-driven decision making consulting projects, so every day, I need to cleaning data, analyze, as well as, present our financial analysis.我担任数据驱动决策咨询项目的顾问,所以每天我都需要清理数据、分析以及展示我们的财务分析。 Most of our tasks require the same type of financial data as well as financial analysis, so instead of using Microsoft Excel to do this, which is quite slow for solving a huge amount of data, I would like to ask for your help that is there any simple model (necessary software, method of importing and exporting data among different software) for data cleaning and analysis by SQL and Excel?我们的大多数任务都需要相同类型的财务数据以及财务分析,所以不要使用微软 Excel 来做这个,这对于解决大量数据来说是相当慢的,我想请你帮忙,那里有SQL 和 Excel 进行数据清理和分析的任何简单 model(必要软件,不同软件之间导入和导出数据的方法)?

If using Excel 2019 try pressing the short key如果使用 Excel 2019 尝试按快捷键

Alt + A + P + N + D + S Alt + A + P + N + D + S

or go to "Data" main menu, then in that there is a button "Get Data", then there is "From Database", then take "From SQL Database"或 go 到“数据”主菜单,然后有一个“获取数据”按钮,然后是“从数据库”,然后选择“从 SQL 数据库”

Specify the connection details and the query.指定连接详细信息和查询。 The data will be loaded on to excel.数据将加载到 excel。 From which you can start processing.您可以从中开始处理。

When you connect SQL to Excel, beware of then using Excel as if it were a database itself.当您将 SQL 连接到 Excel 时,请注意使用 Excel,就好像它是数据库本身一样。 There are a couple of tell-tale signs that you are using Excel as a database, some are listed at https://www.crmsoftwareblog.com/2022/03/yes-you-can-connect-excel-to-sql-server-dynamics-365-and-more/有几个迹象表明您正在使用 Excel 作为数据库,其中一些列在https://www.crmsoftwareblog.com/2022/03/yes-you-can-connect-excel-to-sql- server-dynamics-365-and-more/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM