Skip to content

Instantly share code, notes, and snippets.

View shawndube's full-sized avatar

Shawn Dube shawndube

View GitHub Profile
@shawndube
shawndube / CreateClassFromDBTableSchema
Created April 24, 2015 19:29
I needed a way to generate simple classes for some tables across SQL version 2012 to 6.5. Based on Stack Overflow answer from Alex Aza: http://stackoverflow.com/a/5873231/331937
SET STATISTICS IO OFF
SET NOCOUNT ON
-- =============================================
-- Author: Shawn Dube, twitter: @shawndube
-- Create date: 4/24/15
-- Based on work by Alex Aza: http://stackoverflow.com/a/5873231/331937
-- Uses: Initial use was to create C# Classes
-- from an existing database table schema.
-- May be able to do other templating type