I am trying to update a sequence of records where the field WebSvc = No
Here is the code
cn.Open()
da = New SqlDataAdapter("SELECT * FROM dbo.DurexBOL", cn)
cmdBuilder = New SqlCommandBuilder(da)
da.Fill(ds, "DurexBOL")
Do While ds.Tables("DurexBOL").Select("WebSvc = 'No'")
ds.Tables("DurexBOL").Rows(0)("WebSvc") = "Yes"
da.Update(ds, "DurexBOL")
Loop
Console.WriteLine("City updated successfully")
cn.Close()
Console.ReadLine()