Dear Mehdi Golchin,
With regard to your Step 1, can you please explain more in details "run-time mode". As i do not know where to install it Many thanks...
Step 1 : Installing Web Event
You can do this easily in run-time mode with this code below:
Management.SqlServices.Install("Computer Name", "SQL user name",_
"SQL password", "Database name", Management.SqlFeatures._
SqlWebEventProvider)
Regard,
Jason