希望 永远是快乐的.

有一种沉默叫霸气,有一种内敛叫个性,有一种简单叫深遂,有一种不屑叫自我。

导航

2016年9月29日

查找SQL SERVER被锁的表和解决方法

摘要: 查找数据库中被锁表代码: select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' 字 阅读全文

posted @ 2016-09-29 14:07 希望(Jack) 阅读(539) 评论(0) 推荐(0) 编辑

2015年9月6日

怎么创建一个Database快照

摘要: How to create the database Snapshot:use mastergoif not exists (select * from sys.databases where name = 'SAPDB_SS')CREATE DATABASE SAPDB_SS ON ( NAME ... 阅读全文

posted @ 2015-09-06 14:22 希望(Jack) 阅读(194) 评论(0) 推荐(0) 编辑

2014年8月19日

安装部署完office web apps 后,无法浏览Word

摘要: 安装部署完office web apps 后,在sharepoint 2010浏览器中浏览Word提示:“由于出现意外错误,Word Web App 无法打开此 文档 进行查看。 要查看此 文档,请在Microsoft Word 中打开它。”特殊情况:只有当sharepoint2010安装在域控制器... 阅读全文

posted @ 2014-08-19 14:16 希望(Jack) 阅读(404) 评论(0) 推荐(0) 编辑

2014年5月27日

Capture Current Soft Screen

摘要: Bitmap memoryImage; private void CaptureScreen() { Graphics myGraphics = this.CreateGraphics(); Size s = this.Siz... 阅读全文

posted @ 2014-05-27 14:01 希望(Jack) 阅读(300) 评论(0) 推荐(0) 编辑

2013年11月1日

好用的一个从SharePoint导出小工具

摘要: 1. 输入 Site Url(Site Collection), 然后点"load"按钮2。选择Web后,点选需导出的文档库,然后点"Next"按钮 3。选择存储文件路径:4. 然后点" Export Files From SharePoint site" 按钮,然后等待导出,直到Successfully消息框弹出. 5。Check生成文件目录结构,与选择文档库结构相同。 6。生成导出文件日... 阅读全文

posted @ 2013-11-01 20:36 希望(Jack) 阅读(439) 评论(1) 推荐(0) 编辑

2013年5月2日

Get Images tag from the html string using C#

摘要: To get all image tags from the html string using c#, public List<Uri> FetchLinksFromSource(string htmlSource) { List<Uri> links = new List<Uri>(); string regexImgSrc = @"<img[^>]*?src\s*=\s*[""']?([^'"" >]+?)[ '""][^>]*?> 阅读全文

posted @ 2013-05-02 17:44 希望(Jack) 阅读(289) 评论(0) 推荐(0) 编辑

2013年4月13日

SharePoint 权限优缺点

摘要: 下面是个人对sharepoint权限有缺点的总结,如有不同见解,可以相互切磋:优点:SharePoint中的主要用户来源于AD(活动目录),即企业用户统一认证的用户中心。提供企业统一入口,AD管理员可以统一管理/维护企业用户,解决用户分散化、多元化问题活动目录提供给用户/系统两种实体对象, 1) 用户账户,2)用户组SharePoint 平台与AD(企业活动目录)无缝集成,对于现有的实体对象(用户,用户组)易于分配/制定统一的权限,其两者对于SharePoint 平台来说都被识别为用户实体.SharePoint本身平台提供继承式权限机制,原生的SharePoint平台下网站/列表都继承至顶级网 阅读全文

posted @ 2013-04-13 22:26 希望(Jack) 阅读(1358) 评论(0) 推荐(0) 编辑

2013年1月7日

Be available for all site templates under sharepoint publishing site collection.

摘要: I’ve been asked this question twice this week so I thought I would document it… You’ve created a new site collection in SharePoint 2010 and chose the Publishing Site template. When you go to Site Actions -> New Site you only see ‘Publishing Site with Workflow’ and ‘Enterprise Wiki’ as available o 阅读全文

posted @ 2013-01-07 16:53 希望(Jack) 阅读(183) 评论(0) 推荐(0) 编辑

2012年12月25日

Run cmd with other account

摘要: 通常情况下,我们运行CMD命令时,运行CMD的所使用的权限是当前用户权限,这种模式基本上满足大多数用户使用。对于SharePoint开发同学来说,经常会运行SharePoint 2010 Powershell操作SharePoint对象,如果当前用户无权限,就会抛出无权限访问异常。这种情景也许你会经常碰到。 于是乎我们需要寻找其管理员账户重新登录服务器然后重新运行Powershell脚本。这样来来回回折腾好几次.如果你知道CMD本身就提供一种可以替换身份的命令,会省去很多操作步骤。下面列出来切换用户命令及附加SharePoint Snapin的命令:runas /user:domain\\us 阅读全文

posted @ 2012-12-25 17:00 希望(Jack) 阅读(197) 评论(0) 推荐(0) 编辑

2012年12月18日

UpdateLookup field by Powershell Script

摘要: TargetSet up the value of the lookup filed(named Relation)in the SharePoint list by PowerShell script,SummaryThis script is based on the SortOrder filed as a unique key to configure the Relation filed, before running the script, please make sure two following points correctly:The value of SortOrder 阅读全文

posted @ 2012-12-18 00:06 希望(Jack) 阅读(240) 评论(0) 推荐(0) 编辑