I need to import into SQL a text file that I get daily.
I tried to do it with a DTS and it went perfect the only problem is that the name of the file changes everyday (it's a Dated file).
So I thought about doing a INSERT BULK the problem is that I can't find how to specify the Text identifier, the problem is like this one of the columns is a definition, some times the definition in it self have a coma so the INSERT BULK cuts the definition and start the next column, in this case the definition is delimited with double quotes ("), else it doesn’t have it...
Here’s an example of the import:
CNS,Cohen & Steers Inc.,19247A100, 781126
CNSL,"CONSOLIDATED COMMUNICATIONS HOLDING, INC.",209034107, 1985745
CNT,CENTERPOINT PROPERTIES CORP,151895109, 6020355