Connecting Tech Pros Worldwide Help | Site Map

How to deploy a database on SQL Server Express 2005

  #1  
Old August 10th, 2008, 08:45 PM
Kerrin Banner
Guest
 
Posts: n/a
Hello

Hopefully a really simple question. We have just finsihed a SQL 2005
database and vb.net app. We have been using SQL server 2005 Management
Studio during design.

We now want to copy the database across to a machine that has only got
SQL server 2005 Express. How do I do that ( I want the structure created
and tables created and data inserted on the target machine)

Thanks for your help.
KB

KB

*** Sent via Developersdex http://www.developersdex.com ***
  #2  
Old August 10th, 2008, 09:55 PM
Plamen Ratchev
Guest
 
Posts: n/a

re: How to deploy a database on SQL Server Express 2005


Backup and restore is the best option to copy the database.


Plamen Ratchev
http://www.SQLStudio.com
  #3  
Old August 10th, 2008, 10:35 PM
Kerrin Banner
Guest
 
Posts: n/a

re: How to deploy a database on SQL Server Express 2005


Thanks but on the target machine i dont have access to the management
gui to restore. Is there a different way to do the restore ( i.e command
line nor soemthing ) ?

Thanks
KB

*** Sent via Developersdex http://www.developersdex.com ***
  #4  
Old August 10th, 2008, 11:15 PM
Plamen Ratchev
Guest
 
Posts: n/a

re: How to deploy a database on SQL Server Express 2005


You can use the SQLCMD utility to restore the database from the command
line:
http://msdn.microsoft.com/en-us/library/ms165702.aspx

The restore of a full database backup can be as simple as:

RESTORE DATABASE MyDatabase
FROM DISK = 'C:\MyDatabase.bak'


Plamen Ratchev
http://www.SQLStudio.com

  #5  
Old August 11th, 2008, 05:55 AM
nidaar
Guest
 
Posts: n/a

re: How to deploy a database on SQL Server Express 2005


Downloading "Database Publishing Wizard" might also be an option. As
indicated in its documentation, it is made available for remote
deployment scenarios.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql Server express 2005 deployment =?Utf-8?B?UHVuaXQgS2F1cg==?= answers 10 July 30th, 2007 07:15 PM
ASPNETDB.MDF when no SQLExpress, only SQL Server 2005? nick answers 8 June 20th, 2006 12:45 AM
SQL server express 2005 local accounts problem. please help! jimmy84c@gmail.com answers 1 April 6th, 2006 11:15 PM
deploy asp.net application with sql server express database Loane Sharp answers 5 November 19th, 2005 08:01 PM