• 大小: 0.10M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 数据库  数据  基础  C#  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;//添加引用

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

        private void button1_Click(object sender EventArgs e)
        {
            SqlConnection conn = new SqlConnection(“server=.;database=medexinfoLH;uid=sa;pwd=MedExSQLServerAdmin;“);
            SqlCommand comm = new SqlCommand(“select doctortitle from doctor“ conn);
            SqlDataReader dr = null;
            try
            {
                conn.Open();
                dr=comm.ExecuteReader();//读取数据

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

     文件       9216  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\bin\Debug\WinFromConnSQLDemo1.exe

     文件      28160  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\bin\Debug\WinFromConnSQLDemo1.pdb

     文件      21464  2018-08-01 19:57  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\bin\Debug\WinFromConnSQLDemo1.vshost.exe

     文件        490  2010-03-17 22:39  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\bin\Debug\WinFromConnSQLDemo1.vshost.exe.manifest

     文件       1591  2018-07-25 22:14  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Form1.cs

     文件       2695  2018-07-25 22:12  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Form1.Designer.cs

     文件       5817  2018-07-25 22:12  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Form1.resx

     文件        789  2018-07-25 22:14  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6124  2019-07-01 17:23  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1982  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.csproj.FileListAbsolute.txt

     文件        847  2018-07-25 22:12  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.csproj.GenerateResource.Cache

     文件       1339  2018-07-25 22:06  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.csprojResolveAssemblyReference.cache

     文件       9216  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.exe

     文件        180  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.Form1.resources

     文件      28160  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.pdb

     文件        180  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\obj\Debug\WinFromConnSQLDemo1.Properties.Resources.resources

     文件        480  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Program.cs

     文件       1376  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Properties\AssemblyInfo.cs

     文件       2890  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Properties\Resources.Designer.cs

     文件       5612  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Properties\Resources.resx

     文件       1106  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Properties\Settings.Designer.cs

     文件        249  2018-07-25 22:00  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\Properties\Settings.settings

     文件       3560  2018-08-01 19:59  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1\WinFromConnSQLDemo1.csproj

     文件       1458  2018-08-01 20:11  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1.sln

    ..A..H.     39424  2018-08-06 21:20  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1.v11.suo

    ..A..H.     44544  2019-07-01 17:25  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo1.v12.suo

     文件         61  2018-08-01 21:42  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo2\bin\Debug\config.txt

     文件      11264  2018-08-01 21:42  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo2\bin\Debug\WinFromConnSQLDemo2.exe

     文件      30208  2018-08-01 21:42  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo2\bin\Debug\WinFromConnSQLDemo2.pdb

     文件      22704  2019-07-01 17:23  WinFromConnSQLDemo1-连接数据库\WinFromConnSQLDemo2\bin\Debug\WinFromConnSQLDemo2.vshost.exe

............此处省略40个文件信息

评论

共有 条评论