Why do you need to open the connection anyway? The dataadapter fills the dataset without a prior need for the connection to be opened. Actually this is the main difference with .NET that the database access is done in a non-connected mode and the connection is only briefly done while the data is exchanged...