Global web icon
stackoverflow.com
https://stackoverflow.com/questions/18798522/how-t…
How to run a SQL query on an Excel table? - Stack Overflow
For what I'm trying to do, the SQL query SELECT lastname, firstname, phonenumber WHERE phonenumber IS NOT NULL ORDER BY lastname would do the trick. It seems too simple for it to be something that Excel can't do natively. How can I run a SQL query like this from within Excel?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/19755396/perfo…
Performing SQL queries on an Excel Table within a Workbook with VBA ...
I am trying to make an excel macro that will give me the following function in Excel: =SQL("SELECT heading_1 FROM Table1 WHERE heading_2='foo'") Allowing me to search (and maybe even insert) data ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/16818796/gener…
Generate sql insert script from excel worksheet - Stack Overflow
I have a large excel worksheet that I want to add to my database. Can I generate an SQL insert script from this excel worksheet?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/8756802/excel-…
Excel function to make SQL-like queries on worksheet data?
You can use Get External Data (despite its name), located in the 'Data' tab of Excel 2010, to set up a connection in a workbook to query data from itself. Use From Other Sources From Microsoft Query to connect to Excel Once set up you can use VBA to manipulate the connection to, among other thing, view and modify the SQL command that drives the query. This query does reference the in memory ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/27385245/using…
sql server - Using Excel VBA to run SQL query - Stack Overflow
I am fairly new to SQL and VBA. I have written a SQL query that I would like to be able to call and run from a VBA sub in an excel workbook and then bring the query results into the workbook.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/74159428/how-t…
excel - How to use a SQL Select statement with Power Query against an ...
Instead of creating 16 Power Queries and joining them into 4 queries (20 total query objects) I want to write a SQL statement that joins the tables and run it against each of the 4 different data sources. There's a chance that the SQL statement may need to be updated, so having it stored in one place will make future maintenance easier.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/74630026/promp…
Prompt for new SQL Server credentials in Excel - Stack Overflow
I was creating a SQL query in excel via Data > Get Data > From Database > From SQL Server Database button. During the creation, I accidently attempted to create the source using windows
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/71504398/pass-…
Pass parameter from Excel to SQL in PowerQuery
I want to set local variables or pass parameters from Excel to SQL. I've found similar questions, but all referred to old versions of Excel and/or the answers showed how to filter or manipulate output from a generic SQL query in the Power Query Editor, rather than pass a parameter or modify the SQL, so that the SQL Server supplies data in the ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/61671291/power…
Powerquery - reference Excel cell value within SQL query?
1 I am trying to modify an excel worksheet that was given to me, with a connection to a SQL database that looks as follows: select * from DB.AccountAssignments where Company_Code = '102' How can I replace the static 102 value to reference a specific cell in Excel? For example, cell A1?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/76072752/how-t…
How to connect to an SQL Server from VBA in Excel?
I need to download some data from a database (Microsoft Windows Server 2012, SQL Server 2012) into Excel (Windows 11, Office 2016). If it was a one-time data dump I'd just use Data -> Get Data -> From Database and use the resulting sheet.