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)
 auto refresh Excel cell from Sql server at Real ti

Author  Topic 

Ashish16
Starting Member

3 Posts

Posted - 2013-11-28 : 03:48:58
Remove alert | Edit | Change type
Question
You cannot vote on your own post
0
Hi all,

I have Sql database which is getting updated at real time,I want this updated data to populate on my Excel sheet at the same time.

My database is getting updated with share market price,commodity and all.

Do anybody have idea how to achieve this in most efficient way.I am using Sql server 2005.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-11-28 : 06:14:39
one way of doing this is to have a logic within your update procedure/code to fire a sql agent job. The job will on the backend call SSIS package or use distributed query methods in T-SQL like OPENROWSET which will update the required data to your excel sheet. I hope excel sheet would be in a predefined remote location which the logged in user will have access to.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

Ashish16
Starting Member

3 Posts

Posted - 2013-11-28 : 07:36:08
I am trying it with ssis instead of sql agent i tried trigger to my package on after insert which is not working at all and its corrupted my table instead.The another problem i am facing is that i wann keep my excel book open while executing my ssis package but its giving me error on open workbook,everytime i had to close my excel then and then only i can test my project.
Any suggestion???
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-11-28 : 07:59:44
quote:
Originally posted by Ashish16

I am trying it with ssis instead of sql agent i tried trigger to my package on after insert which is not working at all and its corrupted my table instead.The another problem i am facing is that i wann keep my excel book open while executing my ssis package but its giving me error on open workbook,everytime i had to close my excel then and then only i can test my project.
Any suggestion???


you cant keep it open whilst ssis is refreshing the data in it. you can only test the output after ssis finishes the data population.
How did you call package from trigger? using dtexec?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

Ashish16
Starting Member

3 Posts

Posted - 2013-11-29 : 00:02:57
ya i am using cmdshell dtexec but it is corrupting my database and sometime my system get hung for long time of duration.
Is there any other way to achieve the same as any data will enter in my database my package should run and give me output.
Go to Top of Page
   

- Advertisement -