2012年5月21日 星期一

Linq Xml 寫入

有讀取 當然就有寫入
所以記錄一下寫入
XmlString = XElement.Load(xmlFile);
XElement  xmlLinq = (from a in XmlString.Elements(Elements1)
                          select a).Single();
        xmlLinq.Value = value;
        XmlString.Save(XmlFile);


2012年5月10日 星期四

MSSQL SQL2005 無法複製表頭

SQL 2005無法將表頭複製出來
就是要設定內打勾才行

1. SSMS Tools > Options > Query Results > SQL Server > Result to Grid
2. Check > Include column headers when copying or saving to result