![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This is a "repost" continuing where a post left off. The subject has changed. The original post was "bas file does nothing". I get the following error when executing a package from vb script: Source: Microsoft Data Transformation Services Flat File Rowset Provider Description: Incomplete file format information - file cannot be opened. Darren wrote: Flat File Rowset Provider is the text file driver, so that is the error source basically. Sounds like something if wrong in that area, or just missing information, maybe a record terminator. Then I wrote: Darrel, this is not all that surprising. The record terminator is a pipe + a return character that appears as a square in notepad. It translates to chr(10) in visual basic. I can't get bulk copy to recognized it to save my life, which is why I'm trying to make it happen with DTS. MS Access can deal with it. DTS has no problem with the file when I run the local package from within Enterprise manager. Why does it cough when I run it from the VB script? (The vb script was created when I saved the package as visual basic from the DTS wizard.) Also, is there a spot in the code where I can define the record terminator?...I could not find one in the bas that Ent Mgr created. |
#3
| |||
| |||
|
|
What would be the line item in the code to do this? For example, thel line item for the column delimiter is: oConnection.ConnectionProperties("Column Delimiter") = "|" Without SQL 2000 to hand I assume - |
|
"Darren Green" wrote: In message <15D4EB38-8600-4B7B-9C5A-30E52D6FC4B1 (AT) microsoft (DOT) com>, TomTait747 <TomTait747 (AT) discussions (DOT) microsoft.com> writes This is a "repost" continuing where a post left off. The subject has changed. The original post was "bas file does nothing". I get the following error when executing a package from vb script: Source: Microsoft Data Transformation Services Flat File Rowset Provider Description: Incomplete file format information - file cannot be opened. Darren wrote: Flat File Rowset Provider is the text file driver, so that is the error source basically. Sounds like something if wrong in that area, or just missing information, maybe a record terminator. Then I wrote: Darrel, this is not all that surprising. The record terminator is a pipe + a return character that appears as a square in notepad. It translates to chr(10) in visual basic. I can't get bulk copy to recognized it to save my life, which is why I'm trying to make it happen with DTS. MS Access can deal with it. DTS has no problem with the file when I run the local package from within Enterprise manager. Why does it cough when I run it from the VB script? (The vb script was created when I saved the package as visual basic from the DTS wizard.) Also, is there a spot in the code where I can define the record terminator?...I could not find one in the bas that Ent Mgr created. I think the key is "there a spot in the code", if this spot is supposed to be the Chr(10), then you will need to code it as such, as in Propert.Value = Chr(10) + "|" I assume the scripting method just takes the delimiter value and wraps it in quotes, without checking that the delimiter is indeed a printable character. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#4
| |||
| |||
|
|
In message <AD8BD6CB-B808-4BDC-B8B5-C6160B9A075E (AT) microsoft (DOT) com>, TomTait747 <TomTait747 (AT) discussions (DOT) microsoft.com> writes What would be the line item in the code to do this? For example, thel line item for the column delimiter is: oConnection.ConnectionProperties("Column Delimiter") = "|" Without SQL 2000 to hand I assume - oConnection.ConnectionProperties("Row Delimiter") = Chr(10) Have a look where the so called spot is, as that is probably the Chr(10) incorrectly displayed. "Darren Green" wrote: In message <15D4EB38-8600-4B7B-9C5A-30E52D6FC4B1 (AT) microsoft (DOT) com>, TomTait747 <TomTait747 (AT) discussions (DOT) microsoft.com> writes This is a "repost" continuing where a post left off. The subject has changed. The original post was "bas file does nothing". I get the following error when executing a package from vb script: Source: Microsoft Data Transformation Services Flat File Rowset Provider Description: Incomplete file format information - file cannot be opened. Darren wrote: Flat File Rowset Provider is the text file driver, so that is the error source basically. Sounds like something if wrong in that area, or just missing information, maybe a record terminator. Then I wrote: Darrel, this is not all that surprising. The record terminator is a pipe + a return character that appears as a square in notepad. It translates to chr(10) in visual basic. I can't get bulk copy to recognized it to save my life, which is why I'm trying to make it happen with DTS. MS Access can deal with it. DTS has no problem with the file when I run the local package from within Enterprise manager. Why does it cough when I run it from the VB script? (The vb script was created when I saved the package as visual basic from the DTS wizard.) Also, is there a spot in the code where I can define the record terminator?...I could not find one in the bas that Ent Mgr created. I think the key is "there a spot in the code", if this spot is supposed to be the Chr(10), then you will need to code it as such, as in Propert.Value = Chr(10) + "|" I assume the scripting method just takes the delimiter value and wraps it in quotes, without checking that the delimiter is indeed a printable character. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#5
| |||
| |||
|
|
I've looked at and around the spot to no avail. It isn't displayed at all. My mission just got a lot tougher. I need to automate the importation |
|
"Darren Green" wrote: In message <AD8BD6CB-B808-4BDC-B8B5-C6160B9A075E (AT) microsoft (DOT) com>, TomTait747 <TomTait747 (AT) discussions (DOT) microsoft.com> writes What would be the line item in the code to do this? For example, thel line item for the column delimiter is: oConnection.ConnectionProperties("Column Delimiter") = "|" Without SQL 2000 to hand I assume - oConnection.ConnectionProperties("Row Delimiter") = Chr(10) Have a look where the so called spot is, as that is probably the Chr(10) incorrectly displayed. "Darren Green" wrote: In message <15D4EB38-8600-4B7B-9C5A-30E52D6FC4B1 (AT) microsoft (DOT) com>, TomTait747 <TomTait747 (AT) discussions (DOT) microsoft.com> writes This is a "repost" continuing where a post left off. The subject has changed. The original post was "bas file does nothing". I get the following error when executing a package from vb script: Source: Microsoft Data Transformation Services Flat File Rowset Provider Description: Incomplete file format information - file cannot be opened. Darren wrote: Flat File Rowset Provider is the text file driver, so that is the error source basically. Sounds like something if wrong in that area, or just missing information, maybe a record terminator. Then I wrote: Darrel, this is not all that surprising. The record terminator is a pipe + a return character that appears as a square in notepad. It translates to chr(10) in visual basic. I can't get bulk copy to recognized it to save my life, which is why I'm trying to make it happen with DTS. MS Access can deal with it. DTS has no problem with the file when I run the local package from within Enterprise manager. Why does it cough when I run it from the VB script? (The vb script was created when I saved the package as visual basic from the DTS wizard.) Also, is there a spot in the code where I can define the record terminator?...I could not find one in the bas that Ent Mgr created. I think the key is "there a spot in the code", if this spot is supposed to be the Chr(10), then you will need to code it as such, as in Propert.Value = Chr(10) + "|" I assume the scripting method just takes the delimiter value and wraps it in quotes, without checking that the delimiter is indeed a printable character. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
![]() |
| Thread Tools | |
| Display Modes | |
| |