Hi I have a simple update statement and I would like to apply it to multiple tables
I am not sure how to do this without changing the table name each time
here is my sql so far, the @market part is the part that will vary with the tables
"
Update tblTimetable_@MarketID
set Resp='Client'
where resp='Factory' or resp ='MC' or Resp='Market'
"
I am not sure how to do this without changing the table name each time
here is my sql so far, the @market part is the part that will vary with the tables
"
Update tblTimetable_@MarketID
set Resp='Client'
where resp='Factory' or resp ='MC' or Resp='Market'
"