Solved

Convert SSIS Package into VBA

Posted on 2007-04-05
4
744 Views
Last Modified: 2013-12-25
I would like to use vba to upload flat files into a SQL Server 2005 database.  SQL Server 2000 allowed you to record a DTS upload package in VBA but SQL Server 2005 does not offer this option.  Instead it allows you to record a SSIS upload package.  

Is there any way to create the vba code for uploading into SQL Server 2005 or convert the recorded SSIS package into VBA?

Thanks
0
Comment
Question by:Linda_Zhang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 18863863
I have never seen a SSIS package, but coding VBA to upload a file to SQL Server is fairly straight forward, and depends on the structure of the file.   How does the file look and how does the table look?
0
 
LVL 15

Accepted Solution

by:
CSLARSEN earned 500 total points
ID: 19282620
A colleague of mine made this work:
Use a command shell to run the SSIS package
Enter "dtexecui.exe" in start->Run

cheers
cslarsen
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

735 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