I&#39;ve never tried anything like that before; others may be of more help at this point.&nbsp; What I would try is reading the contents of the file into a local variable.<br><br>my_data = file(&#39;metadata.sql&#39;).readlines()&nbsp;&nbsp; # read the file into a list
<br>query = &#39;&#39;.join(my_data)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # append the list into a single string (including linefeeds)<br><br>results = db.execute(query)<br><br>That should -- though I haven&#39;t tried it -- run the script to create the stored procedure.&nbsp; You would then call it via a SELECT statement to capture the results of running the sproc.
<br><br>ado allows you to set &quot;debug&quot; to 1 and it will echo your queries back to you as you execute them.<br><br>--greg<br>