PDA

View Full Version : Restoring a SQL Database on a remote machine


AndyC
02-03-2006, 12:36 PM
Hi,

Currently as part of the build process we restore a sql database on a test machine before running nunit tests. Could you tell me if VBP has commands / scripts for doing this?

Thanks,

Andy

kinook
02-03-2006, 02:17 PM
If it's a SQL Server database, you can use a Run SQL step with a statement like

RESTORE DATABASE dbname FROM DISK = '%PROJDIR%\dbname.dat' WITH REPLACE;

ambalboa
10-11-2007, 02:28 PM
Would the RESTORE DATABASE command go on the String text box found on the Input tab. I basically know nothing about SQL.

kinook
10-11-2007, 03:05 PM
Yes.