zoukankan      html  css  js  c++  java
  • 自用DBClass SQLServer数据库操作类

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

    /// <summary>
    /// DBClass : SQL Server 数据库 操作类
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    ///     xx. YYYY/MM/DD   VER     AUTHOR      COMMENTS        
    ///      1. 2008/03/04           Free        CREATE
    /// </history>


    public class DBClass
    {
        SqlConnection theSqlConnection 
    = new SqlConnection();

        
    得到数据库连接字串

        
    运行Select查询 得到一个DataSet

        
    运行查询 得到DataTable

        
    运行非Select的Insert或Update或Delete语句 成功返回true 否则返回false

    }
  • 相关阅读:
    Redis扩展功能
    Redis持久化
    redis-通讯协议及事件处理机制
    Redis-数据类型与底层数据结构
    分布式集群架构场景化解决方案
    MySQL-运维和第三方工具
    缓存原理&设计
    MySQL性能优化
    MySQL高级-日志常用的工具等等
    Mysql高级——优化
  • 原文地址:https://www.cnblogs.com/freeliver54/p/1103309.html
Copyright © 2011-2022 走看看