Solved

XML Export: SSAS?

Posted on 2008-10-16
7
538 Views
Last Modified: 2016-02-12
I recently built a stored procedure that uses a cursor to loop on a recordset of attorneys, builds a temporary view containing calendar events for each attorney, and exports that view to an external XML file.  The temporary view and XML export code works, but I had to do some funky stuff with the code to get it to work.  This made me start thinking about SSIS.  

Is an XML export type of thing that SSIS is made for?  Additionally, the sproc described above is just one of several in my project.  Can I call an SSIS procedure from a TSQL sproc?
0
Comment
Question by:jdana
  • 3
  • 2
7 Comments
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22731515
You need to use a XML task for source or destination?
You can call a SSIS package from a Stored Procedure directly or from a SQL Job.
Give more feedback!
regards!
0
 

Author Comment

by:jdana
ID: 22731610
If SSIS is appropriate, I'd use it as an XML source.
I'm pumping the XML files to a web server where I front them with PHP.
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22731725
You need to read XML source and where you need to insert data? In database?
Regards
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:jdana
ID: 22736081
The data resides IN the database.  The database EXPORTS XML files.  The website READS the XML files.
0
 
LVL 17

Accepted Solution

by:
HoggZilla earned 250 total points
ID: 22742689
To call an SSIS Package from T-SQL, use the sp_start_job procedure:
USE msdb;
GO
EXEC dbo.sp_start_job N'SSIS_PACKAGE_NAME';
GO
 
Here is an example of a way to use the .NET Script Componenty with your Stored Procedure and produce an XML destination:
http://www.sqldbatips.com/showarticle.asp?ID=23
 
 
0
 

Author Closing Comment

by:jdana
ID: 31506742
Thanks Hoggzilla,

Perfect solution
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sqlquerystress - To test db performance 8 42
Server running out of memory - Something is consuming all the available memory 17 61
SQL Update trigger 5 18
Query Syntax 17 36
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question