dbTalk Databases Forums  

running the DTS. When can you?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss running the DTS. When can you? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric Throckmorton
 
Posts: n/a

Default running the DTS. When can you? - 04-19-2004 , 02:47 PM






Hello all,
I want to be able to upload an excel file with the fields layed out a
certain way and create a database and a table and insert the rows from the
excel file into that table. I have everthing set up do do that except I
have to go into enterprise manager in order to import the excel file to a
database. After it is imported into a temp table I run the code to place it
where it needs to go.

How would I use the DTS through code and a file upload html control to get
this excel file into the temp db and name the table?

Thank-you,
Eric



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: running the DTS. When can you? - 04-19-2004 , 03:31 PM






You can easily build the package | Save it

You can then call the Package through code using the object model if you
wish.

Things to be aware of though

DTS is client side so resources are relative to the box executing the
package. e.g. A reference to a file on your X drive may mean next to
nothing to any other PC except yours.

Here are some resources for you to look at

Execution
(http://www.sqldts.com/Default.aspx?104)

Administration & Management
(http://www.sqldts.com/Default.aspx?105)

And

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Eric Throckmorton" <eric (AT) contractorsunlimited (DOT) com> wrote

Quote:
Hello all,
I want to be able to upload an excel file with the fields layed out a
certain way and create a database and a table and insert the rows from
the
excel file into that table. I have everthing set up do do that except I
have to go into enterprise manager in order to import the excel file to a
database. After it is imported into a temp table I run the code to place
it
where it needs to go.

How would I use the DTS through code and a file upload html control to get
this excel file into the temp db and name the table?

Thank-you,
Eric





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.