title: Connect to local SQL Instance from Python - in Google Codelab
body: <p>I am trying to get connected to my local SQL server from Google Colab Notebook, to get data for my Python program, and I tried various options but not successful.</p>
  
  <p>here is my background. I did lot of work with Visual Studio, Management Studio in MS Stack. I can easily get connected in to the SQL Server - Databases and work with those.</p>
  
  <p>I started learning Python, and I use Google Colab for my python scripts. There generally I got the needed libraries imported by import command.</p>
  
  <p>When I execute the command
  <code>import pyodbc</code> 
  I get an error </p>
  
  <p>Then I tried
  <code>!pip install pyodbc</code>
  Then I get a different error.</p>
  
  <p>When I serched in the web, it is saying that i need to install python, the pyodbc etc locally in my machine.
  Is there a way that I can connect to SQl server without installing software in my local machine</p>