Bulk insert with an identifier?

  • Hi,

    Table Patient includes:

    ShortID (primary key)

    Long ID (medical record number)

    Patient name

    Demographics, etc.

    Table Test contains

    ShortID

    ...plus several fields related to a specific medical test

    I have a .csv file that contains Long ID from Table Patient and Table Test fields, but not ShortID

    I know that I can do bulk insert, but I only know how to do it to insert data into an empty table. How to I insert my CSV data into Table Test without the ShortID?

    Thanks!

  • FormatFile would be helpful...

    check this for more info

    http://msdn.microsoft.com/en-us/library/ms179250.aspx

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

Viewing 2 posts - 1 through 1 (of 1 total)

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