= "") // if there is something in the config file work with it SqlConnection dataConnection = newSqlConnection(ConnectionString);else SqlConnection dataConnection = new SqlConnection();
try
ExecuteNonQuery(ByVal Query As String) As Integer
Using conn As New SqlConnection因此,我认为我需要将SqlConnection实例移出方法,并将其转换为类级变量。但我觉得这不是最好的做法。(?) 此外:按顺序执行许多查询会导致一个错误:“内部致命错误”。