ArcGIS for server enable Featureservice requires ARCSDE and geodatabase.
Using ARCSDE requires creating a Windows service, and ARCSDE has only the command line, so you have to read the document and find the appropriate command line.
Native environment: Windows7 64bit,sql Server R2 (non Express), ArcGIS for Server 10.2,arcsde 10.2,arcgis for Desktop 10.2, has passed Arctoolbo X geodatabase was created in SQL Server.
After you install ARCSDE, the program automatically adds Sdehome and SDE to the environment variables. If not, add this environment variable or specify the Sqlexe directory by adding the-H parameter to the command line.
The following command produces a service named ArcSde Service (ESRI_SDE) by default. If renaming is required, add-I is required to specify the service name, such as with-I esri_sde01, resulting in a service called "ArcSde Service (ESRI_SDE01)"
Sdeservice-o create-d sqlserver-s localhost-p YourPassword
After the command executes, prompt:
Successfully created and registered ESRI_SDE service
Indicates that the execution was successful. You can start the service in the Windows service.