SQL Backup Pro
Getting started with SSIS - Part 1: Introduction to SSIS
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.
Loading

Ask in the public forum

Ask your questions in a public forum

My Blog Posts

SQL Server Monitoring
  • Export to Excel

    I want to export my data from SQL to excel.

    I fetch my data through sql query and save results to an excel file always in this query itself.

    So help me out in this guys.

    GeekInGoa
    805 · 0% · 18

4  Replies  

Subscribe to Notifications
  • You can use OPENROWSET to perform this

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
        'Excel 8.0;Database=D:\testing.xls;',
        'SELECT * FROM [SheetName$]') select * from SQLServerTable

    
    

    Madhivanan
    3 · 34% · 5789

Your Reply


Sign Up or Login to post an answer.

Managed Windows Shared Hosting by OrcsWeb

Copyright © Beyondrelational.com