• 大小: 1.68M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.IO;

namespace GetAllServer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        //绑定当前局域网中的所有SQL服务器
        private void Form1_Load(object sender EventArgs e)
        {
            SQLDMO.Application SQLServer = new SQLDMO.Application();
            SQLDMO.NameList strServerList = SQLServer.ListAvailableSQLServers();
            if (strServerList.Count > 0)
            {
                for (int i = 0; i < strServerList.Count; i++)
                {
         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         926  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer.sln
     文件       23552  2009-02-11 09:44  sj\01\GetAllServer\GetAllServer.suo
     文件        1004  2009-02-11 09:42  sj\01\GetAllServer\GetAllServer\Form1.cs
     文件        3219  2009-02-11 09:42  sj\01\GetAllServer\GetAllServer\Form1.designer.cs
     文件        6012  2009-02-11 09:42  sj\01\GetAllServer\GetAllServer\Form1.resx
     文件        4091  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\GetAllServer.csproj
     文件         493  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Program.cs
     文件        8704  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\bin\Debug\GetAllServer.exe
     文件       19968  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\bin\Debug\GetAllServer.pdb
     文件       14328  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\bin\Debug\GetAllServer.vshost.exe
     文件      950272  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\bin\Debug\Interop.SQLDMO.dll
     文件        1124  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.csproj.FileListAbsolute.txt
     文件         847  2009-02-11 09:42  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.csproj.GenerateResource.Cache
     文件         579  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.csproj.ResolveComReference.cache
     文件        8704  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.exe
     文件         180  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.Form1.resources
     文件       19968  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.pdb
     文件         180  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\GetAllServer.Properties.Resources.resources
     文件      950272  2009-02-11 09:43  sj\01\GetAllServer\GetAllServer\obj\Debug\Interop.SQLDMO.dll
     文件        1380  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Properties\AssemblyInfo.cs
     文件        2874  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Properties\Resources.Designer.cs
     文件        5612  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Properties\Resources.resx
     文件        1097  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Properties\Settings.Designer.cs
     文件         249  2009-02-11 09:38  sj\01\GetAllServer\GetAllServer\Properties\Settings.settings
     文件         917  2009-02-11 09:44  sj\02\DRSQL2005\DRSQL2005.sln
     文件       23040  2009-02-11 09:51  sj\02\DRSQL2005\DRSQL2005.suo
     文件        4085  2009-02-11 09:49  sj\02\DRSQL2005\DRSQL2005\DRSQL2005.csproj
     文件        8272  2009-02-11 09:50  sj\02\DRSQL2005\DRSQL2005\Form1.cs
     文件       20447  2009-02-11 09:49  sj\02\DRSQL2005\DRSQL2005\Form1.designer.cs
     文件        7853  2009-02-11 09:46  sj\02\DRSQL2005\DRSQL2005\Form1.resx
     文件         490  2009-02-11 09:44  sj\02\DRSQL2005\DRSQL2005\Program.cs
............此处省略45个文件信息

评论

共有 条评论