You can change the path of data using manageable switches such as a
command-line interface (CLI), telnet or Secure Shell or an embedded
Simple Network Management Protocol (SNMP) . This allows you to do
management from a remote console or a web interface.
Find the current path by using this code: sc qc (greater than symbol)
service name (less than symbol). Then, you can change the path by using
this code: sc config mssqlserver binPath= (your directory information).