title: bcp cannot connect to AWS SQL Server but SSMS can
body: <p>Anyone know a good reason why bcp cannot connect to a sql server hosted by AWS while SSMS can?
  I have double checked the server and user account details and they both match.</p>
  
  <p>I'm using the generic command to import a csv file:</p>
  
  <pre><code>bcp DB_Name.dbo.Table in "somefile_file.csv" -c -S xxx.rds.amazonaws.com -U username -P xxx -b 1000
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>SQLState = 08001, NativeError = 53
  Error = [Microsoft][ODBC Driver 13 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. 
  SQLState = 08001, NativeError = 53
  Error = [Microsoft][ODBC Driver 13 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
  SQLState = S1T00, NativeError = 0
  Error = [Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired
  </code></pre>
  
  <p>Is bcp using a different port maybe?</p>