Problem with SQLCommand.Prepare() statement(.Net 2.0) RRS feed

  • Question

  • Steps to produce the error.


    Use prepare()

    Close Connection

    reopen the connection

    try executing a DML

    Following error is thrown now .



    Could not find prepared statement with handle 1


    I even downloaded the fix for this error from


    Still I got the same error.I also installed sp1 for .net 2.0.

    I also tried creating a new connection and command object before reopen,but no use.

    Please help.

    Monday, April 7, 2008 8:29 AM