Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/AppHarbor.SqlServerBulkCopy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ static void Main(string[] args)
EXEC sp_msforeachtable ""ALTER TABLE ? NOCHECK CONSTRAINT all""

-- delete data in all tables
EXEC sp_msforeachtable ""DELETE FROM ?""
-- NOTE: The quoted identifier option is enabled to fix a bug where the query fails if DB has any computed columns or indexed views
EXEC sp_msforeachtable ""SET QUOTED_IDENTIFIER ON; DELETE FROM ?""

-- enable all constraints
exec sp_msforeachtable ""ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all""
Expand Down