In my WinForms app, i have this below code which fetches the lot number from MSSQL table when the button is clicked ,
private void getlotnumbers() {