-->Write query you need in SQL Server.
--> Go to Excel --> Data --> From Other Sources --> From SQL Server
--> Type in the server name (in your case looks to be like butendiek) & enter the login name & password if its set & connect to the server
--> Once connected, Select the table you need, click next & Finish.
--> In the bottom, it will give you something like click here to cancel (as shown in screenshot), click on it & stop the query as this might not be what you want
--> Once thats done, click on the name of the server which will be the cell where you decide to put it initially, this will highlight the "Properties" tab in the data field
--> Click on properties & then properties again
--> Go to definition --> Change command type to SQL & paste your SQL command which you have.
--> Click okay & this will refresh your data & get the data you need
--> Once done, you can go back to the same tab & export the connection file, this can be opened whenever you need it & will refresh automatically since it is connected to SQL server.
Hope this helps
Attachment 385466
Bookmarks