***** cod VFP 7 ********
obServer=CREATEOBJECT("SQLDMO.SQLServer")
WITH observer
.Connect("laptop\prodatasql","sorin","xxxx")
.ExecuteImmediate("exec [prodata].dbo.restoredatabase 'Test_db'")
.close
ENDWITH
RELEASE obServer
.. codul de mai sus functioneaza perfect ... numai ca SQL-DMO a fost inlocuit de SQL-SMO ... care este sub dot.net ...