sharepoint 通过数据库擅长列表项

select *
from [dbo].[AllLists] where tp_Title='Pages' and tp_WebId='68BDFC9A-4E0C-425E-9985-573CD67166A4'

select * from [dbo].[AllWebs] where SiteId='0049424B-5892-426C-9051-AE4050FE5C61'--FullUrl='CN/Announcements/Workforce'

SELECT *
FROM AllUserData
where tp_ListId='DD5FB08C-384C-45EE-B51C-5EEE6204BD78' and tp_Created>='2015-11-18' and tp_Created<'2015-11-19' --order by tp_Created desc

and tp_DocId='FB44F2F9-40F9-416D-9D49-54FBB3D49B6A'

--delete FROM AllUserData where tp_ListId='bc868647-114f-4007-ad8d-6554e500b877' and tp_DocId='FB44F2F9-40F9-416D-9D49-54FBB3D49B6A'

--order by tp_Created desc

SELECT * FROM AllUserData where tp_ListId='DD5FB08C-384C-45EE-B51C-5EEE6204BD78' and tp_ID=44

--delete FROM AllUserData where tp_ListId='DD5FB08C-384C-45EE-B51C-5EEE6204BD78' and tp_ID=44

SELECT d.nvarchar1 as ChineseName,
d.nvarchar3 as EnglishName,
d.datetime1 as FoundingDate,
d.float1 as Area,
d.float2 as Population
FROM AllUserData d
where tp_ListId='bc868647-114f-4007-ad8d-6554e500b877'

SELECT top 10 d.nvarchar1 as ChineseName,
d.nvarchar3 as EnglishName,
d.datetime1 as FoundingDate,
d.float1 as Area,
d.float2 as Population,tp_Created
FROM AllUserData d
where tp_ListId='bc868647-114f-4007-ad8d-6554e500b877' and d.tp_DeleteTransactionId=0 order by tp_Created desc

posted @ 2015-11-19 10:22  Jason.Bird  阅读(243)  评论(0编辑  收藏  举报