Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > BOOK: Beginning SQL
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning SQL
This is the forum to discuss the Wrox book Beginning SQL by Paul Wilton, John Colby; ISBN: 9780764577321
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2008, 05:17 PM
Registered User
 
Join Date: Sep 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retore Db from a remote machine to a local machine

Hi All,
    I took backup of a Database from a remote machine on to a local machine,while am restoring the backup i am getting the following error.using SQL Server Management studio 2005.

Error Message

TITLE: Microsoft SQL Server Management Studio
------------------------------

Restore failed for Server 'localhost'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdN...r&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'AFIN_UADev_2005' database. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdN...0&LinkId=20476
------------------------------
BUTTONS:

OK
------------------------------

Below is the command i executed in the Management studio 2005

use master
go

BACKUP DATABASE [AFIN_UADev_2005] TO DISK = N'\\10.171.74.36\c$\PINI-Db-
Bak\AFIN_UADev_2005.bak'
WITH NOFORMAT, NOINIT, NAME = N'AFIN_UADev_2005-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO


10.171.74.36=Local Machine Ip

PINI-Db-Bak=Location to which the bak file is to be saved.This folder is shared and given full access permissions.

AFIN_UADev_2005=Name of the Db on the remote machine

AFIN_UADev_2005.bak=backup file name in the local machine

Cheers
Sri

:)




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install a module in local linux machine Pawan Sangal Linux 1 April 13th, 2007 01:11 AM
IP Address of a local machine Dilip Nagle Classic ASP Basics 1 September 29th, 2005 10:26 PM
Using DTS to sync Remote Database to Local Machine kevorkian SQL Server DTS 1 March 21st, 2005 11:13 PM
File system object in Local machine askenkray Classic ASP Components 1 January 21st, 2005 04:43 AM
WebRequest on local machine burdickdave C# 0 November 5th, 2003 07:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.