摘要:
using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace Utility{ public abstract class SqlHelper { protected static string connectionString = ConfigurationSettings.AppSettings["Co 阅读全文
摘要:
1、连接 SQL2000 [sa 身份登录] string sqlConnection="server=(local);database=db;user id=sa;pwd=123;";2、连接 SQL2000 [windows 默认身份登录] string SqlConnection="server=(local);Initial Catalog=db;Integrated Security=true;";3、连接 SQL2005 [sa 身份登录] string sqlConnection="data source=(local);data 阅读全文