Click here to Skip to main content
12,511,061 members (98,041 online)
Click here to Skip to main content
Articles » Database » Database » ADO.NET » Downloads

Stats

30.9K views
1.3K downloads
47 bookmarked
Posted

An Experimental Performance Comparison on the Methods to Pass Structured Data to SQL Server Stored Procedures from ADO.NET

, 23 Dec 2009 CPOL
This article makes an experimental comparison on the performance of the different methods to pass structured data to SQL Server Stored Procedure parameters from ADO.NET.
namespace SQLSPPerformanceComparison
{
    partial class frmMain
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.tabMain = new System.Windows.Forms.TabControl();
            this.tabText = new System.Windows.Forms.TabPage();
            this.pText = new System.Windows.Forms.TableLayoutPanel();
            this.pTextBottom = new System.Windows.Forms.TableLayoutPanel();
            this.btnGoText = new System.Windows.Forms.Button();
            this.btnClearText = new System.Windows.Forms.Button();
            this.dgText = new System.Windows.Forms.DataGridView();
            this.pTextLabel = new System.Windows.Forms.TableLayoutPanel();
            this.lblTimeSpentText = new System.Windows.Forms.Label();
            this.tabXML = new System.Windows.Forms.TabPage();
            this.pXML = new System.Windows.Forms.TableLayoutPanel();
            this.pXMLBottom = new System.Windows.Forms.TableLayoutPanel();
            this.btnClearXML = new System.Windows.Forms.Button();
            this.btnGoXML = new System.Windows.Forms.Button();
            this.dgXML = new System.Windows.Forms.DataGridView();
            this.pXMLLabel = new System.Windows.Forms.TableLayoutPanel();
            this.lblTimeSpentXML = new System.Windows.Forms.Label();
            this.tabTable = new System.Windows.Forms.TabPage();
            this.pTable = new System.Windows.Forms.TableLayoutPanel();
            this.pTableBottom = new System.Windows.Forms.TableLayoutPanel();
            this.btnClearTable = new System.Windows.Forms.Button();
            this.btnGoTable = new System.Windows.Forms.Button();
            this.dgTable = new System.Windows.Forms.DataGridView();
            this.pTableLabel = new System.Windows.Forms.TableLayoutPanel();
            this.lblTimeSpentTable = new System.Windows.Forms.Label();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.button2 = new System.Windows.Forms.Button();
            this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
            this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.pOverall = new System.Windows.Forms.TableLayoutPanel();
            this.tabMain.SuspendLayout();
            this.tabText.SuspendLayout();
            this.pText.SuspendLayout();
            this.pTextBottom.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgText)).BeginInit();
            this.pTextLabel.SuspendLayout();
            this.tabXML.SuspendLayout();
            this.pXML.SuspendLayout();
            this.pXMLBottom.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgXML)).BeginInit();
            this.pXMLLabel.SuspendLayout();
            this.tabTable.SuspendLayout();
            this.pTable.SuspendLayout();
            this.pTableBottom.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgTable)).BeginInit();
            this.pTableLabel.SuspendLayout();
            this.menuStrip1.SuspendLayout();
            this.pOverall.SuspendLayout();
            this.SuspendLayout();
            // 
            // tabMain
            // 
            this.tabMain.Appearance = System.Windows.Forms.TabAppearance.Buttons;
            this.tabMain.Controls.Add(this.tabText);
            this.tabMain.Controls.Add(this.tabXML);
            this.tabMain.Controls.Add(this.tabTable);
            this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabMain.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tabMain.Location = new System.Drawing.Point(3, 9);
            this.tabMain.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabMain.Name = "tabMain";
            this.tabMain.Padding = new System.Drawing.Point(60, 6);
            this.tabMain.SelectedIndex = 0;
            this.tabMain.Size = new System.Drawing.Size(875, 589);
            this.tabMain.TabIndex = 0;
            // 
            // tabText
            // 
            this.tabText.BackColor = System.Drawing.Color.Gainsboro;
            this.tabText.Controls.Add(this.pText);
            this.tabText.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tabText.Location = new System.Drawing.Point(4, 31);
            this.tabText.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabText.Name = "tabText";
            this.tabText.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabText.Size = new System.Drawing.Size(867, 554);
            this.tabText.TabIndex = 0;
            this.tabText.Text = "By Text  Parameter Type";
            this.tabText.UseVisualStyleBackColor = true;
            // 
            // pText
            // 
            this.pText.ColumnCount = 1;
            this.pText.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pText.Controls.Add(this.pTextBottom, 0, 2);
            this.pText.Controls.Add(this.dgText, 0, 0);
            this.pText.Controls.Add(this.pTextLabel, 0, 1);
            this.pText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pText.Location = new System.Drawing.Point(3, 4);
            this.pText.Name = "pText";
            this.pText.RowCount = 4;
            this.pText.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pText.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
            this.pText.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
            this.pText.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F));
            this.pText.Size = new System.Drawing.Size(861, 546);
            this.pText.TabIndex = 1;
            // 
            // pTextBottom
            // 
            this.pTextBottom.ColumnCount = 4;
            this.pTextBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTextBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pTextBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pTextBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pTextBottom.Controls.Add(this.btnGoText, 1, 0);
            this.pTextBottom.Controls.Add(this.btnClearText, 2, 0);
            this.pTextBottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pTextBottom.Location = new System.Drawing.Point(3, 494);
            this.pTextBottom.Name = "pTextBottom";
            this.pTextBottom.RowCount = 1;
            this.pTextBottom.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTextBottom.Size = new System.Drawing.Size(855, 34);
            this.pTextBottom.TabIndex = 0;
            // 
            // btnGoText
            // 
            this.btnGoText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnGoText.Location = new System.Drawing.Point(576, 3);
            this.btnGoText.Name = "btnGoText";
            this.btnGoText.Size = new System.Drawing.Size(125, 28);
            this.btnGoText.TabIndex = 0;
            this.btnGoText.Text = "Test Text Type";
            this.btnGoText.UseVisualStyleBackColor = true;
            this.btnGoText.Click += new System.EventHandler(this.btnGoText_Click);
            // 
            // btnClearText
            // 
            this.btnClearText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnClearText.Location = new System.Drawing.Point(707, 3);
            this.btnClearText.Name = "btnClearText";
            this.btnClearText.Size = new System.Drawing.Size(125, 28);
            this.btnClearText.TabIndex = 1;
            this.btnClearText.Text = "Clear";
            this.btnClearText.UseVisualStyleBackColor = true;
            this.btnClearText.Click += new System.EventHandler(this.btnClearText_Click);
            // 
            // dgText
            // 
            this.dgText.AllowUserToAddRows = false;
            this.dgText.AllowUserToDeleteRows = false;
            this.dgText.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgText.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dgText.Location = new System.Drawing.Point(3, 3);
            this.dgText.Name = "dgText";
            this.dgText.ReadOnly = true;
            this.dgText.Size = new System.Drawing.Size(855, 450);
            this.dgText.TabIndex = 2;
            // 
            // pTextLabel
            // 
            this.pTextLabel.ColumnCount = 2;
            this.pTextLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTextLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pTextLabel.Controls.Add(this.lblTimeSpentText, 0, 0);
            this.pTextLabel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pTextLabel.Location = new System.Drawing.Point(3, 459);
            this.pTextLabel.Name = "pTextLabel";
            this.pTextLabel.RowCount = 1;
            this.pTextLabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTextLabel.Size = new System.Drawing.Size(855, 29);
            this.pTextLabel.TabIndex = 3;
            // 
            // lblTimeSpentText
            // 
            this.lblTimeSpentText.AutoSize = true;
            this.lblTimeSpentText.Dock = System.Windows.Forms.DockStyle.Right;
            this.lblTimeSpentText.Location = new System.Drawing.Point(821, 0);
            this.lblTimeSpentText.Name = "lblTimeSpentText";
            this.lblTimeSpentText.Size = new System.Drawing.Size(11, 29);
            this.lblTimeSpentText.TabIndex = 0;
            this.lblTimeSpentText.Text = " ";
            // 
            // tabXML
            // 
            this.tabXML.BackColor = System.Drawing.Color.LemonChiffon;
            this.tabXML.Controls.Add(this.pXML);
            this.tabXML.Location = new System.Drawing.Point(4, 31);
            this.tabXML.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabXML.Name = "tabXML";
            this.tabXML.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabXML.Size = new System.Drawing.Size(867, 554);
            this.tabXML.TabIndex = 1;
            this.tabXML.Text = "by XML Parameter Type";
            this.tabXML.UseVisualStyleBackColor = true;
            // 
            // pXML
            // 
            this.pXML.ColumnCount = 1;
            this.pXML.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXML.Controls.Add(this.pXMLBottom, 0, 2);
            this.pXML.Controls.Add(this.dgXML, 0, 0);
            this.pXML.Controls.Add(this.pXMLLabel, 0, 1);
            this.pXML.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pXML.Location = new System.Drawing.Point(3, 4);
            this.pXML.Name = "pXML";
            this.pXML.RowCount = 4;
            this.pXML.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXML.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
            this.pXML.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
            this.pXML.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F));
            this.pXML.Size = new System.Drawing.Size(861, 546);
            this.pXML.TabIndex = 1;
            // 
            // pXMLBottom
            // 
            this.pXMLBottom.ColumnCount = 4;
            this.pXMLBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXMLBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pXMLBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pXMLBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pXMLBottom.Controls.Add(this.btnClearXML, 2, 0);
            this.pXMLBottom.Controls.Add(this.btnGoXML, 1, 0);
            this.pXMLBottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pXMLBottom.Location = new System.Drawing.Point(3, 494);
            this.pXMLBottom.Name = "pXMLBottom";
            this.pXMLBottom.RowCount = 1;
            this.pXMLBottom.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXMLBottom.Size = new System.Drawing.Size(855, 34);
            this.pXMLBottom.TabIndex = 0;
            // 
            // btnClearXML
            // 
            this.btnClearXML.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnClearXML.Location = new System.Drawing.Point(707, 3);
            this.btnClearXML.Name = "btnClearXML";
            this.btnClearXML.Size = new System.Drawing.Size(125, 28);
            this.btnClearXML.TabIndex = 3;
            this.btnClearXML.Text = "Clear";
            this.btnClearXML.UseVisualStyleBackColor = true;
            this.btnClearXML.Click += new System.EventHandler(this.btnClearXML_Click);
            // 
            // btnGoXML
            // 
            this.btnGoXML.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnGoXML.Location = new System.Drawing.Point(576, 3);
            this.btnGoXML.Name = "btnGoXML";
            this.btnGoXML.Size = new System.Drawing.Size(125, 28);
            this.btnGoXML.TabIndex = 0;
            this.btnGoXML.Text = "Test XML Type";
            this.btnGoXML.UseVisualStyleBackColor = true;
            this.btnGoXML.Click += new System.EventHandler(this.btnGoXML_Click);
            // 
            // dgXML
            // 
            this.dgXML.AllowUserToAddRows = false;
            this.dgXML.AllowUserToDeleteRows = false;
            this.dgXML.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgXML.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgXML.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dgXML.Location = new System.Drawing.Point(3, 3);
            this.dgXML.Name = "dgXML";
            this.dgXML.ReadOnly = true;
            this.dgXML.Size = new System.Drawing.Size(855, 450);
            this.dgXML.TabIndex = 2;
            // 
            // pXMLLabel
            // 
            this.pXMLLabel.ColumnCount = 2;
            this.pXMLLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXMLLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pXMLLabel.Controls.Add(this.lblTimeSpentXML, 0, 0);
            this.pXMLLabel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pXMLLabel.Location = new System.Drawing.Point(3, 459);
            this.pXMLLabel.Name = "pXMLLabel";
            this.pXMLLabel.RowCount = 1;
            this.pXMLLabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pXMLLabel.Size = new System.Drawing.Size(855, 29);
            this.pXMLLabel.TabIndex = 3;
            // 
            // lblTimeSpentXML
            // 
            this.lblTimeSpentXML.AutoSize = true;
            this.lblTimeSpentXML.Dock = System.Windows.Forms.DockStyle.Right;
            this.lblTimeSpentXML.Location = new System.Drawing.Point(821, 0);
            this.lblTimeSpentXML.Name = "lblTimeSpentXML";
            this.lblTimeSpentXML.Size = new System.Drawing.Size(11, 29);
            this.lblTimeSpentXML.TabIndex = 0;
            this.lblTimeSpentXML.Text = " ";
            // 
            // tabTable
            // 
            this.tabTable.BackColor = System.Drawing.Color.LightSteelBlue;
            this.tabTable.Controls.Add(this.pTable);
            this.tabTable.Location = new System.Drawing.Point(4, 31);
            this.tabTable.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabTable.Name = "tabTable";
            this.tabTable.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tabTable.Size = new System.Drawing.Size(867, 554);
            this.tabTable.TabIndex = 2;
            this.tabTable.Text = "By Table Parameter Type";
            this.tabTable.UseVisualStyleBackColor = true;
            // 
            // pTable
            // 
            this.pTable.ColumnCount = 1;
            this.pTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTable.Controls.Add(this.pTableBottom, 0, 2);
            this.pTable.Controls.Add(this.dgTable, 0, 0);
            this.pTable.Controls.Add(this.pTableLabel, 0, 1);
            this.pTable.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pTable.Location = new System.Drawing.Point(3, 4);
            this.pTable.Name = "pTable";
            this.pTable.RowCount = 4;
            this.pTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
            this.pTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
            this.pTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F));
            this.pTable.Size = new System.Drawing.Size(861, 546);
            this.pTable.TabIndex = 0;
            // 
            // pTableBottom
            // 
            this.pTableBottom.ColumnCount = 4;
            this.pTableBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTableBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pTableBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F));
            this.pTableBottom.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pTableBottom.Controls.Add(this.btnClearTable, 2, 0);
            this.pTableBottom.Controls.Add(this.btnGoTable, 1, 0);
            this.pTableBottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pTableBottom.Location = new System.Drawing.Point(3, 494);
            this.pTableBottom.Name = "pTableBottom";
            this.pTableBottom.RowCount = 1;
            this.pTableBottom.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTableBottom.Size = new System.Drawing.Size(855, 34);
            this.pTableBottom.TabIndex = 0;
            // 
            // btnClearTable
            // 
            this.btnClearTable.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnClearTable.Location = new System.Drawing.Point(707, 3);
            this.btnClearTable.Name = "btnClearTable";
            this.btnClearTable.Size = new System.Drawing.Size(125, 28);
            this.btnClearTable.TabIndex = 2;
            this.btnClearTable.Text = "Clear";
            this.btnClearTable.UseVisualStyleBackColor = true;
            this.btnClearTable.Click += new System.EventHandler(this.btnClearTable_Click);
            // 
            // btnGoTable
            // 
            this.btnGoTable.Dock = System.Windows.Forms.DockStyle.Fill;
            this.btnGoTable.Location = new System.Drawing.Point(576, 3);
            this.btnGoTable.Name = "btnGoTable";
            this.btnGoTable.Size = new System.Drawing.Size(125, 28);
            this.btnGoTable.TabIndex = 0;
            this.btnGoTable.Text = "Test Table Type";
            this.btnGoTable.UseVisualStyleBackColor = true;
            this.btnGoTable.Click += new System.EventHandler(this.btnGoTable_Click);
            // 
            // dgTable
            // 
            this.dgTable.AllowUserToAddRows = false;
            this.dgTable.AllowUserToDeleteRows = false;
            this.dgTable.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgTable.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dgTable.Location = new System.Drawing.Point(3, 3);
            this.dgTable.Name = "dgTable";
            this.dgTable.ReadOnly = true;
            this.dgTable.Size = new System.Drawing.Size(855, 450);
            this.dgTable.TabIndex = 1;
            // 
            // pTableLabel
            // 
            this.pTableLabel.ColumnCount = 2;
            this.pTableLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTableLabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.pTableLabel.Controls.Add(this.lblTimeSpentTable, 0, 0);
            this.pTableLabel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pTableLabel.Location = new System.Drawing.Point(3, 459);
            this.pTableLabel.Name = "pTableLabel";
            this.pTableLabel.RowCount = 1;
            this.pTableLabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pTableLabel.Size = new System.Drawing.Size(855, 29);
            this.pTableLabel.TabIndex = 2;
            // 
            // lblTimeSpentTable
            // 
            this.lblTimeSpentTable.AutoSize = true;
            this.lblTimeSpentTable.Dock = System.Windows.Forms.DockStyle.Right;
            this.lblTimeSpentTable.Location = new System.Drawing.Point(821, 0);
            this.lblTimeSpentTable.Name = "lblTimeSpentTable";
            this.lblTimeSpentTable.Size = new System.Drawing.Size(11, 29);
            this.lblTimeSpentTable.TabIndex = 0;
            this.lblTimeSpentTable.Text = " ";
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 2;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 1;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(200, 100);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // button2
            // 
            this.button2.Location = new System.Drawing.Point(894, 3);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(144, 23);
            this.button2.TabIndex = 0;
            this.button2.Text = "button2";
            this.button2.UseVisualStyleBackColor = true;
            // 
            // tableLayoutPanel3
            // 
            this.tableLayoutPanel3.ColumnCount = 1;
            this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel3.Name = "tableLayoutPanel3";
            this.tableLayoutPanel3.RowCount = 4;
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel3.Size = new System.Drawing.Size(200, 100);
            this.tableLayoutPanel3.TabIndex = 0;
            // 
            // tableLayoutPanel4
            // 
            this.tableLayoutPanel4.ColumnCount = 3;
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 536);
            this.tableLayoutPanel4.Name = "tableLayoutPanel4";
            this.tableLayoutPanel4.RowCount = 1;
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel4.Size = new System.Drawing.Size(1041, 34);
            this.tableLayoutPanel4.TabIndex = 0;
            // 
            // tableLayoutPanel2
            // 
            this.tableLayoutPanel2.ColumnCount = 2;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 1;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel2.Size = new System.Drawing.Size(200, 100);
            this.tableLayoutPanel2.TabIndex = 0;
            // 
            // menuStrip1
            // 
            this.menuStrip1.BackColor = System.Drawing.Color.OliveDrab;
            this.menuStrip1.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.viewToolStripMenuItem,
            this.aboutToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(881, 24);
            this.menuStrip1.TabIndex = 1;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // viewToolStripMenuItem
            // 
            this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
            this.viewToolStripMenuItem.Size = new System.Drawing.Size(227, 20);
            this.viewToolStripMenuItem.Text = "View Data to Send to SQL Server";
            this.viewToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click);
            // 
            // aboutToolStripMenuItem
            // 
            this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
            this.aboutToolStripMenuItem.Size = new System.Drawing.Size(72, 20);
            this.aboutToolStripMenuItem.Text = "About ...";
            this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
            // 
            // pOverall
            // 
            this.pOverall.ColumnCount = 1;
            this.pOverall.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pOverall.Controls.Add(this.tabMain, 0, 1);
            this.pOverall.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pOverall.Location = new System.Drawing.Point(0, 24);
            this.pOverall.Name = "pOverall";
            this.pOverall.RowCount = 3;
            this.pOverall.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 5F));
            this.pOverall.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.pOverall.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 2F));
            this.pOverall.Size = new System.Drawing.Size(881, 604);
            this.pOverall.TabIndex = 2;
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(881, 628);
            this.Controls.Add(this.pOverall);
            this.Controls.Add(this.menuStrip1);
            this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ForeColor = System.Drawing.Color.Maroon;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name = "frmMain";
            this.Text = "An Experimental Performance Comparison for Sending Table Structured Data to SQL S" +
                "erver Stored Procedure Parameters";
            this.tabMain.ResumeLayout(false);
            this.tabText.ResumeLayout(false);
            this.pText.ResumeLayout(false);
            this.pTextBottom.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgText)).EndInit();
            this.pTextLabel.ResumeLayout(false);
            this.pTextLabel.PerformLayout();
            this.tabXML.ResumeLayout(false);
            this.pXML.ResumeLayout(false);
            this.pXMLBottom.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgXML)).EndInit();
            this.pXMLLabel.ResumeLayout(false);
            this.pXMLLabel.PerformLayout();
            this.tabTable.ResumeLayout(false);
            this.pTable.ResumeLayout(false);
            this.pTableBottom.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgTable)).EndInit();
            this.pTableLabel.ResumeLayout(false);
            this.pTableLabel.PerformLayout();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.pOverall.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.TabControl tabMain;
        private System.Windows.Forms.TabPage tabText;
        private System.Windows.Forms.TabPage tabXML;
        private System.Windows.Forms.TabPage tabTable;
        private System.Windows.Forms.TableLayoutPanel pTable;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.TableLayoutPanel pTableBottom;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
        private System.Windows.Forms.TableLayoutPanel pText;
        private System.Windows.Forms.TableLayoutPanel pTextBottom;
        private System.Windows.Forms.TableLayoutPanel pXML;
        private System.Windows.Forms.TableLayoutPanel pXMLBottom;
        private System.Windows.Forms.DataGridView dgTable;
        private System.Windows.Forms.DataGridView dgText;
        private System.Windows.Forms.DataGridView dgXML;
        private System.Windows.Forms.Button btnGoXML;
        private System.Windows.Forms.Button btnGoText;
        private System.Windows.Forms.Button btnGoTable;
        private System.Windows.Forms.Button btnClearText;
        private System.Windows.Forms.Button btnClearXML;
        private System.Windows.Forms.Button btnClearTable;
        private System.Windows.Forms.TableLayoutPanel pTextLabel;
        private System.Windows.Forms.Label lblTimeSpentText;
        private System.Windows.Forms.TableLayoutPanel pXMLLabel;
        private System.Windows.Forms.Label lblTimeSpentXML;
        private System.Windows.Forms.TableLayoutPanel pTableLabel;
        private System.Windows.Forms.Label lblTimeSpentTable;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
        private System.Windows.Forms.MenuStrip menuStrip1;
        private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
        private System.Windows.Forms.TableLayoutPanel pOverall;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Dr. Song Li
United States United States
I have been working in the IT industry for some time. It is still exciting and I am still learning. I am a happy and honest person, and I want to be your friend.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 23 Dec 2009
Article Copyright 2009 by Dr. Song Li
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid