string sql = string.Empty;switch (try){ case 1: sql = "insert into try1 values ('myvalue'); break; case 2: sql = "insert into try2 values ('myvalue'); break; // further case statements}
Regards, Sheo Narayan http://www.dotnetfunda.com
Login to post response