By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,758 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,758 IT Pros & Developers. It's quick & easy.

PyODBC Stored proc calling

P: n/a
Hi to all,

can anyone give me a jump-start about how to call Stored Procedures
from PyODBC ??
I want to execute a very simple testing Stored Procedure on an Sql
Server database.

I started using PyODBC and code like the following

cnxn = pyodbc.connect('DRIVER={SQL
Server};SERVER=hercules;DATABASE=pubs;UID=sa;PWD=p wd'')

for row in cnxn.execute("select au_fname from authors"):
print row.au_fname

and based on this, i can now write more complex ad-hoc sql string to
get/update data.
But how i can actually call Stored Procedures and passing parameters to
them ??

Let's say i have the following SP:

create procedure test_bed(@data varchar(100))
// do something here.
Any help ??

Thanks in advance

Jan 18 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
No one is using pyodbc ?? :)

Jan 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.