Importing text file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi and TIA. Using VS.Net 2003 I built an ASP.Net Web application using
VB.Net. I connect to an SQL db(SQL Server 2000) and am setup to
write/read/edit data no problem. I'm having a problems with the following
scenario. Any help, advice, or if you could point me in the right direction
is highly appreciated.

1. The user clicks a button which opens the Find file dialogue box.
2. They navigate to the text(or possible dbf file) and click ok.
3. The a temp table is created and the text(dbf) file is imported
creating the temp table
4. A procedure is run the takes my active data(an existing table) and
archives(appends) that data to an archive table. Before this though the
data in the archive table needs to be deleted.
5. The data from my live table is deleted.
6. Data from my imported temp table is appended to the live table.
7. Temp table is deleted.

I read some stuff about DTS packages but I'm not real familiar with SQL
Server and don't know how exactly to call the DTS package from my
application and/or if DTS is actually the way to go. The text file is
delimited and contains field names that will map directly to my existing
tables. Not looking for a hand out so if you could get me pointed in the
right direction I'm not against doing more research, but at this time I'm
not exactly sure where to start. Thanks again for your time.


.



Relevant Pages

  • problem with SQL Server 2005 sp called from VC++ 6.0
    ... We have a very large & complex SQL ... logic and updates all columns and rows (using cursors from temp ... When we run it within SQL Server Management Studio - basically doing ...
    (microsoft.public.vc.mfc)
  • problem with SQL Server 2005 sp called from VC++ 6.0
    ... We have a very large & complex SQL ... logic and updates all columns and rows (using cursors from temp ... When we run it within SQL Server Management Studio - basically doing ...
    (microsoft.public.vc.language)
  • SQL Server 2005 - stored proc w/temp tables & cursors works from Management Studio, but fail
    ... We have a very large & complex SQL ... logic and updates all columns and rows (using cursors from temp ... When we run it within SQL Server Management Studio - basically doing ...
    (microsoft.public.vc.database)
  • Re: SQL/OLEDB/JET
    ... > when attempting to read/write to Excel from within SQL ... > Server (e.g. using the OpenRowset command, ... > that the TEMP variable is set correctly. ... The SQL Server service emulates the authority of the user authenticating ...
    (microsoft.public.sqlserver.programming)
  • Re: Importing from file -- alternatives
    ... I'm working on a legacy app, that calls some DTS packages to import ... The DTS packages are on a SQL 2000 server, ... Rewriting the whole app as a SSIS package is probably doable, ...
    (microsoft.public.sqlserver.programming)