Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Export data to excel 2007

Author  Topic 

YogeshDesai
Posting Yak Master

136 Posts

Posted - 2007-06-12 : 03:25:49
Hi Guys,

I am trying to export data from database to excel 2007 file on my machine.
I have downloaded the provider for office 2007 and I have XP with sp2 and SQL server 2005 with SP2.
I havn't installed office 2007 on my machine,but I have a excel file which is created in office 2007.To get acess of read and write i have downloaded office compatibilty pack too,So I can read and write into the file.
Now I am creating one SSIS package to export data into excel file.But I m not able to coause I am getting some errors like

"test connection failed because of an error in intializing provider. Invalid UDl file"

"Test connection is failed because of an error in intializing provider.Not a valid file name".

Please help or suggest how to export data from database to 2007 excel file.

Yogesh V. Desai. | SQLDBA|

YogeshDesai
Posting Yak Master

136 Posts

Posted - 2007-06-13 : 02:13:38
Hi guys The problem has been resolved now.I just make some changes in SSIS connection properties and it's working fine now.

Yogesh V. Desai. | SQLDBA|
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2007-06-13 : 12:17:18
Yogesh
Can you please let us know what changes you made...might save somebody another post..
regards
Paresh

Regards
Paresh Motiwala
Boston, USA
Go to Top of Page

YogeshDesai
Posting Yak Master

136 Posts

Posted - 2007-06-27 : 03:42:53
Yes Sure, I would like to share, When you will connect to office 2007 using SSIS choose the
1. Drag the OLE DB Source on the window
2. Double click OleDB source task
3. Select CreateNew Connection
4. In the connection Manager Option Choose the provider for excel 2007 the provider is " Microsoft 12.0 Access Database Engine OLeDB Provider"
5. Click on the Data links Button.
6 It will open Datalink Properties
7 Click on advanced tab
8 Click on the proper access permissions
9 Click on all tab
10 Select data Source and click on the button edit value
11 enter the path of your .xlsx or .xls file say okay
12 then select Extended properties and click on edit the value
13 Enter the following value "Excel 12.0;HDR=YES"
14 Click ok and exit from all the windows


Then Click opn

Yogesh V. Desai. | SQLDBA|
Go to Top of Page

ikrava
Starting Member

1 Post

Posted - 2008-06-17 : 09:03:44
I’m trying to export data from SQL Server 2005 into MS Excel 2007. I find the instruction on this forum:
1. Drag the OLE DB Source on the window
2. Double click OleDB source task
3. Select CreateNew Connection
4. In the connection Manager Option Choose the provider for excel 2007 the provider is " Microsoft 12.0 Access Database Engine OLeDB Provider"
5. Click on the Data links Button.
6 It will open Datalink Properties
7 Click on advanced tab
8 Click on the proper access permissions
9 Click on all tab
10 Select data Source and click on the button edit value
11 enter the path of your .xlsx or .xls file say okay
12 then select Extended properties and click on edit the value
13 Enter the following value "Excel 12.0;HDR=YES"
14 Click ok and exit from all the windows

File xlsx was created, but I couldn’t read it. I had the message from MS Excel : MS Excel can not open the file because the format is not valid.
After that I change file name on xls. Excel opened this file successfully.
Can anybody help me, please. Why I can’t open MS Excel 2007 file?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-21 : 21:10:43
Try this also
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-22 : 03:26:28
quote:
Originally posted by ikrava

I’m trying to export data from SQL Server 2005 into MS Excel 2007. I find the instruction on this forum:
1. Drag the OLE DB Source on the window
2. Double click OleDB source task
3. Select CreateNew Connection
4. In the connection Manager Option Choose the provider for excel 2007 the provider is " Microsoft 12.0 Access Database Engine OLeDB Provider"
5. Click on the Data links Button.
6 It will open Datalink Properties
7 Click on advanced tab
8 Click on the proper access permissions
9 Click on all tab
10 Select data Source and click on the button edit value
11 enter the path of your .xlsx or .xls file say okay
12 then select Extended properties and click on edit the value
13 Enter the following value "Excel 12.0;HDR=YES"
14 Click ok and exit from all the windows

File xlsx was created, but I couldn’t read it. I had the message from MS Excel : MS Excel can not open the file because the format is not valid.
After that I change file name on xls. Excel opened this file successfully.
Can anybody help me, please. Why I can’t open MS Excel 2007 file?




http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3110742&SiteID=17
Go to Top of Page

Starlet_GT
Yak Posting Veteran

81 Posts

Posted - 2009-07-23 : 06:25:51
I have established connection sucessfully with the above help ... now I am having problem in dropping excel 2007 sheet. I execute query to [drop table `Sheet1`] and it executed sucessfully but when i create table `sheet1` then it gives me error that table already exists ... its mean it delete rows only not table ... whereas in excel 2003 i do the same and it gives me no error
Go to Top of Page

mano_j85
Starting Member

1 Post

Posted - 2010-11-17 : 00:19:42
Hi Guys,

I want to export sql report to excel 2007 using query.

Can anyone help me...?


I tried a new linked server and used the Microsoft office 12.0 ACE OLE DB Provider as connection string but i get the error saying "Microsoft office 12.0 ACE OLE DB Provider" is not registered.


What should i do...?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-11-17 : 04:29:57
You need to install ACE OLE DB provider

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Jinasoso
Starting Member

5 Posts

Posted - 2011-02-17 : 23:03:53
I think that one free data export component can help you.
You can download it from http://www.e-iceblue.com/Download/download-dataexport-for-net-now.html to test
Go to Top of Page
   

- Advertisement -