Results 1 to 4 of 4

Thread: Using DTS In SQL Server

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    26

    Using DTS In SQL Server

    Ok if i use DTS. can i set this up...


    WHILE NOT EOF
    {
    1)GET RECORD from input text file
    2)run update on table 1 using record
    3)run update on table 2 using record
    4)run update on table 3 using record
    2)run delete on table 4 using record
    }

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Using DTS In SQL Server

    try www.sqldts.com there's a lot of tutorials there that would walk u through it.

  3. #3
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016

    Re: Using DTS In SQL Server

    You can create and ActiveX script task that allows you to use VBScript to do just what you ask. If you are familiar w/ writing ASP web pages, it is very similar.

    You could also upload your text file into a temporary table and then use T-SQL to update/delete from your tables. That may be quicker than trying to process each individual record in the file one at a time.
    Chris

    Master Of My Domain
    Got A Question? Look Here First

  4. #4
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: Using DTS In SQL Server

    Take a look at this example at www.sqldts.com.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width