摘要: select '参数名称' = name, '参数类型' = type_name(xusertype), '参数长度' = length, '参数顺序' = colid, '是否输出参数'=isoutparam from syscolumns where id=object_id('存储过程名称') 阅读全文
posted @ 2012-12-12 15:53 挑战 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 第一章 Welcome to the Silverlight and WPF World学习目标:了解Silverlight和WPF基础。设计和程序员之间角色的不同之处了解Expression Studio 4的相关产品了解如何在设计过程中与Visual Studio结合使用Introducing Silverlight and WPFThe Designer/Developer WorkflowExpression Studio: The Designer’s WorldBlend通过拖拽帮助快速使用WPF技术,例如样式、数据绑定等,生成XAML(用于开发阶段界面实现和业务逻辑交互)其中包含 阅读全文
posted @ 2012-11-27 15:58 挑战 阅读(697) 评论(0) 推荐(0) 编辑
摘要: (1)启用当前数据库的 SQL Server Service Brokeralter database 数据库名称 set enable_broker若命令执行成功的话,验证一下,执行下面SQL语句select IS_BROKER_ENABLED from master.sys.databaseswhere name='数据库名称'值为1表示开启,为0表示未开启(2)后台代码 public partial class Page1 : Page { private static string connStr; SqlDataReader sdr; public Page1() { 阅读全文
posted @ 2012-11-26 19:22 挑战 阅读(3044) 评论(0) 推荐(0) 编辑
摘要: (1)手工拼凑字符串string strXaml = @"<Button xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Content='Button' Height='23' Name='button1' Width='75' />";StringReader readerXaml = new StringReader(strXaml);XmlTextReader xtrXaml = new Xm 阅读全文
posted @ 2012-07-07 11:35 挑战 阅读(1486) 评论(0) 推荐(0) 编辑
摘要: 出现名为'MM_CURSOR' 的游标已存在。一般出现这样的问题是:1:游标没有 --关闭 释放如:Sql代码--关闭游标CLOSEMM_CURSOR--释放游标DEALLOCATEMM_CURSOR2:游标已存在同名情况,此时就需要在定义游标时申明一个局部的游标如:Sql代码/*检索已经配置好的新村镇的所有乡级部门*/---申明游标DECLAREdeptCursorCURSORlocalFORSELECTdeptname,deptsimplename,distid,deptuncode,deptqueryno,ifreport,deptsort,enable,deptfloo 阅读全文
posted @ 2012-07-02 17:55 挑战 阅读(9237) 评论(1) 推荐(0) 编辑
摘要: 检测死锁如果发生死锁了,我们怎么去检测具体发生死锁的是哪条SQL语句或存储过程?这时我们可以使用以下存储过程来检测,就可以查出引起死锁的进程和SQL语句。SQL Server自带的系统存储过程sp_who和sp_lock也可以用来查找阻塞和死锁, 但没有这里介绍的方法好用。 use mastergocreate procedure sp_who_lockasbegindeclare @spid int,@bl int,@intTransactionCountOnEntry int, @intRowcount int, @intCountProperties int, @intCounter i 阅读全文
posted @ 2012-07-02 14:27 挑战 阅读(3448) 评论(0) 推荐(0) 编辑
摘要: 基于Query方法declare @myDoc xmlset @myDoc = '<bookstore> <book category="COOKING"> <title>Everyday</title> <author>Giade De</author> <price>30.00</price> </book> <book category="COMPUTER"> <title>Windows 2003</t 阅读全文
posted @ 2012-06-14 17:51 挑战 阅读(580) 评论(0) 推荐(0) 编辑
摘要: (1)索引XML字段最大支持2G,如果不建立索引,遍历数据查询,性能会很差。Primary Index 必须有主键列,且为聚集索引。该索引中存放XML数据中Tag、Value和Path等信息辅助Path Index 用于基于Path查询,即XPath查询辅助Property Index 用于基于节点的查询辅助Value Index 用于XML值的查询XQuery即查询XML语言,包括基于XPath、Element和Attribute语法包括FLOWRFor 遍历满足条件节点的内容Let Order By Where Return(2)索引查询原始数据 CREATE TABLE Orde... 阅读全文
posted @ 2012-06-13 15:28 挑战 阅读(7488) 评论(0) 推荐(0) 编辑
摘要: (1)定义--表中定义CREATE TABLE [dbo].[Invoice]( [Invoice_ID] [int] NULL, [SalesDate] [date] NULL, [ItemList] [xml] NULL ) --程序中定义declare @xdoc xml;--隐式类型转换SET @xdoc =’<Customer CustomerID="VINET" ContactName="Paul Henriot"> <Order CustomerID="VINET" EmployeeID="5 阅读全文
posted @ 2012-06-12 20:06 挑战 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: declare @xdoc xml; SET @xdoc =' <ROOT> <Customer CustomerID="VINET" ContactName="Paul Henriot"> <Order CustomerID="VINET" EmployeeID="5" OrderDate="1996-07-04T00:00:00"> <OrderDetail OrderID="10248" ProductID=" 阅读全文
posted @ 2012-06-12 17:11 挑战 阅读(658) 评论(0) 推荐(0) 编辑