Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.
grdSelector.DataSource = GetSource(blah)
Dim dr As SqlDataReader = Nothing Dim sql As String = GetQuery(Blah) Dim con As New SqlConnection(Name.GetConnectionString) Dim cmd As New SqlCommand(sql.ToString(), con) cmd.CommandType = CommandType.Text cmd.CommandTimeout = 600 con.Open() dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) ' close the connection when the reader is closed Return dr
Join the community of 500,000 technology professionals and ask your questions.