|
-
Jul 18th, 2005, 04:21 PM
#1
Thread Starter
Junior Member
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
}
-
Jul 18th, 2005, 07:08 PM
#2
Re: Using DTS In SQL Server
try www.sqldts.com there's a lot of tutorials there that would walk u through it.
-
Jul 19th, 2005, 07:07 AM
#3
Fanatic Member
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
-
Jul 19th, 2005, 07:22 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|