#include "MSSQL.h" namespace Upp { String MsSqlTextType(int width) { if(width <= 4000) return NFormat("varchar(%d)", width); return "text"; } void IdentityInsert(Sql& sql, const SqlInsert& ins) { sql.Execute("SET IDENTITY_INSERT " + ins.GetTable().ToString() + " ON;" + ((SqlStatement)ins).Get(MSSQL)); } void IdentityInsert(const SqlInsert& ins) { IdentityInsert(SQL, ins); } };