Save drawings/graphics directly to database(sql server db) using arcgis javascript?

Discussion created by Kirtika_Chauhan on Oct 18, 2013
Latest reply on Oct 18, 2013 by btfou
I am trying to draw some graphics (point,polygon,arrows etc) on map layer and want it to be saved to database ? How do I do it?
My map service is created with SQL server table having lat long values which plots points on map. My requirement is if I create new points on map they should be saved to the table and when I refresh the map service those points should be visible.

My using ArcGIS Javascript API's Drawing tools for creating points and polygons.

Any help is really appreciated...