title: Connecting to a JDBC database in Python vs. MATLAB
body: <p>I am trying to connect to a SQL database in Python, but I am have difficult finding documentation/examples of connecting to a JDBC.  I can do this in MATLAB using the following code:</p>
  
  <pre><code>`Name = 'ServerName';
  Username = '';
  Password = '';
  Server = ['jdbc:sqlserver://ServerName:1433;'...
      'database=DB;',...
      'applicationIntent=ReadOnly;',...
      'integratedSecurity=true;'];
  Connection = database('DB',Username , Password,...
      'com.microsoft.sqlserver.jdbc.SQLServerDriver', Server );`
  </code></pre>
  
  <p>I would like to do this in Python.  Because of the JDBC, I don't think I can use pymssql or pyodbc (I have tried).  I have tried, and failed, using the following:</p>
  
  <pre><code>`import jaydebeapi
  conn = jaydebeapi.connect('com.microsoft.sqlserver.jdbc.SQLServerDriver', 
      [Server , Username,Password])`
  </code></pre>
  
  <p>Any help in implementing this in Python would be great, thanks!</p>