G
Guest
Hi I posted this as new since was not sure older posts are responded to.
Anyhow the problem is a connection being left open, and has only happended a few times.
This is code that someone else developed and I have modified.
I did add a section of code that uses a data connection, data adapter, and a dataset. It calls a stored procedure on the server. I did not use open or close in the code but it seemed to be working ok. The stored procedure pulls data from a few tables and displays it on the data grid.
Do I need to implicitly use the open and close statements for the connection or data adapter for this or does the fill automatically open the connection and then close it?
SqlDataAdapter1.Fill(ds_vhist, "dbo_pg_parmsel_past_reservation")
Vhistgrid.DataBind()
Thanks
Paul.
Anyhow the problem is a connection being left open, and has only happended a few times.
This is code that someone else developed and I have modified.
I did add a section of code that uses a data connection, data adapter, and a dataset. It calls a stored procedure on the server. I did not use open or close in the code but it seemed to be working ok. The stored procedure pulls data from a few tables and displays it on the data grid.
Do I need to implicitly use the open and close statements for the connection or data adapter for this or does the fill automatically open the connection and then close it?
SqlDataAdapter1.Fill(ds_vhist, "dbo_pg_parmsel_past_reservation")
Vhistgrid.DataBind()
Thanks
Paul.