What is the purpose of Fill() method?

  • Automatically connection will be opened and fetches the data from database in to dataset.
  • Once fetching process is done, connection will be closed automatically.