Im using bcp to import the follwing:"14908","Lynch","Patricia","11844","9146826419","Levat MD","2007-09-07 08:40:50","SUCC MACHINE","1","55""14911","Spero","Linda","11851","9146826419","Deangelis MD","2007-09-07 08:41:54","SUCC MACHINE","1","33""14914","Cass","Linda","12606","9146826419","Levat MD","2007-09-07 08:40:49","SUCC MACHINE","1","55""14917","Deutsch","Herbert","12890","9146826419","Deangelis MD","2007-09-07 08:40:48","SUCC MACHINE","1","33""14920","Giorgi","Nicholas","10929","9146826419","Levat MD","2007-09-07 08:40:48","SUCC MACHINE","1","55""14923","Batty","Michelle","11283","9146826419","Deangelis MD","2007-09-07 08:40:49","SUCC MACHINE","1","33""14926","Kantor","Edward","14205","9146826419","Gottfried MD","2007-09-07 08:40:48","SUCC MACHINE","1","15""14929","Goldstein","Linda","15004","9146826419","Park MD, Susan","2007-09-07 08:40:49","SUCC MACHINE","1","2439""14932","Gusmano","Joseph","15355","9146826419","Deangelis MD","2007-09-07 08:40:50","SUCC MACHINE","1","33""16156","Conner","Sandra","13190","9146826419","Calleo Cross","2007-09-07 08:41:51","SUCC PERSON","1","35""14905","Recall Test Three","Cate","257976","9146826571","Newman MD","2007-09-07 08:42:37","SUCC PERSON","1","61""16084","Recall Test 1","Alfred","218191","9141111111","Kraftowitz MD","2007-09-07 08:45:40","LINE BUSY","2","52""16324","Recall Test 2","Benji","257974","9149826571","Newman MD","2007-09-07 08:41:38","SUCC PERSON","1","61"
If there is a comma within the "", like "Park MD, Susan", its still separating the fields.exec master.dbo.xp_cmdshell 'bcp WMGRecallSystem..TeleminderIn in \\wmg-lab-server\recalldata\teleminderin\uploadtest.txt -q -f\\wmg-lab-server\recalldata\teleminderin\test.fmt -C1252 -U sa -P sa -t@'
here is my format file:7.0101 SQLCHAR 0 100 "," 1 OutreachId2 SQLCHAR 0 100 "," 2 Last3 SQLCHAR 0 100 "," 3 First4 SQLCHAR 0 100 "," 4 PatientId5 SQLCHAR 0 100 "," 5 Phone16 SQLCHAR 0 100 "," 6 Doctor7 SQLCHAR 0 100 "," 7 CallDate8 SQLCHAR 0 100 "," 8 CallResult9 SQLCHAR 0 100 "," 9 AttemptCount10 SQLCHAR 0 100 "\r\n" 10 DoctorId
Is there any way to get it to accept fields with quoted identifiers?