Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Go Statement in CSharp

string[] commands = sql.Split( 
    new string[]{"GO
", "GO ", "GO	"}, StringSplitOptions.RemoveEmptyEntries );
foreach (string c in commands)
{
    command = new SqlCommand(c, masterConnection);
    command.ExecuteNonQuery();
}
}
catch (Exception e)
{
    MessageBox.Show(e.Message);
}
finally
{
    masterConnection.Close();
}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Go #Statement #CSharp
ADD COMMENT
Topic
Name
5+9 =