Can we create Snapshot’s using SSMS ?


Answer is a straight No,however there are some 3rd party add-ins which you can try and by no way we can say its bug free

T-SQL can be used easily to create a snap shot and below is a sample code for the same :

 

Create Database Snapshot_Adventureworks

ON

(

NAME=’Adventureworks_Data’,

FILENAME=’C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Snapshot_Adventureworks.ds’

)

AS SNAPSHOT OF Adventureworks

For restoring purpose you can use the below T-SQL command :

RESTORE Database Adventureworks FROM Database_Snapshot=’Snapshot_Adventureworks ‘

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s