Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Textmerge to capture SELECT result
Message
 
 
To
11/09/2013 18:27:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01582914
Message ID:
01582915
Views:
103
This message has been marked as the solution to the initial question of the thread.
>Even when I was doing a lot of VFP TEXTMERGE never seemed intuitive to me. Right now I'm floundering
>
>It seems that in order to get a delimited file that works well with a bulk insert to SQL ( i.e. separation with | or something like that and no quotes anywhere ) I need to use TEXTMERGE
>
>Is there a better way than to SCAN and build the line using delimited fields inside the TEXTMERGE
>
>
>
>TEXT TO lcSQL NOSHOW TEXTMERGE
>
>SCAN
>\\<<cid>>|<<name>>|<<address>>|<<balance>>
>ENDSCAN
>ENDTEXT
>
>
>
>Is there a way to get COPY TO to just create a | delimited text file with no quotes for character fields? ( man I hate the way VFP uses "delimiter" where it should be "separator")
>
>TIA
>'

Try
COPY TO 'PipeDelimitedFile.txt' DELIMITED WITH "" WITH CHARACTER '|'
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform