Working on a project using sqlServer 2008.
EDIT for clarification : table 1 contains 1 field that has to be matched to Table2.field6 , if theres a match that row needs to be updated with DateTime.Month
string compareVals = "SELECT * FROM Table2 WHERE Table1.Field1 = Table2.Field4 and change table2.field6 to"+ DateTime.Month.ToString();
1 Answer