Sometimes it is easier to train a dog to do something instead of training him to NOT do something. In other words, give him an alternative behavior and reward him for it.
During meal times, you can teach him to be in his "place.". This can be a dog bed or a mat. You train him to stay on the mat, gradually increasing the time and the distractions until he is solid in his stay in the place. Then during dinner time, you tell him to go to his place. If he gets up, then you need to do more work in the training. Make sure that he gets a really awesome reward when your meal is finally over.
I will let others chime in on your other questions since we still struggle with both of those issues at times. But we were able to successfully train both our dogs to lay quietly while we eat a meal and to not get up and pace or both us at the table by using this method.
Niko: American Showline GSD 5 years old
Rosa: American Muppet Dog (GSD/Border Collie mix) 5 years old