Created
November 16, 2018 05:42
-
-
Save romec512/a367000bc40c72e685ed1c71b489d338 to your computer and use it in GitHub Desktop.
скрипты бд второй лабы
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- EXEC sp_helpdb testdb; | |
-- CREATE DATABASE snapshot_db ON ( NAME = N'testdb', | |
-- FILENAME= N'/Users/roman/workspace/labdb/spashot_db.ss' | |
-- ), | |
-- (NAME = N'testdb1', | |
-- FILENAME= N'/Users/roman/workspace/labdb/spashot_db_2.ss') | |
-- AS SNAPSHOT OF testdb; | |
-- SELECT * FROM testdb.dbo.table1; | |
-- SELECT * FROM snapshot_db.dbo.table1; | |
-- UPDATE testdb.dbo.table1 SET fio='update' WHERE id = 1; | |
SELECT * FROM testdb.dbo.table1; | |
SELECT * FROM snapshot_db.dbo.table1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment