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.

  1. in excel go data tab
  2. select relevant data source in "from other sources" drop down
  3. select sql server , give necessary conection information , select table wanted while navigating through.
  4. select "table" prefered view option , show table in excel.
  5. when change happen in database right click excel table , refresh it

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -