Click here to Skip to main content
15,851,335 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,
I need to export the data from a particular table in my database to Excel files (.xls/.xlsx) that will be located into a shared folder into my network. Now the situation is like this -

1. I need to use SQL SERVER Agent Jobs.
2.I need to generate a new excel file in every 2 minutes that will contain the refreshed data.

I am using sql server 2008 that doesn't include BI development studio. I'm clueless how to solve this situation. First, I'm not sure how to export the data using jobs because every possible ways I tried had some issues with the OLEDB connection. The 'sp_makewebtask' is also not available in SQL 2008. And I'm also confused how to dynamically generate the names of the files.

Any reference or solution will be helpful.
Posted
Comments
coded007 27-Sep-13 7:11am    
There is a no such procedure, try to install BI studio so that you can achieve your task by creating SSIS jobs
Raja Sekhar S 27-Sep-13 7:32am    
To allow OLEDB Connection Use this..
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1;
GO
Rakshith Kumar 28-Oct-13 5:16am    
u can try using ssis tool

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900