Here is a filmography of the franchise:
1: Sean Connery
1962: "Dr. No"
1963: "From Russia with Love"
1964: "Goldfinger"
1965: "Thunderball"
1967: "You Only Live Twice"
1971: "Diamonds Are Forever"
Connery returned to play Bond in 1983 in "Never Say Never Again", which was not part of the official franchise.
2: George Lazenby
3: Roger Moore
1973: "Live and Let Die"
1974: "The Man with the Golden Gun"
1977: "The Spy Who Loved Me"
1979: "Moonraker"
1981: "For Your Eyes Only"
1983: "Octopussy"
1985: "A View to a Kill"
4: Timothy Dalton
5: Pierce Brosnan
6: Daniel Craig
Barry Nelson and David Niven also played the famous British secret agent in 1954 and 1967 respectively in unofficial James Bond films.