Click here to Skip to main content

How to enum SQL Server instances in network

SOWA_upd-noexe.zip
SOWA_upd
SOWA_upd.suo
SOWA_upd
bin
Debug
My Project
Application.myapp
Settings.settings
obj
Debug
SOWA_upd.Form1.resources
SOWA_upd.Resources.resources
SOWA_upd.zip
SOWA_upd.suo
SOWA_upd.exe
SOWA_upd.vshost.exe
Application.myapp
Settings.settings
SOWA_upd.exe
SOWA_upd.Form1.resources
SOWA_upd.Resources.resources
TempPE
My Project.Resources.Designer.vb.dll
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.SplitContainer1 = New System.Windows.Forms.SplitContainer
        Me.CmbSQLInstance = New System.Windows.Forms.ComboBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.DGVSQLInstances = New System.Windows.Forms.DataGridView
        Me.SplitContainer1.Panel1.SuspendLayout()
        Me.SplitContainer1.Panel2.SuspendLayout()
        Me.SplitContainer1.SuspendLayout()
        CType(Me.DGVSQLInstances, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'SplitContainer1
        '
        Me.SplitContainer1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.SplitContainer1.Location = New System.Drawing.Point(0, 0)
        Me.SplitContainer1.Name = "SplitContainer1"
        Me.SplitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal
        '
        'SplitContainer1.Panel1
        '
        Me.SplitContainer1.Panel1.Controls.Add(Me.CmbSQLInstance)
        Me.SplitContainer1.Panel1.Controls.Add(Me.Label1)
        '
        'SplitContainer1.Panel2
        '
        Me.SplitContainer1.Panel2.Controls.Add(Me.DGVSQLInstances)
        Me.SplitContainer1.Size = New System.Drawing.Size(642, 387)
        Me.SplitContainer1.SplitterDistance = 56
        Me.SplitContainer1.TabIndex = 0
        '
        'CmbSQLInstance
        '
        Me.CmbSQLInstance.FormattingEnabled = True
        Me.CmbSQLInstance.Location = New System.Drawing.Point(83, 12)
        Me.CmbSQLInstance.Name = "CmbSQLInstance"
        Me.CmbSQLInstance.Size = New System.Drawing.Size(442, 21)
        Me.CmbSQLInstance.TabIndex = 7
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(12, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(65, 13)
        Me.Label1.TabIndex = 6
        Me.Label1.Text = "Server SQL:"
        '
        'DGVSQLInstances
        '
        Me.DGVSQLInstances.AllowUserToAddRows = False
        Me.DGVSQLInstances.AllowUserToDeleteRows = False
        Me.DGVSQLInstances.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
        Me.DGVSQLInstances.Dock = System.Windows.Forms.DockStyle.Fill
        Me.DGVSQLInstances.Location = New System.Drawing.Point(0, 0)
        Me.DGVSQLInstances.Name = "DGVSQLInstances"
        Me.DGVSQLInstances.ReadOnly = True
        Me.DGVSQLInstances.Size = New System.Drawing.Size(642, 327)
        Me.DGVSQLInstances.TabIndex = 0
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(642, 387)
        Me.Controls.Add(Me.SplitContainer1)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.SplitContainer1.Panel1.ResumeLayout(False)
        Me.SplitContainer1.Panel1.PerformLayout()
        Me.SplitContainer1.Panel2.ResumeLayout(False)
        Me.SplitContainer1.ResumeLayout(False)
        CType(Me.DGVSQLInstances, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents SplitContainer1 As System.Windows.Forms.SplitContainer
    Friend WithEvents CmbSQLInstance As System.Windows.Forms.ComboBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents DGVSQLInstances As System.Windows.Forms.DataGridView

End Class

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.


Web03 | 2.8.160204.4 | Advertise | Privacy
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service