• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wangcai
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年12月19日
如何配置SQL Server 2005以允许远程连接
摘要: 如何配置SQL Server 2005以允许远程连接2011-08-23 13:41:25 我来说两句 收藏 我要投稿要远程连接到SQL2005,必须使用SQL身份验证。所以首先要建立一个用于远程连接的登录名。方法是:1.新建登录展开服务器名下的“安全性”项,展开“登录名”项,右击“登录名”项,选择“新建登录名”,键入登录名称,勾选SQL Server 身份验证;2.把新建登录名映射为目标数据库的用户在界面左方选择“用户映射”,右上勾选目标数据库,右下确保该用户的数据库角色为db_owner和public.3.配置服务器允许SQL Server 身份验证右击SQL 服务器名称,选择“属性”》. 阅读全文
posted @ 2012-12-19 17:30 小才 阅读(306) 评论(0) 推荐(0)
2011年7月28日
C#删除文件
摘要: 1:protected void Button1_Click(object sender, EventArgs e) { string pSavedPath1 = Server.MapPath("http://images.cnblogs.com/ProductImages/6114413/绿.jpg"); if (File.Exists(pSavedPath1)) { FileInfo fi = new FileInfo(pSavedPath1); if (fi.Attributes.ToString().IndexOf("ReadOnly") != 阅读全文
posted @ 2011-07-28 10:32 小才 阅读(176) 评论(0) 推荐(0)
2011年7月27日
点击弹出居中的遮罩层代码
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><title>点击弹出居中的遮罩层代码</title><meta http-equiv="content-type" content="text/html;charset=gb2312"><style type="text/css">.hidden{display:none;}#smallLay{width:498px; height:100px; 阅读全文
posted @ 2011-07-27 14:42 小才 阅读(910) 评论(0) 推荐(0)
asp.net 弹出层
摘要: <script type="text/javascript" language="javascript"> function ShowNo() //隐藏两个层 { document.getElementById("doing").style.display="none"; document.getElementById("divLogin").style.display="none"; } function $(id) { return (document.get 阅读全文
posted @ 2011-07-27 12:11 小才 阅读(2655) 评论(0) 推荐(0)
2011年7月18日
系统的md5加密方法
摘要: System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s,"MD5"); 阅读全文
posted @ 2011-07-18 16:18 小才 阅读(177) 评论(0) 推荐(0)
2011年6月21日
continue(C# 参考)初学者
摘要: continue 语句将控制权传递给它所在的封闭迭代语句的下一次迭代。 示例 在此示例中,计数器最初是从 1 到 10 进行计数,但通过将 continue 语句与表达式 (i < 9) 一起使用,跳过了 continue 与 for 循环体末尾之间的语句。 C# 复制代码 class ContinueTest { static void Main() { for (int i = 1; i <= 10; i++) { if (i < 9) { continue; } Console.WriteLine(i); } }}/* Output: 9 10 */ 阅读全文
posted @ 2011-06-21 11:29 小才 阅读(163) 评论(0) 推荐(0)
2010年8月28日
sql时间函数
摘要: 一、sqlserver日期时间函数SqlServer中的日期与时间函数1.当前系统日期、时间selectgetdate()2.dateadd在向指定日期加上一段时间的基础上,返回新的datetime值例如:向日期加上2天selectdateadd(day,2,'2004-10-15')--返回:2004-10-1700:00:00.0003.datediff返回跨两个指定日期的日期和时间边界数。s... 阅读全文
posted @ 2010-08-28 09:59 小才 阅读(211) 评论(1) 推荐(0)
2010年7月14日
裁取表某列值
摘要: UPDATE ac10070600000018.dbo.FS_AssetsLia SET Name=SUBSTRING(Name,1,DATALENGTH(Name)-1) 阅读全文
posted @ 2010-07-14 16:39 小才 阅读(96) 评论(0) 推荐(0)
裁取表某列值2
摘要: UPDATE ac10070600000018.dbo.FS_AssetsLia SET Name=SUBSTRING(Name,1,DATALENGTH(Name)-1) 阅读全文
posted @ 2010-07-14 16:39 小才 阅读(99) 评论(0) 推荐(0)
2010年7月11日
Repeater嵌套Repeater的结构
摘要: .cs代码privatevoidRpTypeBind(){//GetQuestionTypeAndCount()返回一个datatablethis.rptypelist.DataSource=LiftQuestionCtr.GetQuestionTypeAndCount();this.rptypelist.DataBind();}protectedvoidrptypelist_ItemDataBo... 阅读全文
posted @ 2010-07-11 11:49 小才 阅读(246) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3