We built a UI in MS .NET Framework to run Crystal Reports version 11. The Report accesses a SQL Server database using a stored procedure. We've tried using ODBC and OLE to connect to the database. When the user runs the report using the UI and then exits, the connection stays open in SQL Server. The connection never goes away until we kill the process. When I run the report from within the Crystal application, the connection stays open until I exit, as it should.
This is connection information I see within SQL Server:
SPID = 134.00
DB = db_share
Program = Microsoft (R) .NET Framework
Status = sleeping
Command = AWAITING COMMAND
Input_Buffer = exec "db_share"."dbo"."Report_SQ";1 15, '03/02/06 11:26:00'
The Input_Buffer is the stored procedure that is called from Crystal.
Does anyone have any ideas how to make sure the connection is closed when the user exits the UI?
Thanks.
This is connection information I see within SQL Server:
SPID = 134.00
DB = db_share
Program = Microsoft (R) .NET Framework
Status = sleeping
Command = AWAITING COMMAND
Input_Buffer = exec "db_share"."dbo"."Report_SQ";1 15, '03/02/06 11:26:00'
The Input_Buffer is the stored procedure that is called from Crystal.
Does anyone have any ideas how to make sure the connection is closed when the user exits the UI?
Thanks.