public static string GetIdentityColumn(string table) { switch (SqlServerTools.GetServerVersion((string)null)) { case SqlServerVersions.SqlServer2000: return(null); case SqlServerVersions.SqlServer2005: case SqlServerVersions.SqlServer2008: case SqlServerVersions.SqlServer2012: case SqlServerVersions.Other: return(ColumnEnumerator.GetIdentityColumnOfTable(table)); default: return(null); } }
public static string[] GetUserTables() { switch (SqlServerTools.GetServerVersion(null)) { case SqlServerVersions.SqlServer2000: return(GetUserTables_2000()); case SqlServerVersions.SqlServer2005: case SqlServerVersions.SqlServer2008: case SqlServerVersions.SqlServer2012: case SqlServerVersions.Other: return(GetUserTables_2005()); default: return(null); } }
public static SqlServerColumn[] GetColumnsOfTable(string table) { switch (SqlServerTools.GetServerVersion((string)null)) { case SqlServerVersions.SqlServer2000: return(ColumnEnumerator.GetColumnsOfTable_2000(table)); case SqlServerVersions.SqlServer2005: case SqlServerVersions.SqlServer2008: case SqlServerVersions.SqlServer2012: case SqlServerVersions.Other: return(ColumnEnumerator.GetColumnsOfTable_2005(table)); default: return(null); } }