![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, Is it possible to have within a DTS package a task that would open a Text file using KEDIT or any other text editor then save the text file. After file is saved, the text file will be copied (column to column) into a SQL server table. any ideas will be highly appreciated thanks a lot ! |
#3
| |||
| |||
|
|
-----Original Message----- What do you want to do with the text file? Why OPEN/CLOSE? Yes it is possible just curious as to whther there is a different way to do what you want. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:05ce01c3da43$0a525de0$a401280a (AT) phx (DOT) gbl... Hello, Is it possible to have within a DTS package a task that would open a Text file using KEDIT or any other text editor then save the text file. After file is saved, the text file will be copied (column to column) into a SQL server table. any ideas will be highly appreciated thanks a lot ! . |
#4
| |||
| |||
|
|
Hi Allan, Every week/month a text file is placed in a network directory, this text file has some work to do before it gets ready to be copied into A SQL Server Tbl. First, the first two lines need to be deleted, second, at the third line, the last header column name need to be changed to "Cur Cod2" and lastly save the file. If i can manage to do these tasks within a DTS package, then the only thing left to do in the package will be just to copy (column to column) to the SQL Srvr Tbl. I hope this clarify what i am trying to do. thanks a lot!! for any ideas as to how to implement this DTS text file tasks. martino -----Original Message----- What do you want to do with the text file? Why OPEN/CLOSE? Yes it is possible just curious as to whther there is a different way to do what you want. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:05ce01c3da43$0a525de0$a401280a (AT) phx (DOT) gbl... Hello, Is it possible to have within a DTS package a task that would open a Text file using KEDIT or any other text editor then save the text file. After file is saved, the text file will be copied (column to column) into a SQL server table. any ideas will be highly appreciated thanks a lot ! . |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
-----Original Message----- Ahhhh OK I would 1. open the text file up in a piece of VB Script. 2. Miss the first two lines 3. Staring at line 3 write out to another text file changing the last col to "cur Cod2" 4. Save the text file to wherever 5. Set the flat file Source/Destination DataSource property to the location of your new text file. -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:0bf601c3daba$cdb0e3c0$a601280a (AT) phx (DOT) gbl... Hi Allan, Every week/month a text file is placed in a network directory, this text file has some work to do before it gets ready to be copied into A SQL Server Tbl. First, the first two lines need to be deleted, second, at the third line, the last header column name need to be changed to "Cur Cod2" and lastly save the file. If i can manage to do these tasks within a DTS package, then the only thing left to do in the package will be just to copy (column to column) to the SQL Srvr Tbl. I hope this clarify what i am trying to do. thanks a lot!! for any ideas as to how to implement this DTS text file tasks. martino -----Original Message----- What do you want to do with the text file? Why OPEN/CLOSE? Yes it is possible just curious as to whther there is a different way to do what you want. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:05ce01c3da43$0a525de0$a401280a (AT) phx (DOT) gbl... Hello, Is it possible to have within a DTS package a task that would open a Text file using KEDIT or any other text editor then save the text file. After file is saved, the text file will be copied (column to column) into a SQL server table. any ideas will be highly appreciated thanks a lot ! . . |
#7
| |||
| |||
|
|
-----Original Message----- You can use an ActiveX scipt to import the data and skip the first 2 lines. Rand This posting is provided "as is" with no warranties and confers no rights. . |
#8
| |||
| |||
|
|
Thanks a lot! Do you have a sample about these tasks, something that get me started. martino -----Original Message----- Ahhhh OK I would 1. open the text file up in a piece of VB Script. 2. Miss the first two lines 3. Staring at line 3 write out to another text file changing the last col to "cur Cod2" 4. Save the text file to wherever 5. Set the flat file Source/Destination DataSource property to the location of your new text file. -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:0bf601c3daba$cdb0e3c0$a601280a (AT) phx (DOT) gbl... Hi Allan, Every week/month a text file is placed in a network directory, this text file has some work to do before it gets ready to be copied into A SQL Server Tbl. First, the first two lines need to be deleted, second, at the third line, the last header column name need to be changed to "Cur Cod2" and lastly save the file. If i can manage to do these tasks within a DTS package, then the only thing left to do in the package will be just to copy (column to column) to the SQL Srvr Tbl. I hope this clarify what i am trying to do. thanks a lot!! for any ideas as to how to implement this DTS text file tasks. martino -----Original Message----- What do you want to do with the text file? Why OPEN/CLOSE? Yes it is possible just curious as to whther there is a different way to do what you want. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. 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 "martino rivaplata" anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:05ce01c3da43$0a525de0$a401280a (AT) phx (DOT) gbl... Hello, Is it possible to have within a DTS package a task that would open a Text file using KEDIT or any other text editor then save the text file. After file is saved, the text file will be copied (column to column) into a SQL server table. any ideas will be highly appreciated thanks a lot ! . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |