10 2010 档案

摘要:转自:http://msdn.microsoft.com/zh-cn/library/ms190384(v=SQL.90).aspx定义自定义权限集时为模块指定执行上下文非常有用。例如,某些操作(如 TRUNCATE TABLE)没有可授予的权限。若要执行 TRUNCATE TABLE,用户必须对指定表具有 ALTER 权限。授予用户对表的 ALTER 权限可能不是最佳方法,因为用户将拥有超出截断... 阅读全文
posted @ 2010-10-29 17:27 wiseshrek 阅读(303) 评论(0) 推荐(0)
摘要:问题:在codebehind.cs文件, 如何获取一个服务端控件的innerHtml解决方案:StringBuilder sb= new StringBuilder();StringWriter sw= new StringWriter(sb);HtmlTextWriter hw= newHtmlTextWriter(sw);yourServerControl.RenderControl(hw);... 阅读全文
posted @ 2010-10-27 18:15 wiseshrek 阅读(1527) 评论(0) 推荐(0)
摘要:在web应用中,何时创建DocumentStore?何时创建DocumentSession?从其所带的Sample中可以看到:在Application_Start时创建 DocumentStore在BeginRequest时创建DocumentSession在EndRequest时销毁DocumentSession 阅读全文
posted @ 2010-10-26 16:37 wiseshrek 阅读(325) 评论(0) 推荐(1)
摘要:用SQL:ALTER TABLE table ADD column AS datediff(d,CreatedDate,getdate())通过ssms列属性-> 表设计器 -> 计算所得的列规范 -> 公式 阅读全文
posted @ 2010-10-20 20:08 wiseshrek 阅读(1003) 评论(0) 推荐(0)
摘要:原文-http://technet.microsoft.com/zh-cn/library/ms175987(SQL.90).aspxhttp://technet.microsoft.com/zh-cn/library/ms178052(SQL.90).aspxhttp://technet.microsoft.com/zh-cn/library/ms190203(SQL.90).aspx从简单恢复... 阅读全文
posted @ 2010-10-17 13:23 wiseshrek 阅读(268) 评论(0) 推荐(0)
摘要:ScriptManager的EnablePageMethods属性用于设定客户端javascript直接调用服务端静态WebMethodaspx<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"> </asp:ScriptManager>aspx.cs[System.W... 阅读全文
posted @ 2010-10-14 11:11 wiseshrek 阅读(231) 评论(0) 推荐(0)
摘要:INSERT INTO SELECT语句要求目标表必须存在(可以插入常量)SELECT INTO FROM语句要求目标表不存在,在插入时会自动创建表 阅读全文
posted @ 2010-10-13 13:36 wiseshrek 阅读(507) 评论(0) 推荐(0)