Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Generate Excel From SQL Server

Generate Excel From SQL Server

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vvashishta
    wrote on last edited by
    #1

    I want to get data of a table in to an Excel direct from a SQL Query. Can anyone help? - Happy Coding - Vishal Vashishta

    G 1 Reply Last reply
    0
    • V vvashishta

      I want to get data of a table in to an Excel direct from a SQL Query. Can anyone help? - Happy Coding - Vishal Vashishta

      G Offline
      G Offline
      gonzalezmail1980h
      wrote on last edited by
      #2

      Hello, A quickly lookup in google.com, I´ve obtained this information:

      INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0',
      'Excel 8.0;Database=C:\testing.xls;',
      'SELECT Name, Date FROM [Sheet1$]')
      SELECT [Name], GETDATE() FROM msdb.dbo.sysjobs
      GO

      If you need more informtion, you can use this link: http://www.mssqltips.com/sqlservertip/1202/export-data-from-sql-server-to-excel/[^] Regards, David G. :-D

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups