Question
a.
USE master;
GO
EXEC xp_detach_db @dbname = N'AdventureWorks2012';
GO
b.
USE master;
GO
EXEC sp_detach @dbname = N'AdventureWorks2012';
GO
c.
USE master;
GO
EXEC sp_detach_db @dbname = N'AdventureWorks2012';
GO
d.
USE master;
GO
EXEC sp_det_db @dbname = N'AdventureWorks2012';
GO
Posted under SQL Server
GO
EXEC sp_detach_db @dbname = N'AdventureWorks2012';
GO
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following code snippet will detach AdventureWorks2012 database?
Similar Questions
Discover Related MCQs
Q. Which of the code is valid for attaching the database?
View solution
Q. Which of the syntax is used for creating database snapshot in SQL Server?
View solution
Q. Point out the correct statement.
View solution
Q. Which of the following scenario prefers not to use database snapshots?
View solution
Q. Which of the following code will DROP an existing snapshot before creating new?
View solution
Q. Point out the wrong statement.
View solution
Q. Which of the following code will throw error?
View solution
Q. To revert the database, which of the following Transact-SQL statement is used?
View solution
Q. Which of the following message comes when you try to update or delete the data snapshot?
View solution
Q. Syntax for creating database snapshot in SQL Server is _______________
View solution
Q. What should be done to check to see if data still exists in the Snapshot?
View solution
Q. Which of the following is the instance of SQL Server that is your production server in log shipping?
View solution
Q. Point out the correct statement.
View solution
Q. In which of the following modes, the database is read-only?
View solution
Q. Which of the following script can check the database recovery model by querying sys.databases for log shipping?
View solution
Q. Point out the wrong statement.
View solution
Q. Which of the following stored procedure is used to add a primary database on primary server?
View solution
Q. Execute sp_add_jobschedule to add a schedule for the backup job on _________ server.
View solution
Q. Which of the following is correct syntax for sp_add_log_shipping_secondary_primary?
View solution
Q. Which of the following table stores history detail for log shipping jobs?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond SQL Server? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!