Of course!  Putting the csv file on the same machine as the database would help.  Single quotes with forward slashes work fine.    Sorry for wasting your time...<div><br></div><div>- John</div><div><br></div><div><br></div>
<br><div class="gmail_quote">On Wed, Aug 10, 2011 at 3:33 PM, Charles Galpin <span dir="ltr"><<a href="mailto:cgalpin@lhsw.com">cgalpin@lhsw.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">I use single forward slashes just fine, but just in case, this has to be run on the same machine as the server afaik.<div><br></div><div>charles</div><div> <br><div><div><div></div><div class="h5">
<div>On Aug 10, 2011, at 3:28 PM, John Callahan wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Sorry if this is more of a postgres question than postgis...<div><br></div><div>I'm trying to bring in a CSV table into my postgis database.  I'm using the COPY command but kepe getting the error "No such file or directory."  I'm on Windows and my guess is the error is caused by incorrect syntax.  The online docs mentions that Windows users might need to use the E'' string syntax.  What is that and how is it used?  I can't find any good examples. Is the following correct?  Thanks.</div>

<div><br></div><div>COPY mypgtable FROM 'C:<a>\\data\\projectname\\locations.csv'</a> CSV HEADER;</div><div><br></div><div><br></div><div>- John<br><div><br clear="all">***********************************<br>John Callahan, Research Scientist<br>

Delaware Geological Survey<br>University of Delaware<br>URL: <a href="http://www.dgs.udel.edu/" target="_blank">http://www.dgs.udel.edu</a><br>*******************************<br>
</div></div></div></div>
_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>