MS Excel - Connect to a SQL Server database, run a query and get the results
Please read my new article MS Excel - Connect to a SQL Server database, run a query and get the results - Step by step which is more complete than this one.
Imagine you can execute a query like SELECT customer_id, first_name, last_name, email FROM customers ORDER BY last_name ASC;
in your Excel sheet and that Excel will connect your Microsoft SQL Server database, run the query there, get the result and put the data directly in your sheet. Would be nice, no?
Imagine your sheet has already a nice layout with colors, titles having filters enabled and f.i. has a name (like rngMyCustomers
). It would be nice if the updated data still keep all the layouts and just extends the name; no?
Stop imagining, it's just so easy!