title: Sybase Linux vs Sybase Windows BCP - Can't Connect
body: <p>I've been doing some Sybase stuff on Linux and have bcp in's and out's working great. Here's my working bcp out on linux:</p>
  
  <pre><code>bcp drd02.dbo.APPL_ENVIRONMENT out APPL_ENVIRONMENT.bcp -U sa -P SyAdmin  -n
  </code></pre>
  
  <p>When trying the same in Windows, I get the following error:</p>
  
  <p>ct_connect(): network packet layer: internal net library error: Net-Lib protocol
   driver call to connect two endpoints failed</p>
  
  <p>Here's a few pertinent details:</p>
  
  <p>I can connect to my server via iSQL GUI. Its shown as Sybase157 0.0.0.0  5000 and my Drd02 database is online and available.</p>
  
  <p>Contents of the c:\sybase\ini\sql.ini  are (I added the drd02 lines):</p>
  
  <pre><code>[Sybase157_XP]
  master=NLWNSCK,0.0.0.0,5001
  query=NLWNSCK,0.0.0.0,5001
  drd02=NLWNSCK,0.0.0.0,5001
  
  [Sybase157]
  master=NLWNSCK,0.0.0.0,5000
  query=NLWNSCK,0.0.0.0,5000
  drd02=NLWNSCK,0.0.0.0,5000
  
  [Sybase157_JSAGENT]
  master=NLWNSCK,0.0.0.0,4900
  query=NLWNSCK,0.0.0.0,4900
  </code></pre>
  
  <p>The environment variables are:</p>
  
  <pre><code>%DSQUERY%=Sybase157
  %SYBASE%=c:\Sybase
  </code></pre>
  
  <p>No matter what I try, it's just not connecting. I'd be happy for any help that could be provided. </p>