09 2012 档案

摘要:首先连接超时分为三种,TCP Connection to SQL Server -> SqlConnection.Open -> SqlCommand.Execute先说第二种超时,sqlcon打开,我们不能直接设置connectiontimeout,只能在连接字符串中设置:Data Source=server;Initial Catalog=databaseUser Id=username;Password=password;Connect Timeout=3此设置默认时间为妙,而不是毫秒。默认是三十秒,可以设置为3秒。注意:此处不能设置conn.open()超时回应的时间。因为 阅读全文
posted @ 2012-09-13 15:24 Glowd 阅读(343) 评论(0) 推荐(0) 编辑
摘要:table test1-------------------------------------------------------------------- Id name age married profiles(ntext)58A757B0-A679-41B1-9DD6-128D8B8AD8C2 yu 10 0 kkkk887CD472-32AC-431C-81B1-D32C2941C38D qw 10 0 kkkk3B... 阅读全文
posted @ 2012-09-09 20:27 Glowd 阅读(704) 评论(0) 推荐(0) 编辑