The general survey of ancient books in middle schools has come to an end.

A, the census is more difficult, suitable for sampling survey, so A is wrong;

B, the investigation process is destructive, only sampling survey can be taken, so B is wrong;

C, census is difficult, suitable for sampling survey, so C is wrong;

D, it is very important to choose the census, which is correct.

So choose D.