- 博客(290)
- 资源 (73)
- 收藏
- 关注
原创 使用 SqlInfoMessageEventHandler 获取Sql中print或error消息
我们写Sql存储过程时经常要用print打印出一些信息以供我们调试和Debug存储过程。但是一旦我们的应用程序部署了,为帮助我们快速诊断应用程序的错误,我们想把我们在储过程print的信息记录下来。这样我们就需要从应用程序中获取Sql print的信息了,这里介绍如何使用
2011-09-17 12:52:59 2280
原创 在 SharePoint 2010 中使用Flash图表控件 Fusion Charts
在 SharePoint 2010 中使用Flash图表控件 Fusion Charts 记得我去年写过一篇blog介绍怎么把当时只适用Moss2007的Flash图表控件 Fusion Charts应用到Moss2010 中http://blog.csdn.n
2011-09-15 22:43:43 1961
原创 SharePoint 2010 自定义状态机工作流(StateMachine Workflow) + InfoPath 实例part2 (InfoPath设计部分及演示效果)
SharePoint 2010 自定义状态机工作流(StateMachine Workflow) + InfoPath 实例part2 (InfoPath设计部分及演示效果)1. 启动 ” MicrosoftInfoPath Designer 2010”2.
2011-09-12 21:23:55 2982
原创 SharePoint 2010 自定义状态机工作流 (StateMachine Workflow) + InfoPath 实例part1 (工作流实现部分)
SharePoint 2010 自定义状态机工作流(StateMachine Workflow) + InfoPath 实例part1 (工作流实现部分)首先虚拟一个场景,某客户要求基于SharePoint 2010 实现一个招聘工作流。招聘流程需求如下: a.
2011-09-12 18:32:03 5244 1
原创 SharePoint 2010 中用代码发送邮件的两种方式
1. 使用SPUtility.SendEmail, 命名空间: Microsoft.SharePoint.Utilities 程序集: Microsoft.SharePoint (in Microsoft.SharePoint.dll): StringDi
2011-09-08 11:58:08 3405
原创 开发自定义的SharePoint 顺序工作流
假设有这样一个需求:客户需要用Moss2010有个一个请假单(绑定有工作流),有这样几个用户(角色):1.Moss (员工)、2.Leader(组长)、3.Manager(经理)、4.Boss(老板)当员工创建请假单时,启动工作流。工作流具体需求为,当员工新建了一
2011-09-07 22:18:57 3002 1
原创 为SharePoint 2010 Workflow 开发 Custom(自定义的) Workflow Activity
为SharePoint 2010 Workflow 开发 Custom Workflow Activity(Develop Custom Workflow Activity for SharePoint 2010 Workflow). SharePoint2010提供了很多有
2011-09-03 23:40:46 2701 1
原创 使用 SharePoint 2010 Client Object Model 修改用户Email(邮箱) 地址
我们使用SharePoint 2010 时,有时需要修改用户Email(邮箱) 地址,但是People and Groups 这个列表里面不允许我们修改。本文介绍如何使用 Client Object Model 来修改用户Email(邮箱) 地址。关于如何使用Moss 2
2011-09-03 10:20:23 2366
原创 sys.all_sql_modules 视图, 它里面存储了函数,表,存储过程,视图等的定义语句
今天向大家介绍Sql server 中的 sys.all_sql_modules 视图, 它里面存储了函数,表,存储过程,视图等的定义语句。介绍这个视图之前先介绍下 sys.all_objects 视图,这个视图视图里有所有对象的名字(函数名,表名,存储过程名,视图名,(主/外)
2011-07-28 10:33:58 2264
原创 浅谈Sql 死锁(Dead Lock)
死锁是指进程之间相互block的,并形成一个block环路导致无unblock的情况。死锁必须发生在两个或更多的进程之间,如果是两个进程的话,那就是进程A block了进程B,而进程B也block了进程A.如果是三个进程之间发生死锁的例子有:进程A block了进程B,进程B block了进程C,进程C block 了进程A. Sql Sever在死的情况下会尝试终止某个进程,当然如果系统不中止某个进程或尝试中止失败,这个死锁的进程将一直保持死锁,除非人工干预来结束某个进程。
2011-03-03 19:37:00 2640
原创 浅谈Sql Server中的 隔离层级(Isolation Levels)
隔离层级决定(影响)用户(广义用户)并发读写时的行为及其结果。读是一般指Select 语句,在默认情况下它使用共享锁。写是指使数据库内容发生改变的一切语句(Insert, Update, Delete 等),它需要排他锁。通常我们不能控制写的时候是否加排他锁,但是我们可以指定读的时候是否加共享锁,当然通过是否加共享锁可以决定(影响)读的结果,有时也可以影响到写的结果。
2011-03-02 19:38:00 14108 3
原创 浅谈Sql 中的锁
Sql server 使用锁来确保事务的独立性,锁可以为某个事务锁定资源,防止事务间就访问统一资源的发生冲突,如多个事务同时请求更新某条记,当某个事务开始时就lock住它要更新的记录,直到该事务结束 (unblock) 释放该资源, 这样其他事务在请求更新该记录时就会被block, 直到占用该资源的事务结束才有可能unblock.
2011-03-01 20:30:00 1266
原创 Sql 中 Merge 的用法
Merge 是Sql2008 新增命令之一,它可以基于两表连接的某个条件的结果操作数据 (INSERT, UPDATE, and DELETE), 它的好处是少写一些代码,多做一些事情, 以下我们将充分说明这个优点。
2011-02-21 12:31:00 2656
原创 Xpath 匹配节点的内容为空(inner text 为空)
需求是从以下写出能从下面的xml中取出Title内容(inner text)为空的节点的XPath: Asp.net22.5Abraham22.5Abraham容易写出错误的xPath有://Book[Title[text()='']] /
2011-02-17 11:18:00 9876
原创 VB scrpit 修改配置文件(读写XML)
‘VB scrpit 修改配置文件(XML): Dim WshShellSet WshShell = CreateObject("Wscript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")'
2011-02-14 14:10:00 1411
原创 将moss 2007的模板文件导入到moss 2010
最近公司HR请请将一个moss2007的调查模板文件导入到我们部门的Moss protal 上面。我想这是举手之劳,就爽快的答应了。但是导入时却报如下错误:ErrorMicrosoft SharePoint Foundation version 3 templat
2010-12-11 17:11:00 1248
原创 解释下带xmlns的xml 使用Xpath时需要注意的问题
通过Xpath我们可以快速搜索出我们想要的节点,如: http://blog.stevex.net/用下面的代码可以搜索到 url 节点 XmlNodeList urlNodes = doc.SelectNodes("/urlset/url"); 但
2010-09-28 17:38:00 1767 2
原创 XPath 多个条件查询
习惯了简单的Xpath使用,碰到一个多个条件查询需求,研究了下。把实现方式贴出来供大家参考:有这样一个xml:Alpha100200true要求查找含有 data节点满足 type = String 且 inner text = Alpha 的所有cell 节点Xpath 为: //cell[data[text()='Alpha'] and data[@type=
2010-09-28 17:00:00 19226 2
原创 Using FusionCharts in Moss 2010
UsingFusionCharts in Moss 2010Introduce This document isintroducing how to use FusionCharts in Moss 2010 base on Fusion Charts Free for
2010-07-29 11:21:00 1519 2
原创 Moss 2007 升级到 Moss2010 成功但界面仍然保持07?
公司要求将Moss2007升级成Moss2010, 让我有空做下调研。我参考http://technet.microsoft.com/en-us/library/cc303420.aspx 上的Upgrading 发法试验了一下,现在把升级成功但是界面仍然保持07的问题和大家分享一下。
2010-07-05 16:10:00 1980 3
原创 Trace the sql print message in .net code
The scenario is we usually print some message in the sql PROCEDURE to help us debug the PROCEDURE, but some time once we delopy the database we still want to trace the print message from the sql PROCEDURE to help us debug some bugs. This article will give
2010-06-12 18:12:00 1130
原创 Sql 里面 ROW_NUMBER 应用场景
ROW_NUMBER 返回按一定规则排序的当前记录对应的行号 比如我们有这样一个应用场景: 现在有个比赛,需要从网上参赛者从从网络上报名,然后去最早报名的5个人参加比赛,为此我们实现如下:1.为此我们要建立一张表来保存报名参赛者的姓名及起报名时间 CREATE TABLE [dbo].[UserEnroll]([UserName] [nvarchar] (50)
2010-05-18 17:58:00 1022 2
原创 C#获取当前进程(程序)的完整路径备忘
//获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:/xxx/xxx/xxx.exe (.exe文件所在的目录+.exe文件名) //获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。string str = System
2010-05-17 09:29:00 4422
原创 How to create readonly columns in MOSS 2007 custom list
How to create readonly columns in MOSS 2007 custom list, there some methods:1) Create a custom list definition where you can modify the schema.xml. You will have to find the field that you want not t
2009-11-22 13:59:00 1322
原创 导入Custom的Master page(含自定义的CSS) 到Moss 2007
1.Import the css files into your site(style folder). .Start the sharepoint designer, select the style folder,On the File menu, select Import > File... . In the Import dialog box, select Add
2009-11-22 10:36:00 887
原创 跨线程程访问Win form 控件
//CrossThreadUtility.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace CrossThreadUtil{ public static class CrossThreadUt
2009-11-21 23:05:00 1039
转载 学习xml-XPath
转自:http://hi.baidu.com/ken0137/blog/item/6868a2f4daa2156addc47494.html 学习xml-XPath介绍2008-03-08 14:37XPath is a language for finding information in an XML document. XPath is used to navigate through e
2009-11-21 17:27:00 755
转载 Use code to approve SPListItem
Today I was working with some batch code that updates the group permissions of several folders within the Site Collection Documents library. Although the code was calling Update() on the SPListItem
2009-11-19 22:30:00 875 1
原创 几条有用的Sql语句
1. Sql 延时候执行a. 三十秒后执行 WAITFOR DELAY 后面的语句WAITFOR DELAY 00:00:30 b. 10:00分开始执行后面的代码WAITFOR TIME 10:00; 2. 收缩数据库,使其空余空间为0%DBCC SHRINKDATABASE (DataBaseName,0) 3. 取得数据库文件所在的盘符declare @dir
2009-11-18 16:36:00 728
原创 查看Sql表所占空间的大小
create table #tablespaceinfo (nameinfo varchar(50) ,rowsinfo int , reserved varchar(20) ,datainfo varchar(20) ,index_size varchar(20) ,unused varchar(20) )decla
2009-11-16 11:13:00 801
原创 Sql 字符串分析器函数
Sql 字符串分析器函数-- =============================================-- Create function Fun_SplitStr, 该函数功能为将以某个分割符分割的字符串转换为表的形式-- @StrSource 用于存储要分析的字符串-- @StrSeprate 用于存储分割符-- @temp 用于返回分析的结果(table)--
2009-07-19 16:04:00 840
转载 C# XmlDocument SelectNodes issue
Hi all,I have a very simple xspf file: Easter Mix This is our selection for the Easter period. some info some creator a title locatio
2009-07-01 17:22:00 1865
原创 C# winform 和Webform 给DataGridView 和DataView 添加行号
以前用过的,总结下,以免忘记了,也给广大网友一个参考:1. C# winform DataGridView 添加行号private void GridView1_Paint(object sender, PaintEventArgs e) { int irowcount = this.GridView1.DisplayedRowCount(true);
2009-06-08 16:08:00 2460 1
原创 数据库自动备份并删除30天前的备份文件
1、创建备份数据库的存储过程 -- =============================================-- Create basic stored procedure template-- =============================================-- Drop stored procedure if it already exist
2009-05-31 13:35:00 1554
原创 C# 控制Windows服务的启动与关闭
// ...... using System.ServiceProcess; // ...... /// /// Restart windows service /// /// the windows service display name /// If the restart successfull
2009-05-22 08:47:00 2432
原创 Moss 配置外网Rss
1.添加一个Rss View的Webpart2.修改该Webpart的属性RSS Feed URL:输入你要订阅的外网RSS地址,如:http://p.moreover.com/page?o=rss002&c=Book%20publishing%20news3.点击确定,但是出错了,RSS出不来,但是RSS地址在IE里面可以打开。 错误如下:rss viewer, an une
2009-05-04 21:50:00 941
原创 从.net 程序中传递table 参数个存储过程
1.在数据库中创建Type 类型Use TestTVP --假设已经建立了TestTVP 数据库和TestTVP 的schemago--创建TVP CREATE TYPE Test.TestTVP AS TABLE{ SNo varchar(20) Not NULL, SName varchar(50)}go--创建使用TVP的存储过程 Create
2009-02-12 19:41:00 1248 2
原创 利用反射在类外修改private成员
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.ComponentModel;namespace AttributeTest{ public class Program {
2009-02-12 18:39:00 713
原创 做Sql2008数据库结构自动检查最常用的几张表
Select * from sys.all_columnsSelect * from sys.all_objectsSelect * from sys.schemasSelect * from sys.databasesSelect * from sys.typesSelect * from sys.key_constraintsSelect * from sys.index_columnsSel
2009-02-04 17:36:00 1003 8
SharePoint 2013 User's Guide 4th Edition
2014-09-15
Pro SharePoint 2013 Business Intelligence Solutions
2014-09-15
Pro SharePoint 2013 Branding and Responsive Web Development
2014-09-15
Microsoft SharePoint 2013- Designing and Architecting Solutions
2014-09-15
Core Solutions of Microsoft SharePoint Server 2013.pdf
2014-09-15
BI in Microsoft SharePoint 2013
2014-09-15
Microsoft_Sharepoint_2010_Deployment_Guide.pdf
2012-11-14
PowerShell SharePoint 2010 Site Settings
2012-10-26
Microsoft SharePoint 2010 and Windows PowerShell 2.0
2012-10-26
CompareObjects
2012-08-03
Asterisk Server1.4
2012-07-26
WCF4StepbyStep
2011-10-21
Using the Excel Services ECMAScript Object Model.docx
2011-09-14
Configure the user profile service in SharePoint 2010
2011-09-14
SharePoint2010StateMachineWorkFlowInfopathDemo
2011-09-12
Wrox.Professional.Windows.Workflow.Foundation.Mar.2007.chm
2011-09-10
SharePoint 2010 Workflow
2011-09-03
sql-server-2008-t-sql-fundamentals-pro-developer.chm
2010-12-02
Microsoft+SQL+Server+2008+MDX+Step+by+Step.pdf
2010-12-02
Microsoft+SQL+Server+2008+Analysis+Services+Step+by+Step.pdf
2010-12-02
Source code for Microsoft_SharePoint_2010_Building_Solutions_for_SharePoint
2010-11-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人