测试笔记002

1.XmlExpration:根级别无效,------字符串中多了两个单引号.

private void Fetch(getObjectResult sn)
        {

           LoadProperty<Guid>(ObjectGuidProperty,sn.ObjectGuid);
           XmlDocument doc = new XmlDocument();
           int length = sn.Data.Length - 2;
           string DataStr = sn.Data.Substring(1, length);
          
           doc.LoadXml(DataStr);

           LoadProperty<XmlElement>(DataProperty, doc.DocumentElement);
           
        }

XmlDocument xmlResponse = new XmlDocument();
            string xmlstr = ((System.Xml.XmlNode)(result.Data)).OuterXml;
            xmlResponse.LoadXml(xmlstr);
//从XmlElement转化为XmlDocument

2.
 SQL中四条基本的语名:

   select [选取字段名] from [表名] where [条件]

     insert into [表名] [字段(也可不填)]values ([对应的字段值])

   update [表名] set [修改字段和对应的值] where [条件]

   delete from [表名] where [条件]

存储过程的基本结构:(不区分大小写)

  create procedure dbo.[名称]

  @Sql varchar(200)...[传入的参数]

  AS
        declare @Sql varchar(200)..[字义变量]
  begin
        ...
        end
        exec([执行的SQL语句])
        print([执行的SQL语句])



posted @ 2008-05-12 10:45  在林之州  阅读(114)  评论(0)    收藏  举报