Consider the following scenario:
- In a Microsoft ADO.NET 2.0 application, you open a database connection by using an instance of the SqlConnection class in the System.Data.SqlClient namespace.
- You call the Prepare method on an instance of the SqlCommand class.
- You close and then reopen the database connection.
- You call one of the Execute methods on the instance of the SqlCommand class.
SqlException (0x80131904): Could not find prepared statement with handle 1.