亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? frmysjy.cs

?? 可將ACCESS數(shù)據(jù)庫導(dǎo)入到Oracle數(shù)據(jù)庫
?? CS
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Microsoft.Win32;

namespace DataC
{
	/// <summary>
	/// Summary description for frmYSJY.
	/// </summary>
	public class frmYSJY : System.Windows.Forms.Form
	{
		public
			string strConn=null;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.TextBox tbDBN;
		private System.Windows.Forms.TextBox tbPW;
		private System.Windows.Forms.TextBox tbUN;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.ComboBox cbType;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button btOK;
		private System.Windows.Forms.OpenFileDialog ofd;
		private System.Windows.Forms.Label lbODBC;
		private System.Windows.Forms.ComboBox cbODBC;
		private System.Windows.Forms.Label lbSql;
		private System.Windows.Forms.TextBox tbSql;

		
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmYSJY()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(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.groupBox1 = new System.Windows.Forms.GroupBox();
			this.tbSql = new System.Windows.Forms.TextBox();
			this.lbSql = new System.Windows.Forms.Label();
			this.btOK = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.tbDBN = new System.Windows.Forms.TextBox();
			this.tbPW = new System.Windows.Forms.TextBox();
			this.tbUN = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.cbODBC = new System.Windows.Forms.ComboBox();
			this.cbType = new System.Windows.Forms.ComboBox();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.lbODBC = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.ofd = new System.Windows.Forms.OpenFileDialog();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.tbSql);
			this.groupBox1.Controls.Add(this.lbSql);
			this.groupBox1.Controls.Add(this.btOK);
			this.groupBox1.Controls.Add(this.button1);
			this.groupBox1.Controls.Add(this.tbDBN);
			this.groupBox1.Controls.Add(this.tbPW);
			this.groupBox1.Controls.Add(this.tbUN);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.cbODBC);
			this.groupBox1.Controls.Add(this.cbType);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.lbODBC);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(1, -5);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(263, 221);
			this.groupBox1.TabIndex = 14;
			this.groupBox1.TabStop = false;
			// 
			// tbSql
			// 
			this.tbSql.Location = new System.Drawing.Point(88, 56);
			this.tbSql.Name = "tbSql";
			this.tbSql.Size = new System.Drawing.Size(120, 21);
			this.tbSql.TabIndex = 1;
			this.tbSql.Text = "";
			// 
			// lbSql
			// 
			this.lbSql.AutoSize = true;
			this.lbSql.Location = new System.Drawing.Point(11, 56);
			this.lbSql.Name = "lbSql";
			this.lbSql.Size = new System.Drawing.Size(72, 17);
			this.lbSql.TabIndex = 25;
			this.lbSql.Text = "Sql服務(wù)器名";
			// 
			// btOK
			// 
			this.btOK.Location = new System.Drawing.Point(152, 184);
			this.btOK.Name = "btOK";
			this.btOK.TabIndex = 24;
			this.btOK.Text = "確定";
			this.btOK.Click += new System.EventHandler(this.btOK_Click);
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(224, 88);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(32, 23);
			this.button1.TabIndex = 23;
			this.button1.Text = "...";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// tbDBN
			// 
			this.tbDBN.Location = new System.Drawing.Point(88, 88);
			this.tbDBN.Name = "tbDBN";
			this.tbDBN.Size = new System.Drawing.Size(136, 21);
			this.tbDBN.TabIndex = 2;
			this.tbDBN.Text = "";
			// 
			// tbPW
			// 
			this.tbPW.Location = new System.Drawing.Point(88, 152);
			this.tbPW.Name = "tbPW";
			this.tbPW.PasswordChar = '#';
			this.tbPW.Size = new System.Drawing.Size(120, 21);
			this.tbPW.TabIndex = 4;
			this.tbPW.Text = "";
			// 
			// tbUN
			// 
			this.tbUN.Location = new System.Drawing.Point(88, 120);
			this.tbUN.Name = "tbUN";
			this.tbUN.Size = new System.Drawing.Size(120, 21);
			this.tbUN.TabIndex = 3;
			this.tbUN.Text = "";
			// 
			// label5
			// 
			this.label5.AutoSize = true;
			this.label5.Location = new System.Drawing.Point(29, 88);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(54, 17);
			this.label5.TabIndex = 21;
			this.label5.Text = "數(shù)據(jù)庫名";
			// 
			// cbODBC
			// 
			this.cbODBC.Location = new System.Drawing.Point(88, 56);
			this.cbODBC.Name = "cbODBC";
			this.cbODBC.Size = new System.Drawing.Size(121, 20);
			this.cbODBC.TabIndex = 20;
			// 
			// cbType
			// 
			this.cbType.Items.AddRange(new object[] {
														"Access數(shù)據(jù)庫",
														"SQLserver數(shù)據(jù)庫",
														"Oracle數(shù)據(jù)庫"});
			this.cbType.Location = new System.Drawing.Point(88, 21);
			this.cbType.Name = "cbType";
			this.cbType.Size = new System.Drawing.Size(121, 20);
			this.cbType.TabIndex = 0;
			this.cbType.Text = "Access數(shù)據(jù)庫";
			this.cbType.SelectedIndexChanged += new System.EventHandler(this.cbType_SelectedIndexChanged);
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(51, 153);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(29, 17);
			this.label4.TabIndex = 16;
			this.label4.Text = "密碼";
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(40, 123);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(42, 17);
			this.label3.TabIndex = 15;
			this.label3.Text = "用戶名";
			// 
			// lbODBC
			// 
			this.lbODBC.AutoSize = true;
			this.lbODBC.Location = new System.Drawing.Point(8, 56);
			this.lbODBC.Name = "lbODBC";
			this.lbODBC.Size = new System.Drawing.Size(79, 17);
			this.lbODBC.TabIndex = 14;
			this.lbODBC.Text = "ODBC數(shù)據(jù)源名";
			this.lbODBC.Visible = false;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(18, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(66, 17);
			this.label1.TabIndex = 13;
			this.label1.Text = "數(shù)據(jù)庫類型";
			// 
			// frmYSJY
			// 
			this.AcceptButton = this.btOK;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(266, 216);
			this.ControlBox = false;
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Name = "frmYSJY";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "配置源數(shù)據(jù)源";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void cbType_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			tbDBN.Enabled=true;
			if(cbType.Text=="ODBC數(shù)據(jù)源")
			{
				tbDBN.Enabled=false;
				cbODBC.Visible=true;
				lbODBC.Visible=true;
				lbSql.Visible=false;
				tbSql.Visible=false;
				GetSysODBC(cbODBC.Items);
				return;
			}
			if(cbType.Text=="Access數(shù)據(jù)庫")
			{
				
			}
			if(cbType.Text=="SQLserver數(shù)據(jù)庫")
			{
				lbSql.Visible=true;
				tbSql.Visible=true;
				lbODBC.Visible=false;
				cbODBC.Visible=false;
			}
			if(cbType.Text=="Oracle數(shù)據(jù)庫")
			{
				tbSql.Enabled=false;
				lbSql.Enabled=false;
				cbODBC.Visible=false;
				lbODBC.Visible=false;
			}

			
		}
		private void GetSysODBC(System.Windows.Forms.ComboBox.ObjectCollection slODBC)
		{
			RegistryKey a=Registry.CurrentUser;
			RegistryKey b=a.OpenSubKey("Software");
			RegistryKey c=b.OpenSubKey("ODBC");
			RegistryKey d=c.OpenSubKey("ODBC.INI");
			foreach(string strODBC in d.GetSubKeyNames())
			{	
				slODBC.Add(strODBC);
			}
		}

		private void odbcConnection1_InfoMessage(object sender, System.Data.Odbc.OdbcInfoMessageEventArgs e)
		{
		
		}

		private void btOK_Click(object sender, System.EventArgs e)
		{

			if(cbType.Text=="ODBC數(shù)據(jù)源")
			{
				if(cbODBC.Text=="")
				{
					MessageBox.Show("Error ****ODBC數(shù)據(jù)源不能為空!****");
					return;
				}
				strConn="Provider=ODBCOLEDB;DSN="+cbODBC.Text+";"+"UID="+tbUN.Text+";"+"PWD="+tbPW.Text+";";
			}
			else
			{
				if(tbDBN.Text=="")
				{
					MessageBox.Show("Error ****數(shù)據(jù)庫名不能為空!****");
					return;
				}
				if(cbType.Text=="SQLserver數(shù)據(jù)庫")
				{
					strConn="Provider=SQLOLEDB;Data Source="+tbSql.Text+";User ID="+tbUN.Text +";Password="+tbPW.Text+";Initial Catalog="+tbDBN.Text;
				}
				if(cbType.Text=="Access數(shù)據(jù)庫")
				{
					strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ tbDBN.Text+ ";User ID="+tbUN.Text+";Password="+tbPW.Text;
					//strConn="Data Source=\""   + tbDBN.Text+  "\";Provider=\"Microsoft.Jet.OLEDB.4.0\";User ID=Admin;Password=;Jet OLEDB:SFP=False;";
				}
				if(cbType.Text=="Oracle數(shù)據(jù)庫")
				{
					strConn="Provider=OraOLEDB.Oracle.1;User ID="+tbUN.Text+";Data Source="+tbDBN.Text+";Persist Security Info=True;Password="+tbPW.Text;
				}
			}
            this.Close();
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			if(ofd.ShowDialog()==System.Windows.Forms.DialogResult.OK)
				tbDBN.Text=ofd.FileName;
		}



	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜精品电影| 欧美大肚乱孕交hd孕妇| 蜜臀av一级做a爰片久久| 国产精品毛片久久久久久| 9191久久久久久久久久久| 99r国产精品| 激情偷乱视频一区二区三区| 亚洲狠狠爱一区二区三区| 国产精品伦一区| 欧美精品一区二区三区蜜桃视频 | 国产精品色哟哟| 中文字幕在线观看不卡视频| 欧美一区二区三区在线电影| 欧美图区在线视频| 97精品久久久久中文字幕 | 欧美在线观看一二区| 国产伦精品一区二区三区视频青涩 | 欧美精品18+| av不卡在线观看| 国产精品一级片在线观看| 免费国产亚洲视频| 午夜欧美视频在线观看| 一级特黄大欧美久久久| 亚洲欧美日韩国产综合在线| 国产精品久久网站| 国产拍揄自揄精品视频麻豆| 久久这里只有精品6| 欧美草草影院在线视频| 欧美一级日韩免费不卡| 欧美日韩三级在线| 欧美性视频一区二区三区| 91福利资源站| 欧美亚洲国产bt| 欧美日韩中文字幕一区二区| 欧美三区在线观看| 欧美日本一道本在线视频| 91成人免费在线视频| 在线中文字幕不卡| 欧洲视频一区二区| 欧美三级日本三级少妇99| 欧美人妖巨大在线| 欧美老肥妇做.爰bbww| 欧美猛男gaygay网站| 欧美精品xxxxbbbb| 日韩欧美不卡在线观看视频| 欧美精品一区二区不卡| 久久久国产一区二区三区四区小说| 久久亚洲欧美国产精品乐播 | 天堂一区二区在线免费观看| 亚洲福利电影网| 青娱乐精品视频| 国产一区999| 成人综合婷婷国产精品久久蜜臀 | 亚洲欧美激情小说另类| 亚洲最大的成人av| 日日夜夜精品视频免费| 六月丁香综合在线视频| 国产91精品免费| 色综合天天综合在线视频| 欧美性感一类影片在线播放| 3d动漫精品啪啪1区2区免费 | 亚洲国产成人91porn| 午夜亚洲福利老司机| 另类小说图片综合网| 国产经典欧美精品| 91久久精品一区二区三区| 欧美福利视频一区| 精品国产凹凸成av人网站| 国产精品无遮挡| 午夜av区久久| 国产成人丝袜美腿| 欧美综合一区二区| 精品粉嫩超白一线天av| 中文字幕在线观看一区二区| 五月婷婷综合网| 国产乱码精品一品二品| 一本久久综合亚洲鲁鲁五月天| 欧美日韩在线播放三区| 国产亚洲女人久久久久毛片| 亚洲夂夂婷婷色拍ww47| 精品一区二区三区影院在线午夜| www.一区二区| 91精品国产综合久久久久久| 欧美韩国日本综合| 奇米一区二区三区| 一本色道久久综合精品竹菊| 久久婷婷成人综合色| 夜夜揉揉日日人人青青一国产精品| 激情综合一区二区三区| 在线免费观看日本一区| 久久蜜臀精品av| 亚洲bt欧美bt精品777| 国产大陆a不卡| 日韩午夜电影av| 樱桃视频在线观看一区| 国产久卡久卡久卡久卡视频精品| 欧美日韩中文字幕精品| 中文字幕人成不卡一区| 精品一区二区三区免费播放 | 久久久久99精品一区| 亚洲国产日韩综合久久精品| 成人福利电影精品一区二区在线观看| 欧美日本视频在线| 亚洲乱码一区二区三区在线观看| 国产激情一区二区三区桃花岛亚洲| 91精品国产综合久久久久久| 亚洲综合一区在线| 成人动漫精品一区二区| 久久综合九色综合97婷婷女人| 偷窥少妇高潮呻吟av久久免费| 一本色道a无线码一区v| 国产精品久久久久精k8| 国产99久久久国产精品免费看 | 欧美日本视频在线| 一个色在线综合| 一本大道av一区二区在线播放| 欧美高清一级片在线观看| 国内偷窥港台综合视频在线播放| 91精品国产综合久久精品性色| 亚洲国产精品人人做人人爽| 在线精品视频一区二区三四| 亚洲欧洲日韩一区二区三区| 成人丝袜视频网| 国产精品无码永久免费888| 国产精品一区二区三区99| 26uuu另类欧美| 久久精品国产网站| 精品奇米国产一区二区三区| 美国av一区二区| 日韩欧美一区电影| 精品一区二区三区欧美| 久久天天做天天爱综合色| 狠狠久久亚洲欧美| 久久这里只有精品6| 国产一区 二区| 国产精品美女久久久久高潮| 成人高清视频免费观看| 国产精品第四页| 91在线国产观看| 亚洲一区在线视频| 在线精品视频免费播放| 一区二区三区**美女毛片| 欧美日韩精品欧美日韩精品| 亚洲成人自拍网| 日韩视频国产视频| 国产一区二区三区四区在线观看| 久久久天堂av| 99视频超级精品| 亚洲国产精品一区二区尤物区| 欧美日韩激情一区| 蜜臀av性久久久久蜜臀av麻豆| 久久亚洲精华国产精华液| 国产超碰在线一区| 亚洲男人的天堂一区二区| 欧美另类变人与禽xxxxx| 蜜桃精品视频在线| 26uuu国产在线精品一区二区| 国产成人自拍网| 亚洲欧美日韩小说| 6080国产精品一区二区| 国产精品一二三在| 亚洲免费观看高清完整版在线观看 | 成人av资源在线| 亚洲午夜日本在线观看| 欧美一区二区精品| 丁香激情综合五月| 亚洲六月丁香色婷婷综合久久| 67194成人在线观看| 国产一区二区在线观看视频| 国产精品久久久久精k8| 在线一区二区三区四区| 久久精品国产第一区二区三区| 国产精品无遮挡| 在线播放91灌醉迷j高跟美女| 国产米奇在线777精品观看| 亚洲激情中文1区| 精品三级在线观看| 91免费看`日韩一区二区| 另类成人小视频在线| 亚洲人精品一区| 久久影院视频免费| 在线观看亚洲a| 国产91在线看| 日韩中文字幕麻豆| 中文字幕一区在线观看| 日韩免费视频线观看| 91成人免费网站| 国产成人在线网站| 日韩av网站免费在线| 综合欧美亚洲日本| 久久老女人爱爱| 69堂国产成人免费视频| 91碰在线视频| 国产一区二区福利视频| 丝袜美腿亚洲综合| 亚洲日本青草视频在线怡红院| 久久无码av三级| 91精品国产91久久久久久一区二区 | 美女网站视频久久| 亚洲日本免费电影|