The Rev. Ryland T. Dodge, 87, who was pastor of the Second Baptist Church, now the Baptist Temple, of Alexandria for 34 years, died Thursday at Fairfax Hospital after an apparent heart attack.

Mr. Dodge was a native of Austin, Tex. He moved to Virginia at an early age and earned a bachelor's degree at the University of Richmond in 1913. He later attended the Southern Baptist Theological Seminary in Louisville.

He served as a pastor in Dinwiddie County, Chester, and Norfolk, in Virginia, before going to the Second Baptist Church in Alexandria in 1924. He retired as pastor emeritus in 1958.

After retiring, Mr. Dodge told The Post in 1958 that in a career that spanned 43 years he had conducted 640 funerals, married 981 couples, and baptized 924 persons.

During his years in Alexandria he had served at various times as president of the Virginia State Ministers' Association, the Ministers' Association of the Potomac Association, and the Ministers' Association of Alexandria.

He also served as chaplain of the Alexandria chapter of the American Red Cross in 1940s.

Mr. Dodge was a member of the Virginia Baptist Historical Society and the American Rose Society.

He is survived by a son, Ryland T. Jr., and a daughter, Irene Burrell, both of Alexandria; 11 grandchildren, and seven great-grandchildren.