Importing text file using schema.ini into Linked Server

Answered Importing text file using schema.ini into Linked Server

  • Monday, January 21, 2013 8:52 AM
     
      Has Code

    Hi All,

    I importing a text file into a linked server using schema.ini file. My problem arises when i import a custom delimited(|) file which contains 20 columns. The query is not delimiting.

    Here is my schema.ini file..

    [PRE_E_RECHARGE#txt]
    ColNameHeaders=True
    CharacterSet=ANSI
    Format=Delimited(|)
    col1	RECH_DATE_TIME	datetime
    col2	RECH_DATE	datetime
    col3	CHARGINGPARTYNUMBER	text
    col4	CUST_CATEGORY	text
    col5	CONNTYPE	text
    col6	MRPVALUE	double
    col7	TALKVALUE	double
    col8	SERVICE_TAX	double
    col9	PROCESSING_FEE	double
    col10	EXTRA_TALK_TIME	double
    col11	RECHTYPE	text
    col12	IN_VCH_ACT_BATCH	text
    col13	IN_VCH_DESC	text
    col14	CIRCLE	text
    col15	VOUCHERSEQUENCE	text
    col16	VOUCHERBATCHNUMBER	text
    col17	RESERVED_COL	text
    col18	VOUCHER_TYPE	text
    col19	RECHARGING_RETAILER	text
    col20	TRANSITIONID	text
    please help me how to resolve...

    GSKR

All Replies