sp_detach_db 'loans'
after copying the files you need to reattach de database to SQL Server 7, again in the query analyzer:sp_attach_db 'loans', 'c:\mssql7\data\loans_data.mdf','c:\mssql7data\loans_log.ldf'And finally to attach the database in the VFP / MSDE PC, copy both files(data and log) and from the VFP command Window:
oServer = CreateObject("SQLDMO.SQLServer") oServer.Connect("(local)", "sa", "") oServer.AttachDB("loans", ; "c:\mssql7\data\loans_data.mdf,c:\mssql7data\loans_log.ldf")>A client of mine is using VS6 (SP5 - enterprise edition), to try and extract some data from SQL-server7 (on a network) so that it can be used with MSDE (VFP front-end) ...