SQL新增数据取表主键最新值

string strsql = "insert into SB_Survey(title) values ('标题');select @@IDENTITY";
int s = int.Parse(SQLServerHelper.GetSingle(strsql).ToString())
原文地址:https://www.cnblogs.com/jkyweb/p/3291397.html