Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "LocalAccountTokenFilterPolicy"=dword:00000001
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "LocalAccountTokenFilterPolicy"=dword:00000001
__doPostBack("btnQuery", '123456');Code behind:
string target = Request.Params["__EVENTTARGET"]; // btnQuery string args = Request.Params["__EVENTARGUMENT"]; // 123456
SELECT a.TABLE_NAME as 表格名稱, b.COLUMN_NAME as 欄位名稱, b.DATA_TYPE as 資料型別, b.CHARACTER_MAXIMUM_LENGTH as 最大長度, b.COLUMN_DEFAULT as 預設值, b.IS_NULLABLE as 允許空值, ( SELECT value FROM fn_listextendedproperty (NULL, 'schema', 'dbo', 'table', a.TABLE_NAME, 'column', default) WHERE name='MS_Description' and objtype='COLUMN' and objname Collate Chinese_Taiwan_Stroke_CI_AS = b.COLUMN_NAME ) as 欄位備註 FROM INFORMATION_SCHEMA.TABLES a LEFT JOIN INFORMATION_SCHEMA.COLUMNS b ON ( a.TABLE_NAME=b.TABLE_NAME ) WHERE TABLE_TYPE in ('BASE TABLE','VIEW') ORDER BY a.TABLE_NAME, ordinal_position
WITH DepartmentSearch(DeptID, DeptParent, DeptName, OuID) AS ( -- 找出簽核者所屬部門 SELECT d.DeptID, d.DeptParent, d.DeptName, d.OuID FROM tbDepartment d LEFT JOIN tbEmpDept ed ON ed.DeptID = d.DeptID INNER JOIN tbFlowApprove fa ON fa.Approver = ed.EmpID WHERE fa.FlowInsID = @FlowInsID AND fa.FlowAct = @FlowAct AND fa.ActAppendix IS NULL UNION ALL -- 遞迴向上找出主管部門 SELECT d.DeptID, d.DeptParent, d.DeptName, d.OuID FROM tbDepartment d INNER JOIN DepartmentSearch ON DepartmentSearch.DeptParent = d.DeptID ) SELECT * FROM DepartmentSearchother ref: 一般資料表運算式(Common Table Expressions, CTE)
Uri baseUri = new Uri("http://www.domain.com/path/sample"); Uri absoluteUri = new Uri(baseUri, "../../other/path");
Uri uri; Uri.TryCreate("http://www.domain.com/base/uri", "../relative/uri", out uri);