In general, to acquire a residence permit to study in Sweden, you must have been admitted to a fulltime course of study, you must have the means to support yourself and you must have a passport. You must arrange for your residence permit before leaving for Sweden.
The rules vary, depending on what kind of studies you wish to pursue. For a description of the rules, check the Swedish Migration Agency website.
Basic information about: Studying in Sweden
Basic information applicable to all countries is available here. In some countries, additional conditions also apply – for more information, select a country from the 'Select Country Here' drop-down list.