FIX: An SqlException exception may occur when you call one of the Execute methods on the instance of the SqlCommand class in an ADO.NET 2.0 application (913765)
The information in this article applies to:
- Microsoft .NET Framework 2.0
SYMPTOMSConsider 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.
In this scenario, an SqlException exception may occur. When this problem occurs, you may receive an error message that resembles the following: SqlException (0x80131904): Could not find prepared statement with handle 1. RESOLUTIONTo resolve this problem, download the appropriate file for the computer. For an x86-based computer
The following file is available for download from the Microsoft Download Center: Download the NDP20-KB916002-X86.exe package now.For an x64-based computer
The following file is available for download from the Microsoft Download Center: Download the NDP20-KB916002-X64.exe package now.For an Itanium-based computer
The following file is available for download from the Microsoft Download Center: Download the NDP20-KB916002-IA64.exe package now.
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbQFE kbfix kbbug kbpubtypekc KB913765 kbAudDeveloper kbAudITPRO |
---|
|