• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-26
  • 语言: C#
  • 标签:

资源简介

用于远程数据库的维护,转移数据库。比手动远程服务器转移要方便。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Collections;
using System.Data;

namespace DatabaseMove
{
    public class DbHelp
    {
         public static string ConnStrOle;
        private static SqlConnection connection;

        public delegate void ShowNetStatusDb(int Sql bool blnState);
        public event ShowNetStatusDb myShowNetStatusdb;

        private void IsBoolDb(int Sql bool blnState)
        {
            if (myShowNetStatusdb != null)
            {
                myShowNetStatusdb(Sql blnState);
            }
        }

        public DbHelp(string DbServer string DbName string DbUserId string DbPassWord)
        {
            ConnStrOle = “Data Source=“ + DbServer + “;Initial Catalog=“ + DbName + “;User ID=“ + DbUserId + “;Password=“ + DbPassWord + ““;
        }

        public void DbConnection()
        {
            try
            {
                connection 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      24576  2014-05-16 13:46  DatabaseMove\DatabaseMove\bin\Debug\DatabaseMove.exe

     文件      26112  2014-05-16 13:46  DatabaseMove\DatabaseMove\bin\Debug\DatabaseMove.pdb

     文件       5632  2005-11-11 22:25  DatabaseMove\DatabaseMove\bin\Debug\DatabaseMove.vshost.exe

     文件      12164  2014-05-16 13:46  DatabaseMove\DatabaseMove\bin\数据库转移工具.rar

     文件       1995  2013-07-14 08:13  DatabaseMove\DatabaseMove\DatabaseMove.csproj

     文件      10248  2013-07-14 08:14  DatabaseMove\DatabaseMove\DbHelp.cs

     文件        394  2014-11-18 14:47  DatabaseMove\DatabaseMove\obj\DatabaseMove.csproj.FileListAbsolute.txt

     文件      24576  2014-05-16 13:46  DatabaseMove\DatabaseMove\obj\Debug\DatabaseMove.exe

     文件      26112  2014-05-16 13:46  DatabaseMove\DatabaseMove\obj\Debug\DatabaseMove.pdb

     文件       6375  2014-11-18 14:52  DatabaseMove\DatabaseMove\Program.cs

     文件       1189  2013-07-14 08:11  DatabaseMove\DatabaseMove\Properties\AssemblyInfo.cs

     文件        925  2013-07-14 08:11  DatabaseMove\DatabaseMove.sln

    ..A..H.     11264  2014-11-18 14:47  DatabaseMove\DatabaseMove.suo

     目录          0  2013-07-14 09:08  DatabaseMove\DatabaseMove\obj\Debug\Refactor

     目录          0  2013-07-14 08:11  DatabaseMove\DatabaseMove\obj\Debug\TempPE

     目录          0  2013-07-14 08:20  DatabaseMove\DatabaseMove\bin\Debug

     目录          0  2014-05-16 13:46  DatabaseMove\DatabaseMove\obj\Debug

     目录          0  2014-05-16 13:46  DatabaseMove\DatabaseMove\bin

     目录          0  2013-07-14 08:13  DatabaseMove\DatabaseMove\obj

     目录          0  2013-07-14 08:11  DatabaseMove\DatabaseMove\Properties

     目录          0  2014-05-16 13:46  DatabaseMove\DatabaseMove

     目录          0  2013-07-14 08:11  DatabaseMove

----------- ---------  ---------- -----  ----

               151562                    22


评论

共有 条评论

相关资源