SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 auto refresh Excel cell from Sql server at Real ti
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ashish16
Starting Member

India
3 Posts

Posted - 11/28/2013 :  03:48:58  Show Profile  Reply with Quote
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

India
52309 Posts

Posted - 11/28/2013 :  06:14:39  Show Profile  Reply with Quote
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

India
3 Posts

Posted - 11/28/2013 :  07:36:08  Show Profile  Reply with Quote
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

India
52309 Posts

Posted - 11/28/2013 :  07:59:44  Show Profile  Reply with Quote
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

India
3 Posts

Posted - 11/29/2013 :  00:02:57  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000