Skip to content

Instantly share code, notes, and snippets.

@growse
growse / Program.cs
Created November 10, 2011 14:50
Bulk copy SQL from GNU splitted Postgres CSV output into MSSQL with IDENTITY_INSERT
using System;
using System.Data;
using System.Data.SqlClient;
using System.IO;
namespace ARGHGHGHGHG
{
internal class Program
{
static int progress = 0;
@growse
growse / gist:1306667
Created October 23, 2011 00:13
SQLite schema updater
/*
I needed a way to look at an existing SQLite schema, compare it to a text file containing some table
definitions and then work out if the two were the same. Here's how I did it.
The hashtable 'givenschema' contains each table create statement keyed by the name of the table.
*/
public static void CheckSchema()
{