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

What are audit control procedures?

783


What is NOT NULL Constraint in sql server 2012?

771


Explain throw statement in sql server 2008?

771


how you can move data or databases between servers and databases in sql server? : Sql server administration

735


What are the recovery models for a database?

860


What is 2nf normalization form?

795


How to add code to the existing article (using improve article)?

839


When does a workload on SQL Azure get throttled?

127


How to select an exiting database using mssql_select_db()?

692


What are the indexes in sql server?

741


Show Practically Sql Server Views are updatable?

813


How can we rewrite sub-queries into simple select statements or with joins?

738


Explain cursor as data base object?

793


If the job running very slow what is the action you do

1622


How to create new table with "create table" statements?

749