Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-03-2006, 12:36 PM
AndyC AndyC is online now
Registered User
 
Join Date: 01-16-2006
Posts: 2
Restoring a SQL Database on a remote machine

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
Reply With Quote
  #2  
Old 02-03-2006, 02:17 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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;
Reply With Quote
  #3  
Old 10-11-2007, 02:28 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
Would the RESTORE DATABASE command go on the String text box found on the Input tab. I basically know nothing about SQL.
Reply With Quote
  #4  
Old 10-11-2007, 03:05 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Yes.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:34 PM.


Copyright © 1999-2023 Kinook Software, Inc.