Database Reference
In-Depth Information
private void toolStrip1_ItemClicked(object
sender, ToolStripItemClickedEventArgs e)
{
}
private void toolStripButton1_Click(object
sender, EventArgs e)
{
if (radioButton1.Checked)
{
SqlConnection HighConnection = new
SqlConnection(“Data Source =.;
Initial Catalog =
ConcurrenCycontrol;Integrated
Security = SSPI “);
HighConnection.Open();
SqlCommand HighCommand =
HighConnection.CreateCommand();
SqlTransaction LowTrans;
SqlTransaction HighTrans;
//Start a local transaction
DateTime datepefor = DateTime.Now;
HighTrans = HighConnection.
BeginTransaction();
Hig hCommand.Connection =
HighConnection;
HighCommand.Transaction = HighTrans;
HighCommand.CommandText = “select *
from MLS where tc = 'Low'”;
HighCommand.ExecuteNonQuery();
int counter = int.
Parse(richTextBox1.Text);
SqlConnection LowConnection = new
SqlConnection(“Data Source =.;
Initial Catalog =
ConcurrenCycontrol;Integrated
Security = SSPI “);
LowConnection.Open();
SqlCommand LowCommand =
LowConnection.CreateCommand();
DateTime datepefor1 = DateTime.Now;
LowTrans = LowConnection.
BeginTransaction();
Low Command.Connection =
LowConnection;
LowCommand.Transaction = LowTrans;
Search WWH ::




Custom Search