Click here to Skip to main content
15,894,362 members
Articles / Database Development / SQL Server

SQL Server Stored Procedures Comparer

Rate me:
Please Sign up or sign in to vote.
4.95/5 (35 votes)
22 Apr 2010CPOL9 min read 126.1K   6.5K   81  
Windows application that compares stored procedures between two SQL Server database
namespace SqlDBComparer
{
    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()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
            this.statStrip = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
            this.pbar = new System.Windows.Forms.ToolStripProgressBar();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.lvwSprocs = new System.Windows.Forms.ListView();
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.syncScrollingRichtextBox1 = new SyncScrollingRichtextBox.SyncScrollingRichtextBox();
            this.toolStripContainer2 = new System.Windows.Forms.ToolStripContainer();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
            this.lblSrcServer = new System.Windows.Forms.ToolStripLabel();
            this.cmbSrcDatabases = new System.Windows.Forms.ToolStripComboBox();
            this.btnSrcConnect = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
            this.lblTrgServer = new System.Windows.Forms.ToolStripLabel();
            this.cmbTrgDatabases = new System.Windows.Forms.ToolStripComboBox();
            this.btnTrgConnect = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
            this.btnCompare = new System.Windows.Forms.ToolStripButton();
            this.toolStripContainer1.SuspendLayout();
            this.statStrip.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.toolStripContainer2.BottomToolStripPanel.SuspendLayout();
            this.toolStripContainer2.ContentPanel.SuspendLayout();
            this.toolStripContainer2.TopToolStripPanel.SuspendLayout();
            this.toolStripContainer2.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStripContainer1
            // 
            this.toolStripContainer1.BottomToolStripPanelVisible = false;
            // 
            // toolStripContainer1.ContentPanel
            // 
            this.toolStripContainer1.ContentPanel.Margin = new System.Windows.Forms.Padding(0);
            this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(918, 418);
            this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.toolStripContainer1.LeftToolStripPanelVisible = false;
            this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
            this.toolStripContainer1.Name = "toolStripContainer1";
            this.toolStripContainer1.RightToolStripPanelVisible = false;
            this.toolStripContainer1.Size = new System.Drawing.Size(918, 443);
            this.toolStripContainer1.TabIndex = 0;
            this.toolStripContainer1.Text = "toolStripContainer1";
            // 
            // statStrip
            // 
            this.statStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.statStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabel1,
            this.lblStatus,
            this.pbar});
            this.statStrip.Location = new System.Drawing.Point(0, 0);
            this.statStrip.Name = "statStrip";
            this.statStrip.Size = new System.Drawing.Size(918, 22);
            this.statStrip.TabIndex = 3;
            this.statStrip.Text = "statusStrip1";
            // 
            // toolStripStatusLabel1
            // 
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(106, 17);
            this.toolStripStatusLabel1.Text = "cayroso@virtify.com";
            // 
            // lblStatus
            // 
            this.lblStatus.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.lblStatus.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.lblStatus.Name = "lblStatus";
            this.lblStatus.Size = new System.Drawing.Size(595, 17);
            this.lblStatus.Spring = true;
            this.lblStatus.Text = "Status";
            this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.lblStatus.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
            // 
            // pbar
            // 
            this.pbar.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.pbar.Name = "pbar";
            this.pbar.Size = new System.Drawing.Size(200, 16);
            this.pbar.Step = 1;
            this.pbar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
            // 
            // splitContainer1
            // 
            this.splitContainer1.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.lvwSprocs);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.syncScrollingRichtextBox1);
            this.splitContainer1.Size = new System.Drawing.Size(918, 443);
            this.splitContainer1.SplitterDistance = 208;
            this.splitContainer1.SplitterWidth = 5;
            this.splitContainer1.TabIndex = 0;
            // 
            // lvwSprocs
            // 
            this.lvwSprocs.AllowDrop = true;
            this.lvwSprocs.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lvwSprocs.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lvwSprocs.FullRowSelect = true;
            this.lvwSprocs.HideSelection = false;
            this.lvwSprocs.Location = new System.Drawing.Point(0, 0);
            this.lvwSprocs.Name = "lvwSprocs";
            this.lvwSprocs.ShowItemToolTips = true;
            this.lvwSprocs.Size = new System.Drawing.Size(918, 208);
            this.lvwSprocs.SmallImageList = this.imageList1;
            this.lvwSprocs.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.lvwSprocs.TabIndex = 0;
            this.lvwSprocs.UseCompatibleStateImageBehavior = false;
            this.lvwSprocs.View = System.Windows.Forms.View.Details;
            this.lvwSprocs.DoubleClick += new System.EventHandler(this.lvwSprocs_DoubleClick);
            this.lvwSprocs.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvwSprocs_ColumnClick);
            // 
            // imageList1
            // 
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "changed.PNG");
            this.imageList1.Images.SetKeyName(1, "removed.PNG");
            this.imageList1.Images.SetKeyName(2, "added.PNG");
            // 
            // syncScrollingRichtextBox1
            // 
            this.syncScrollingRichtextBox1.AutoScroll = true;
            this.syncScrollingRichtextBox1.AutoSize = true;
            this.syncScrollingRichtextBox1.BackColor = System.Drawing.SystemColors.ButtonFace;
            this.syncScrollingRichtextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.syncScrollingRichtextBox1.Location = new System.Drawing.Point(0, 0);
            this.syncScrollingRichtextBox1.Name = "syncScrollingRichtextBox1";
            this.syncScrollingRichtextBox1.Size = new System.Drawing.Size(918, 230);
            this.syncScrollingRichtextBox1.TabIndex = 9;
            // 
            // toolStripContainer2
            // 
            // 
            // toolStripContainer2.BottomToolStripPanel
            // 
            this.toolStripContainer2.BottomToolStripPanel.Controls.Add(this.statStrip);
            // 
            // toolStripContainer2.ContentPanel
            // 
            this.toolStripContainer2.ContentPanel.AutoScroll = true;
            this.toolStripContainer2.ContentPanel.Controls.Add(this.splitContainer1);
            this.toolStripContainer2.ContentPanel.Controls.Add(this.toolStripContainer1);
            this.toolStripContainer2.ContentPanel.Size = new System.Drawing.Size(918, 443);
            this.toolStripContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.toolStripContainer2.Location = new System.Drawing.Point(0, 0);
            this.toolStripContainer2.Name = "toolStripContainer2";
            this.toolStripContainer2.Size = new System.Drawing.Size(918, 490);
            this.toolStripContainer2.TabIndex = 1;
            this.toolStripContainer2.Text = "toolStripContainer2";
            // 
            // toolStripContainer2.TopToolStripPanel
            // 
            this.toolStripContainer2.TopToolStripPanel.Controls.Add(this.toolStrip1);
            // 
            // toolStrip1
            // 
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripLabel1,
            this.lblSrcServer,
            this.cmbSrcDatabases,
            this.btnSrcConnect,
            this.toolStripButton2,
            this.toolStripSeparator1,
            this.toolStripLabel3,
            this.lblTrgServer,
            this.cmbTrgDatabases,
            this.btnTrgConnect,
            this.toolStripButton1,
            this.toolStripSeparator2,
            this.toolStripButton3,
            this.btnCompare});
            this.toolStrip1.Location = new System.Drawing.Point(3, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(739, 25);
            this.toolStrip1.TabIndex = 1;
            // 
            // toolStripLabel1
            // 
            this.toolStripLabel1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new System.Drawing.Size(49, 22);
            this.toolStripLabel1.Text = "Source:";
            // 
            // lblSrcServer
            // 
            this.lblSrcServer.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.lblSrcServer.IsLink = true;
            this.lblSrcServer.Name = "lblSrcServer";
            this.lblSrcServer.Size = new System.Drawing.Size(0, 22);
            this.lblSrcServer.ToolTipText = "source sql server machine";
            // 
            // cmbSrcDatabases
            // 
            this.cmbSrcDatabases.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbSrcDatabases.Name = "cmbSrcDatabases";
            this.cmbSrcDatabases.Size = new System.Drawing.Size(150, 25);
            this.cmbSrcDatabases.ToolTipText = "list of databases available in source";
            // 
            // btnSrcConnect
            // 
            this.btnSrcConnect.BackColor = System.Drawing.SystemColors.Control;
            this.btnSrcConnect.Checked = true;
            this.btnSrcConnect.CheckState = System.Windows.Forms.CheckState.Indeterminate;
            this.btnSrcConnect.Image = ((System.Drawing.Image)(resources.GetObject("btnSrcConnect.Image")));
            this.btnSrcConnect.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnSrcConnect.Name = "btnSrcConnect";
            this.btnSrcConnect.Size = new System.Drawing.Size(67, 22);
            this.btnSrcConnect.Text = "Connect";
            this.btnSrcConnect.ToolTipText = "connects to a source server";
            this.btnSrcConnect.Click += new System.EventHandler(this.btnSrcConnect_Click);
            // 
            // toolStripButton2
            // 
            this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.None;
            this.toolStripButton2.Enabled = false;
            this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton2.Text = "toolStripButton2";
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Margin = new System.Windows.Forms.Padding(1);
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 23);
            // 
            // toolStripLabel3
            // 
            this.toolStripLabel3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.toolStripLabel3.Name = "toolStripLabel3";
            this.toolStripLabel3.Size = new System.Drawing.Size(48, 22);
            this.toolStripLabel3.Text = "Target:";
            // 
            // lblTrgServer
            // 
            this.lblTrgServer.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.lblTrgServer.IsLink = true;
            this.lblTrgServer.Name = "lblTrgServer";
            this.lblTrgServer.Size = new System.Drawing.Size(0, 22);
            this.lblTrgServer.ToolTipText = "target sql server machine";
            // 
            // cmbTrgDatabases
            // 
            this.cmbTrgDatabases.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbTrgDatabases.Name = "cmbTrgDatabases";
            this.cmbTrgDatabases.Size = new System.Drawing.Size(150, 25);
            this.cmbTrgDatabases.ToolTipText = "list of databases available in target";
            // 
            // btnTrgConnect
            // 
            this.btnTrgConnect.Checked = true;
            this.btnTrgConnect.CheckState = System.Windows.Forms.CheckState.Indeterminate;
            this.btnTrgConnect.Image = ((System.Drawing.Image)(resources.GetObject("btnTrgConnect.Image")));
            this.btnTrgConnect.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnTrgConnect.Name = "btnTrgConnect";
            this.btnTrgConnect.Size = new System.Drawing.Size(67, 22);
            this.btnTrgConnect.Text = "Connect";
            this.btnTrgConnect.ToolTipText = "connects to a target server";
            this.btnTrgConnect.Click += new System.EventHandler(this.btnTrgConnect_Click);
            // 
            // toolStripButton1
            // 
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.None;
            this.toolStripButton1.Enabled = false;
            this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton1.Text = "toolStripButton1";
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // toolStripButton3
            // 
            this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Enabled = false;
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton3.Text = "toolStripButton3";
            // 
            // btnCompare
            // 
            this.btnCompare.Checked = true;
            this.btnCompare.CheckState = System.Windows.Forms.CheckState.Indeterminate;
            this.btnCompare.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.btnCompare.Image = ((System.Drawing.Image)(resources.GetObject("btnCompare.Image")));
            this.btnCompare.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnCompare.Name = "btnCompare";
            this.btnCompare.Size = new System.Drawing.Size(78, 22);
            this.btnCompare.Text = "Compare";
            this.btnCompare.Click += new System.EventHandler(this.btnCompare_Click);
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(918, 490);
            this.Controls.Add(this.toolStripContainer2);
            this.KeyPreview = true;
            this.Name = "frmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "SQLSPComparer Prototype Version";
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing);
            this.Resize += new System.EventHandler(this.frmMain_Resize);
            this.toolStripContainer1.ResumeLayout(false);
            this.toolStripContainer1.PerformLayout();
            this.statStrip.ResumeLayout(false);
            this.statStrip.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.Panel2.PerformLayout();
            this.splitContainer1.ResumeLayout(false);
            this.toolStripContainer2.BottomToolStripPanel.ResumeLayout(false);
            this.toolStripContainer2.BottomToolStripPanel.PerformLayout();
            this.toolStripContainer2.ContentPanel.ResumeLayout(false);
            this.toolStripContainer2.TopToolStripPanel.ResumeLayout(false);
            this.toolStripContainer2.TopToolStripPanel.PerformLayout();
            this.toolStripContainer2.ResumeLayout(false);
            this.toolStripContainer2.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ToolStripContainer toolStripContainer1;
        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.ListView lvwSprocs;
        private System.Windows.Forms.StatusStrip statStrip;
        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
        private System.Windows.Forms.ToolStripStatusLabel lblStatus;
        private System.Windows.Forms.ToolStripProgressBar pbar;
        private System.Windows.Forms.ToolStripContainer toolStripContainer2;
        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.ToolStripLabel toolStripLabel1;
        private System.Windows.Forms.ToolStripLabel lblSrcServer;
        private System.Windows.Forms.ToolStripComboBox cmbSrcDatabases;
        private System.Windows.Forms.ToolStripButton btnSrcConnect;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripLabel toolStripLabel3;
        private System.Windows.Forms.ToolStripLabel lblTrgServer;
        private System.Windows.Forms.ToolStripComboBox cmbTrgDatabases;
        private System.Windows.Forms.ToolStripButton btnTrgConnect;
        private System.Windows.Forms.ToolStripButton btnCompare;
        private System.Windows.Forms.ToolStripButton toolStripButton1;
        private System.Windows.Forms.ToolStripButton toolStripButton2;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripButton toolStripButton3;
        private System.Windows.Forms.ImageList imageList1;
        private SyncScrollingRichtextBox.SyncScrollingRichtextBox syncScrollingRichtextBox1;
    }
}

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)


Written By
Database Developer Virtify Inc.
Philippines Philippines
I am a database developer in my current employment for nearly 4 years. I'm proficient in programming using C/C++, C#, and T-sql. When I am not working, I like to read books(non-fiction specially), play mmorpgs where I can be what I don't want to be Smile | :) , and going outdoors.

Comments and Discussions