TSQL statement or something similar, you'd have to exclusively lock all tables in the database (or by some means set the database to READ_ONLY if the engine supports the option) and export the data ...
For as long as I can remember, I have always configured the computers within my own organization to store data on network servers as opposed to the data being stored on workstations. That way, if one ...