<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Run Sql server store procedure using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407864#M32114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the download page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.google.com/p/pyodbc/downloads/list" title="https://code.google.com/p/pyodbc/downloads/list"&gt;Downloads - pyodbc - Python ODBC library - Google Project Hosting&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 20:46:20 GMT</pubDate>
    <dc:creator>SamuelTompsett</dc:creator>
    <dc:date>2015-05-08T20:46:20Z</dc:date>
    <item>
      <title>Run Sql server store procedure using Python</title>
      <link>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407863#M32113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I wonder if someone can help me with this, I been searching on internet and so far I know that there is a module called ODBC or pyODBC which allow to do this, in my python window I wrote&lt;/P&gt;&lt;P&gt;import pyodbc and I got a error message, so it seems that it is not installed How I can get it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407863#M32113</guid>
      <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
      <dc:date>2015-05-08T20:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Run Sql server store procedure using Python</title>
      <link>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407864#M32114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the download page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.google.com/p/pyodbc/downloads/list" title="https://code.google.com/p/pyodbc/downloads/list"&gt;Downloads - pyodbc - Python ODBC library - Google Project Hosting&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407864#M32114</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-05-08T20:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run Sql server store procedure using Python</title>
      <link>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407865#M32115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import pyodbc&lt;/P&gt;&lt;P&gt;conn = pyodbc.connect('DRIVER={SQL Server};SERVER=test;DATABASE=Dev;Integrated Security=true')&lt;/P&gt;&lt;P&gt;if (conn == False):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Error"&lt;/P&gt;&lt;P&gt;a = 'p_RECENT_Bulk_Import_test'&lt;/P&gt;&lt;P&gt;cursor1 = conn.cursor()&lt;/P&gt;&lt;P&gt;cursor1.execute(a)&lt;/P&gt;&lt;P&gt;cursor1.close()&lt;/P&gt;&lt;P&gt;del cursor1&lt;/P&gt;&lt;P&gt;conn.close()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Samuel for your help, I did install that module, now when I run the code above I did not ge any record populate into the table ( the store procedure run fine in sql its take an txt file and add all the record into a table), so I guess is something in my code, do I need to go through each record like using a sql fetch?.&lt;/P&gt;&lt;P&gt;thank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 21:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-sql-server-store-procedure-using-python/m-p/407865#M32115</guid>
      <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
      <dc:date>2015-05-08T21:58:04Z</dc:date>
    </item>
  </channel>
</rss>

