![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I am trying to find out if anyone has successfully used bcp to import a positioned based file into sql server. Is bcp capable of this type of import or is it only capable of importing delminited flat files. If you have any examples you could post that would be great. Thanks in advance. |
#2
| |||
| |||
|
|
Here is a sample table I am using to import information for contact info: CREATE TABLE [dbo].[ContactInfo] ( [FirstName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [LastName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Street] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [City] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [State] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [ZipCode] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO Here is a sample data file: IHDRMichael Baker 1234 My street City MO76543 |
![]() |
| Thread Tools | |
| Display Modes | |
| |