摘要:
string connStr = ConfigurationManager.ConnectionStrings["dbConnStr"].ConnectionString; Stopwatch sp = new Stopwatch(); sp.Start(); for (int i = 0; i < 1000; i++) ... 阅读全文
posted @ 2017-01-24 11:33
darrell007
阅读(288)
评论(0)
推荐(0)
摘要:
Sql中添加别名有三种方式: 阅读全文
posted @ 2017-01-24 11:30
darrell007
阅读(143)
评论(0)
推荐(0)
摘要:
SELECT CONVERT(varchar(100), GETDATE(), 23) AS 日期 结果:2017-01-05 select ISNULL(price,'0.0') FROM table 将表中为null的值变成0.0 select * from [DBData].[dbo].[T_ 阅读全文
posted @ 2017-01-24 11:29
darrell007
阅读(226)
评论(0)
推荐(0)
摘要:
MD5 加盐处理 md5(str + "12as*7$#") x 阅读全文
posted @ 2017-01-24 11:27
darrell007
阅读(87)
评论(0)
推荐(0)
摘要:
Select * from [DBData].[dbo].[T_Student] where Name='lilei' 查询结果如下: 结论:由查询结果可知 SQL Server 默认是不区分大小写的。 Select * from [DBData].[dbo].[T_Student] where N 阅读全文
posted @ 2017-01-24 11:22
darrell007
阅读(2556)
评论(0)
推荐(0)
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Data.SqlClient; 6 using System.Data; 7 using System.Configuration; 8 9 namespace... 阅读全文
posted @ 2017-01-24 11:22
darrell007
阅读(270)
评论(0)
推荐(0)
摘要:
1 private void button2_Click(object sender, RoutedEventArgs e) 2 { 3 using (SqlConnection conn = new SqlConnection("Data Source=XX;Initial Catalog=DBData;User ID=sa;Password=11... 阅读全文
posted @ 2017-01-24 11:21
darrell007
阅读(2539)
评论(0)
推荐(0)
摘要:
未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接: 解决办法: 在服务中启动SQL Server (MSSQLSERVER)这个服务。 解决办法: 在服务中启动SQL Server (MSSQLSERVER)这个服务。 阅读全文
posted @ 2017-01-24 11:05
darrell007
阅读(4372)
评论(0)
推荐(0)

浙公网安备 33010602011771号