In many cases, a data provider will include recommended citation formats (i.e. the ICPSR). Also note that the producers of a particular dataset may request that users of the data cite a publication in which the data are described, rather than citing the dataset (i.e. the Database of Political Institutions).
When a data provider does not recommend a citation format, we recommend these general citation guidelines: