i am using sqlserver 2000 and vb6
i am copying data files of the sqlserver and paste it on other location.
and i am copying pasting it with the help of coding
coding works fine
but i am facing problem that before copying i had to manually stop
the sqlserver service and after copying i manually start sqlserver if i did not stop service its give me errror
"Access denied"
i want to do it with the help of coding so before start copying it stop servcie
and after copyting it autoamically start service.
so what is the code to stop/start sqlserver 2000
i am copying data files of the sqlserver and paste it on other location.
and i am copying pasting it with the help of coding
coding works fine
but i am facing problem that before copying i had to manually stop
the sqlserver service and after copying i manually start sqlserver if i did not stop service its give me errror
"Access denied"
i want to do it with the help of coding so before start copying it stop servcie
and after copyting it autoamically start service.
so what is the code to stop/start sqlserver 2000
Comment