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
<cfg name="Bogus"> | |
<connections> | |
<add name="input" provider="bogus" seed="1" /> | |
</connections> | |
<entities> | |
<add name="Contact" size="5"> | |
<fields> | |
<add name="Identity" type="int" /> |
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
ALTER DATABASE MyDatabase | |
SET ALLOW_SNAPSHOT_ISOLATION ON | |
ALTER DATABASE MyDatabase | |
SET READ_COMMITTED_SNAPSHOT ON |
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
USE master | |
GO | |
-- you have to start procedure name with sp_ to make it global | |
CREATE PROCEDURE sp_log | |
@Message NVARCHAR(512), | |
@RowCount INT = null OUTPUT, | |
@Delimiter NCHAR(1) = N' ', | |
@PadChar NCHAR(1) = N'-' | |
AS |
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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using HttpWebAdapters; | |
using SolrNet; | |
using SolrNet.Commands.Parameters; | |
using SolrNet.Impl; |
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
SET STATISTICS IO ON; | |
SET STATISTICS TIME ON; | |
SET STATISTICS XML ON; | |
/* your query here */ | |
SET STATISTICS IO OFF; | |
SET STATISTICS TIME OFF; | |
SET STATISTICS XML OFF; |
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
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MoveIndexToFileGroup]') AND type in (N'P', N'PC')) | |
BEGIN | |
DROP PROCEDURE [dbo].[MoveIndexToFileGroup] | |
END | |
GO | |
CREATE PROC [dbo].[MoveIndexToFileGroup] ( | |
@DBName sysname, | |
@SchemaName sysname = 'dbo', | |
@ObjectNameList Varchar(Max), |