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

Difference between drill down and drill through report.

547


Explain what is dbcc?

597


Can you explain what are various ways to enhance the ssrs report?

585


How can I check that whether automatic statistic update is enabled or not?

559


What are the commands used in DCL?

564






Why use stored procedures in sql server?

557


Why are you getting errors when creating a new odbc dsn?

593


How to deploy the Report?

95


What are group functions in query statements in ms sql server?

557


Where the sql logs gets stored? : sql server database administration

534


What are the restrictions applicable while creating views? : SQL Server Architecture

588


What are the types of user defined functions in sql server?

504


How much is a sql server license?

510


Write a SQL queries on Self Join and Inner Join.

619


how can u get last observation in an unknown dataset ?

2003