![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I want to organize data import from text files to SQL Server. The files are created by outer system on some events in this system, and then are sent via ftp to a server, where SQL Server is installed. I want to start DTS automatically in the moment the file is ftp-uploaded. The synchronus way is very important. I don't want to use any polling method., e.g. to look every minute in the ftp folder whether the new file has just been created/uploaded... I thought, I could use MS IIS FTP service and ODBC logging. I created 'ftplog' table in SQL, and built a trigger on insert which starts DTS. It works fine, but... A trigger must call xp_cmdshell to start DTS. I don't like to give this permission to the 'ftp odbc logging user'. Seems, I've chosen the wrong way. In the moment, I have no idea for any better solution. Any hint...? Regards, Filip |
#3
| |||
| |||
|
|
Have a windows service use the FileSystemWatcher in .Net and watch the directory. It's what I do. |
![]() |
| Thread Tools | |
| Display Modes | |
| |