GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  SQL Server
Go To First  |  Previous Question  |  Next Question 
 SQL Server  |  Question 42 of 68    Print  
Database Attach and Restore
What is the Difference between Attach and Restore of a Database?


  
Total Answers and Comments: 2 Last Update: March 26, 2008     Asked by: sreyas kvm 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 13, 2008 06:11:57   #1  
nbkb9hv Member Since: February 2008   Contribution: 1    

RE: Database Attach and Restore
Both are used to restore database we Use attach database when we have .mdf file to upload data into database while we use restore database when we have .bak file to upload data into database.
 
Is this answer useful? Yes | No
March 26, 2008 11:53:03   #2  
Kiran Patil Member Since: March 2008   Contribution: 5    

RE: Database Attach and Restore
Database attach is faster as compaired to Database Restore. SO if you have both options then may be you can choose Database attach than Database Restore.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : use TableLocks or RowLocks to prevent the other user from modifying the data when the previous user is using the same data. ...
Read Answers (2) | Asked by : techmind

Error While creating BACKUP:I am Creating FullBackup for one database Named Postings.I executed below Query and i am getting The Below error message.USE mastergoEXEC SP_ADDUMPDEVICE 'disk','PostingsBac','E:BACKUPPostingsBac.BAK'BACKUP 
Latest Answer : This is basically a problem with the physical path of the Backup device, I suppose. Be sure the physical path that you are giving has full access from your Windows user Account or not. ...
Read Answers (1) | Asked by : Ramesh.M
Tags : Backup

Latest Answer : Take a full backup and restore or dettach 2000 db copy .mdf and ldf to 2005 server.  Attach then switch compatiblity mode to 90 then update statistics.  Once you go to 2005 you can go back. ...
Read Answers (1) | Asked by : santanu

What is the Difference between Attach and Restore of a Database? 
Latest Answer : Database attach is faster as compaired to Database Restore. SO if you have both options then may be you can choose Database attach than Database Restore. ...
Tags : Restore

How to display list of tables from a particular database in MS-SQLHow to display description of that particular table? 
Latest Answer : To Display list of tables in the database:SELECT * FROM INFROMATION_SCHEMA.TABLES WHERE TYPE='basetable'To describe the structure of a particular tableSP_HELP table_name; ...

How to deny insert, update, delete, update permissions for a specific user of a specific user database? 
Latest Answer : So what context is the user in?  A role a datareader? Datawriter?You want no permissions?USE Drop USER  In a role?EXEC sp_droprolemember 'rolename' , 'Member'single objects?Revoke SELECT, ...
Read Answers (1) | Asked by : rsurya

How to deny delete and drop permission to the user for the particular database in SQL Server 2005. 
Latest Answer : USE [PARENTDB] GO DROP SCHEMA [USER] GO USE [DB]GO DROP USER [USER] GOor in GUI SQL SQL server Managment Studio go to your DB open it's security section up. . select users folder .. select user adn press delete on the keyboard .. ...

How can we rename a Database with query? 
Latest Answer : Syntax of renaming the database:sp_renamedb old_database name new_database nameEg:  name of the database is tree. Now if you need to change the database as three. So the query for changing the database as follows:sp_renamedb tree three ...
Read Answers (2) | Asked by : seemu123

How to secure data in the SQL Server Database? 
View Question | Asked by : arabam


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape