SQL Server????????????????????????
???????????? ???????[ 2015/2/16 11:55:53 ] ????????????? ??????? ??????
?????????嵥3.????????????????м?????
????????????????????????????м??????????????????????DMV??Xquery?????Щ??м??????????????嵥4?????
1: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
2: DECLARE @dbname SYSNAME
3: SET @dbname = QUOTENAME(DB_NAME());
4: WITH XMLNAMESPACES
5: (DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan')
6: SELECT stmt.value('(@StatementText)[1]'?? 'varchar(max)') AS SQL_Text ??
7: t.value('(ScalarOperator/Identifier/ColumnReference/@Schema)[1]'??
8: 'varchar(128)') AS SchemaName ??
9: t.value('(ScalarOperator/Identifier/ColumnReference/@Table)[1]'??
10: 'varchar(128)') AS TableName ??
11: t.value('(ScalarOperator/Identifier/ColumnReference/@Column)[1]'??
12: 'varchar(128)') AS ColumnName ??
13: ic.DATA_TYPE AS ConvertFrom ??
14: ic.CHARACTER_MAXIMUM_LENGTH AS ConvertFromLength ??
15: t.value('(@DataType)[1]'?? 'varchar(128)') AS ConvertTo ??
16: t.value('(@Length)[1]'?? 'int') AS ConvertToLength ??
17: query_plan
18: FROM sys.dm_exec_cached_plans AS cp
19: CROSS APPLY sys.dm_exec_query_plan(plan_handle) AS qp
20: CROSS APPLY query_plan.nodes('/ShowPlanXML/BatchSequence/Batch/Statements/StmtSimple')
21: AS batch ( stmt )
22: CROSS APPLY stmt.nodes('.//Convert[@Implicit="1"]') AS n ( t )
23: JOIN INFORMATION_SCHEMA.COLUMNS AS ic ON QUOTENAME(ic.TABLE_SCHEMA) = t.value('(ScalarOperator/Identifier/ColumnReference/@Schema)[1]'??
24: 'varchar(128)')
25: AND QUOTENAME(ic.TABLE_NAME) = t.value('(ScalarOperator/Identifier/ColumnReference/@Table)[1]'??
26: 'varchar(128)')
27: AND ic.COLUMN_NAME = t.value('(ScalarOperator/Identifier/ColumnReference/@Column)[1]'??
28: 'varchar(128)')
29: WHERE t.exist('ScalarOperator/Identifier/ColumnReference[@Database=sql:variable("@dbname")][@Schema!="[sys]"]') = 1
?????????嵥4.?????????????м??
??????????????????1?????
?????1.?????????????
????С??
????????????????????м?????????????????????????????????????????е?????????????????????????дT-SQL????????????????????????????
???????????????嵥4?????XQuery?????????м???????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????????????Щ????????????????????TC???????????????Щ???????????????????????????????????????????????(java .net ?????)???mysql???????????????????ж????д???Python???????????????(DB2)??????BufferPool????????????????????????????????6??????????????????滮???????????????-????????SQL Server???????????????????λ?????PHP??SQL????????????????????Pythonд???NoSQL????????? SQL ?е????????????? SQL ?е?????????Java???????:?????MySQL???????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????