[IronPython] Calling a query from .MDB (Access stored procedure) by name:

Jeff Hardy jdhardy at gmail.com
Tue May 25 17:33:09 CEST 2010

On Mon, May 24, 2010 at 1:55 PM, Peter Masiar <peter.masiar at gmail.com> wrote:
> I found also docs
> http://msdn.microsoft.com/en-us/library/yy6y35y8%28VS.71%29.aspx and
> OleDbCommand.CommandType but I am not sure how to set CommandType to
> Stored procedure. Any suggestions?

I'm not sure about access, but for calling SPs from SQL server you'd use:

    from System.Data import CommandType
    cmd.CommandType = CommandType.StoredProcedure

- Jeff

More information about the Ironpython-users mailing list