|
发表于 2020-7-16 18:00:01
|
显示全部楼层
using System.Configuration;
public static int ExecuteSql(string strSql)
{
SqlConnection myconn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnStr"]);
SqlCommand mycomm = new SqlCommand(strSql, myconn);
Try |
|