![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#3
| |||
| |||
|
|
Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#4
| |||
| |||
|
|
Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#5
| |||
| |||
|
|
It is either fixed length or it is not. If all the columns are not the same width in all the rows for each column it is not a fixed width. Or the file needs manual work to get it there. Without delimiters you need some way to determine where one column starts and one ends. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:9636EC2C-EF2D-40D3-8002-5D9094BE5823 (AT) microsoft (DOT) com... Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#6
| |||
| |||
|
|
Dont know the terminology so I will explain this the best I can. Every field is in a fixed postion. See example Field Type RG Line Column Width Print Width ----------------------------------------------------------------------------------------- :WALM816Btest: Literal Text 0 1 1 0 10 0000 Literal Text 0 2 1 1 4 BHT02 AlphaNumeric 0 2 5 2 2 BHT01 AlphaNumeric 0 2 7 4 4 BHT03 AlphaNumeric 0 2 11 50 50 "Andrew J. Kelly" wrote: It is either fixed length or it is not. If all the columns are not the same width in all the rows for each column it is not a fixed width. Or the file needs manual work to get it there. Without delimiters you need some way to determine where one column starts and one ends. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:9636EC2C-EF2D-40D3-8002-5D9094BE5823 (AT) microsoft (DOT) com... Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#7
| |||
| |||
|
|
Now you have lost me even more<g>. Are you saying that a data row spans multiple rows in the file? Can you just post a sample of the actual file? -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:8B6A40D9-94CF-439F-B8F7-D5968814B400 (AT) microsoft (DOT) com... Dont know the terminology so I will explain this the best I can. Every field is in a fixed postion. See example Field Type RG Line Column Width Print Width ----------------------------------------------------------------------------------------- :WALM816Btest: Literal Text 0 1 1 0 10 0000 Literal Text 0 2 1 1 4 BHT02 AlphaNumeric 0 2 5 2 2 BHT01 AlphaNumeric 0 2 7 4 4 BHT03 AlphaNumeric 0 2 11 50 50 "Andrew J. Kelly" wrote: It is either fixed length or it is not. If all the columns are not the same width in all the rows for each column it is not a fixed width. Or the file needs manual work to get it there. Without delimiters you need some way to determine where one column starts and one ends. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:9636EC2C-EF2D-40D3-8002-5D9094BE5823 (AT) microsoft (DOT) com... Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#8
| |||
| |||
|
|
Now you have lost me even more<g>. Are you saying that a data row spans multiple rows in the file? Can you just post a sample of the actual file? -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:8B6A40D9-94CF-439F-B8F7-D5968814B400 (AT) microsoft (DOT) com... Dont know the terminology so I will explain this the best I can. Every field is in a fixed postion. See example Field Type RG Line Column Width Print Width ----------------------------------------------------------------------------------------- :WALM816Btest: Literal Text 0 1 1 0 10 0000 Literal Text 0 2 1 1 4 BHT02 AlphaNumeric 0 2 5 2 2 BHT01 AlphaNumeric 0 2 7 4 4 BHT03 AlphaNumeric 0 2 11 50 50 "Andrew J. Kelly" wrote: It is either fixed length or it is not. If all the columns are not the same width in all the rows for each column it is not a fixed width. Or the file needs manual work to get it there. Without delimiters you need some way to determine where one column starts and one ends. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:9636EC2C-EF2D-40D3-8002-5D9094BE5823 (AT) microsoft (DOT) com... Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#9
| |||
| |||
|
|
Sample: :WALM816B: 0000000065200512251206N000000 12/25/2005WAL-MART STORES, INC. 10000000001 35 1100CQ WAL-MART STORES 0078742000008 HOME OFFICE 702 SW 8TH STREET BENTONVILLE AR72716 US 0519577690000 10000000002 0000001 36 1100SN WAL-MART SUPERCENTER 0001 0078742000015 2110 WEST WALNUT ROGERS AR72756 US 479-636-3222 0519577690001 00001 10000000003 0000001 36 1100SN WAL-MART SUPERCENTER 0002 0078742000022 1417 HWY 62/65 N HARRISON AR72601 US 870-365-8400 0519577690002 00002 "Andrew J. Kelly" wrote: Now you have lost me even more<g>. Are you saying that a data row spans multiple rows in the file? Can you just post a sample of the actual file? -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:8B6A40D9-94CF-439F-B8F7-D5968814B400 (AT) microsoft (DOT) com... Dont know the terminology so I will explain this the best I can. Every field is in a fixed postion. See example Field Type RG Line Column Width Print Width ----------------------------------------------------------------------------------------- :WALM816Btest: Literal Text 0 1 1 0 10 0000 Literal Text 0 2 1 1 4 BHT02 AlphaNumeric 0 2 5 2 2 BHT01 AlphaNumeric 0 2 7 4 4 BHT03 AlphaNumeric 0 2 11 50 50 "Andrew J. Kelly" wrote: It is either fixed length or it is not. If all the columns are not the same width in all the rows for each column it is not a fixed width. Or the file needs manual work to get it there. Without delimiters you need some way to determine where one column starts and one ends. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:9636EC2C-EF2D-40D3-8002-5D9094BE5823 (AT) microsoft (DOT) com... Thanks for your reply. The file is fixed but the data is not properly lined up to import it the way it is. "Andrew J. Kelly" wrote: Just use the DTS import wizard and follow the prompts. You say it is not delimited so it must be fixed width which the wizard usually figures out on it's own. Go to tools - Import in EM. -- Andrew J. Kelly SQL MVP "Bigal" <Bigal (AT) discussions (DOT) microsoft.com> wrote in message news:2703AEDB-8A50-4D2D-B461-4F98F61DCCE0 (AT) microsoft (DOT) com... Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
#10
| |||
| |||
|
|
Hello, I need to import data from a flat file into a sql server 2000 database. The Fate file has no delimiters. I have the specs for this file so I do knowthe layout of this file. Can somebody point me in the rigvht direction to accomplish this. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |