- There is no separate visa: a Schengen visa or Schengen residence permit applies.
- You can only enter through the neighbouring Schengen country.
The Schengen Area: which countries are in it / San Marino
Not formally Not formally, but San Marino has no border controls with its Schengen neighbour: you enter via France or Italy under Schengen rules.