sql server 2008 - is there any Query to save the Data in Excel File -
i have table students contains 100 records.
now i'm going run query
select * students
i copy students data , paste in excel file
after time inserted 100 records again i'm going run query copy data , paste in excel file
every time copied , paste in excel file.
is there alternate way or query directly save data in excel file
simplest way accessing database table creating data connection excel. assume using sql server database.
- in excel go data tab
- select relevant data source in "from other sources" drop down
- select sql server , give necessary conection information , select table wanted while navigating through.
- select "table" prefered view option , show table in excel.
- when change happen in database right click excel table , refresh it
Comments
Post a Comment