Applies to: SQL Server 2000 and MSDE 2000, as named in the thread. No Clarion version is named.
Problem
A developer builds an application for SQL Server 2000 and wants to install it on a notebook or desktop with MSDE2000 for testing. He asks which files must move from the server to the stand-alone machine. Mostly empty tables are enough, with a few standard tables populated.
Solution
Three ways were offered; the poster said all of them were good ideas and did not say which he used.
- Backup and restore: run a SQL backup of the main database on the server, create an empty database on the target (create it and set its security; no tables need defining), then restore the backup file into it. The full restore brings the whole database across. Then change the connection string, which is easy if it lives in an INI file.
- Attach the files: stop the SQL Server 2000 engine, copy the database's .MDF and .LDF files to the other PC, and attach them to the MSDE instance with osql.exe and a small .sql script (the thread's script is not in the archive text).
- Copy objects and data between databases with Enterprise Manager on the server machine. The osql command line tool that ships with MSDE can do the same but is less friendly.
Caveats
- One poster says the Developer edition runs on a laptop and covers everything needed for testing and development; he has done this for years.
- After an attach, security and configuration differences between the two machines may still need fixing.
- The thread gives no commands beyond the names of the tools.
Today (2026)
MSDE 2000 is long out of use. Backup and restore and attach of data files are likely still the usual ways to copy a database to a test machine on current servers; not re-tested here.
Sources: John F. (Jan 2006, the question), Timo L., Paul B., John G. (Jan 2006) in softvelocity.clarion.databasedrivers.