Data Insert from Excell File

  • Hi ,

    I have a Excell file which is having a data from various region ,i want to inset those data into a centralized database table ,Ecell and Table Structures are same.

    i want to achive task like folllowing criteria,

    there is a primary key in table structrue that is orderID (column name)

    if there is a primary key violation ,our dts process wont get stop,

    this will intimate or write a log file in a drive.with out terminating this process.

    how to achive this.

    datas are comming in the different rigon with same order or diffrent order .

    Please help me

  • Can you give me an example of the data in Excel and also the table you want to create?

    What kind of problem do you have?

  • Why not import the data to a staging table, then load what doesn't exist (no primary key violation). If there are duplicates, load those to a separate table, and finally write to a log file.

  • If you have any option to use SSIS (SQL 2K5) instead, you can automatically reroute dups to a text file or even just ignore them. A nice improvement I've used to ignore the dups in Excel files I import.

  • Thanks for your reply

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply