Home » excel » export data from sql server 2000 to excel

export data from sql server 2000 to excel

Posted by: admin May 14, 2020 Leave a comment

Questions:

Is it any method or way to export or transfer the data from sql server 2000 to excel sheet ?

How to&Answers:

to create an EXCEL file in advance and want to export data to it, use

EXEC sp_makewebtask 
@outputfile = 'd:\testing.xls', 
@query = 'Select * from Database_name..SQLServerTable', 
@colheaders =1, 
@FixedFont=0,@lastupdated=0,@resultstitle='Testing details'

(Now you can find the file with data in tabular format)