This file contains 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
SELECT name | |
,create_date | |
,modify_date | |
FROM sys.tables | |
WHERE name = 'TABLE_NAME' |
This file contains 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
SELECT rsh.destination_database_name AS [Database] | |
,rsh.user_name AS [Restaurado por] | |
,CASE | |
WHEN rsh.restore_type = 'D' THEN 'Database' | |
WHEN rsh.restore_type = 'F' THEN 'File' | |
WHEN rsh.restore_type = 'G' THEN 'Filegroup' | |
WHEN rsh.restore_type = 'I' THEN 'Differential' | |
WHEN rsh.restore_type = 'L' THEN 'Log' | |
WHEN rsh.restore_type = 'V' THEN 'Verifyonly' | |
WHEN rsh.restore_type = 'R' THEN 'Revert' |
This file contains 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
fizzbuzz x | |
| x `mod` 3 == 0 && x `mod` 5 == 0 = "fizzbuzz" | |
| x `mod` 3 == 0 = "fizz" | |
| x `mod` 5 == 0 = "buzz" | |
| otherwise = show x | |
fizzbuzz100 = | |
mapM_ putStrLn [ fizzbuzz x | x <- [1..100] ] |