How to export SQLserver database to Excel?

1. Method: Create a new Excel directly on the left and reference it from the database!
Insert image description here
2. Open Excel, the cursor is automatically located at A1, don’t worry, data → Get data → From database → From SQL server database
Insert image description here
3. After pressing Enter,
Insert image description here
fill in your computer name as the server name as shown below (view method at the end of the article), fill in the first Just enter the input box and press Enter. There is no need to fill in the second input box
Insert image description here
4. I directly filled in the above picture and pressed Enter as shown below: Select the table of the selected database and click the lowered load button! (You can also select multiple tables)
Insert image description here

How to check the server name of your own computer:
This computer → Properties, the device name is the server name
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_47246285/article/details/130833419