This question already has an answer here:
I want to copy one table's content from a remote machine to local. I have tried with
\copy. It's working fine as "copy" is not working due to copying from remote.
But is there any way I can do the same without the command console, and execute a simple query through
c# and do it programatically? I am using Postgres 9.4