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.
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
Hi,
Excel has limitation to 65k rows so how it extracts more than 65k rows?
Is it split to another cell?
Thanks
[quote user="poratips"]
[/quote]
Use versions starting from 2007
Yes. You can also split data to cell perhaps you can apply pagination technique
Refer point 4
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx
Thanks so much Madhivanan.
Managed Windows Shared Hosting by OrcsWeb