I wish to upload my text data from client application to server database. Right now, i'm using ODBC to communicate with PostgreSQL. I use ODBC because there is a need to connect to multiple type of databases.
My issue here is, PostgreSQL uses PQgetCopyData to obtain the stdout data when using COPY OUT. So, is there any workaround to obtain the data from output stream without using libpq API and transmit it over by :
SQLExecDirect (hStmst,"COPY <table> FROM STDIN WITH CSV ",SQL_NTS)
?