adplus-dvertising
frame-decoration

Question

Which of the following code will throw error?

a.

CREATE DATABASE AWDB_Snapshot_20080522 ON (
NAME = master,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AWDB_Snapshot.ss')
AS SNAPSHOT OF master;

b.

CREATE DATABASE AWDB_Snapshot_2008 ON (
NAME = AdventureWorks_Data,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AWDB_Snapshot.ss')
AS SNAPSHOT OF AdventureWorks;

c.

CREATE DATABASE AWDB_Snapshot_20080 ON (
NAME = AdventureWorks_Data,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AWDB_Snapshot.ss')
AS SNAPSHOT OF AdventureWorks;

d.

CREATE DATABASE Snapshot_20080522 ON (
NAME = Adventure,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AWDB_Snapshot.ss')
AS SNAPSHOT OF Adventure;

Posted under SQL Server

Answer: (a).CREATE DATABASE AWDB_Snapshot_20080522 ON (
NAME = master,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AWDB_Snapshot.ss')
AS SNAPSHOT OF master;

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 will throw error?

Similar Questions

Discover Related MCQs

Q. To revert the database, which of the following Transact-SQL statement is used?

Q. Which of the following message comes when you try to update or delete the data snapshot?

Q. Syntax for creating database snapshot in SQL Server is _______________

Q. What should be done to check to see if data still exists in the Snapshot?

Q. Which of the following is the instance of SQL Server that is your production server in log shipping?

Q. Point out the correct statement.

Q. In which of the following modes, the database is read-only?

Q. Which of the following script can check the database recovery model by querying sys.databases for log shipping?

Q. Point out the wrong statement.

Q. Which of the following stored procedure is used to add a primary database on primary server?

Q. Execute sp_add_jobschedule to add a schedule for the backup job on _________ server.

Q. Which of the following is correct syntax for sp_add_log_shipping_secondary_primary?

Q. Which of the following table stores history detail for log shipping jobs?

Q. _____________ maps primary databases to secondary databases in log shipping.

Q. ___________ feature will be removed in a future version of Microsoft SQL Server.

Q. Point out the correct statement.

Q. Which of the following benefit is provided by database mirroring?

Q. Database mirroring operates in how many modes?

Q. Point out the wrong statement.

Q. Which of the following modes writes the data on the principal and mirror databases synchronously?