Link to home
Start Free TrialLog in
Avatar of TSFLLC
TSFLLC

asked on

BCP Import/Export

I have a good working stored procedure to create a text file using BCP where my field delimiter is '$'.  Each text file will contain information pertinent to one row of data.

I have two SQL databases (One is SQL 2005 Express (locally) and one is SQL 2005 Full-version (on web server hosted by another company)).  The guys maintaining a website are designing a members only section of the website that links to SQL on the webserver and to a table very similar to mine.  They just have fields that are not pertinent to my local SQL structure.  I am going to FTP these text file up to a folder on their web server, at which time a windows service will pick them up and add new or update existing records in web server copy of SQL.

Will I need to create a table on the web server SQL with a structure that is identical to the text file, perform my 'BCP in... and then perform whatever field updates to the live member table using this 'temporary' table?

I'm assuming I would have to do something like this to match the exported fields from my local database with the fields I'm attempting to import.
ASKER CERTIFIED SOLUTION
Avatar of Christopher Kile
Christopher Kile
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial