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
    
  
  
    
  | ;WITH cte_1 AS | |
| ( | |
| ),cte_2 AS | |
| ( | |
| ) | 
  
    
      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
    
  
  
    
  | DECLARE @ProductTotals TABLE | |
| ( | |
| ProductID int, | |
| Revenue money | |
| ) | 
  
    
      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
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<procedureName>') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
| DROP PROCEDURE <schema>.<procedureName> | |
| GO | |
| CREATE PROCEDURE <schema>.<procedureName> <@parameters | |
| AS | |
| BEGIN | |
| END | 
  
    
      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
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<view>') and OBJECTPROPERTY(id, N'IsView') = 1) | |
| DROP VIEW <schema>.<view> | |
| GO | |
| CREATE VIEW dbo.vw_Mon_Casino | |
| AS | |
| GO | 
  
    
      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
    
  
  
    
  | Add-Migration {name} | 
  
    
      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
    
  
  
    
  | USE master | |
| GO | |
| --Run to varify backup and view Logical and Physical Names | |
| RESTORE FILELISTONLY | |
| FROM disk = 'C:\<backfile>' | |
| --Run once you are happy with everything | |
| RESTORE DATABASE <databasename> | |
| FROM disk = 'C:\<backfile>' | 
  
    
      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
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<view>') and OBJECTPROPERTY(id, N'IsView') = 1) | |
| DROP VIEW <schema>.<view> | |
| GO | |
| CREATE VIEW dbo.vw_Mon_Casino | |
| AS | |
| GO | 
  
    
      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
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<procedureName>') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
| DROP PROCEDURE <schema>.<procedureName> | |
| GO | |
| CREATE PROCEDURE <schema>.<procedureName> <@parameters | |
| AS | |
| BEGIN | |
| END | 
  
    
      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
    
  
  
    
  | %TEMP%\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files |