How to give a user the option of importing Excel and a
delimited text file into a SQL Server Database without
manually using SQL DTS?

Answer Posted / guest

You can use the DTS object model to programmatically create,
modify and run DTS packages.
You can do this many ways, but essentially this object model
has objects for anything you can do in DTS.
If you already have the package created and saved as a file,
add a reference to the DTS Library.
Then you can call it like this:

Dim Package As New DTS.Package

Package.LoadFromStorageFile App.Path "\DTSPackage.dts"
Package.Execute

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you prefer to have a minimum number of indexes?

503


Why de-normalization required?

569


Data table as parameter in sql server?

560


What is implicit mode in sql server?

557


What are various ways to enhance the ssrs report?

528






What are the steps to insert a table?

539


How to encrypt Strored Procedure in SQL SERVER?

551


What structure can you implement for the database to speed up table reads?

706


What are the differences between stored procedure and the dynamic sql?

571


Explain the creation and execution of a user-defined function in the sql server?

575


What is log shipping? Can we do logshipping with SQL Server 7.0 ?

570


What is sql view?

540


what are defaults? : Sql server database administration

513


Explain the working of sql privileges?

606


Can we linked SharePoint to a SQL database?

587