Skip to content

Instantly share code, notes, and snippets.

-- disable referential integrity
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
GO
EXEC sp_MSForEachTable 'TRUNCATE TABLE ?'
GO
-- enable referential integrity again
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL'
GO
@otf
otf / Program.fs
Created March 7, 2012 05:22 — forked from bleis-tift/Program.fs
F#で文字列をeval ちょっと修正版
open Microsoft.FSharp.Compiler.CodeDom
open System.Reflection
open System.CodeDom.Compiler
type EvalResult<'a> =
| CompileError of CompilerError seq
| RuntimeError of exn
| Success of 'a
let eval args expr =