Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > BOOK: Beginning SQL
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

:)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.