Question : Filling a dataset without locking the database?

Currently I am doing:

            cmd.CommandText = txtsql
            adapter.SelectCommand = cmd
            adapter.Fill(dataset)

Is there another way of filling a dataset that doesn't have a timeout in the connection and will not lock any data in the database? DataReader Perhaps?

Answer : Filling a dataset without locking the database?

You should find your answer here: http://www.slipstick.com/problems/link_restrict.htm
Random Solutions  
 
programming4us programming4us