Sharon Chapman

Sharon Chapman

  • NA
  • 6
  • 5.7k

C# select database based on combo box selection

Feb 8 2012 1:57 PM
hi,
I have a windows form with a combo box on it. The combo box has the words Production and Development in it. If the user selects "Production", I need my C# code to point to the Production database. If the user selects "Development", I need my C# code to point to the Development database. Can someone please tell me how to do this?

thanks,
Sharon

Answers (3)