惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MyScale Blog
MyScale Blog
Jina AI
Jina AI
爱范儿
爱范儿
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
Intezer
The Cloudflare Blog
T
Threat Research - Cisco Blogs
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
AI
AI
Scott Helme
Scott Helme
Attack and Defense Labs
Attack and Defense Labs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
Hugging Face - Blog
Hugging Face - Blog
W
WeLiveSecurity
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
S
Securelist
S
Security Affairs
Project Zero
Project Zero
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
T
Tor Project blog
A
About on SuperTechFans
V2EX - 技术
V2EX - 技术
宝玉的分享
宝玉的分享
T
Tenable Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
Simon Willison's Weblog
Simon Willison's Weblog
Forbes - Security
Forbes - Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
AWS News Blog
AWS News Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hacker News: Front Page
美团技术团队

博客园 - Arping.Net探索

自动发送TFS团队项目文件迁入迁出信息 MPSENG上 "MPFTranLogData with error code 80004005. "错误的处理 高强度磁铁靠近笔记本屏幕灯管附近黑屏的原因及解决办法 浅谈SaaS数据安全性 MS SQL Server 2005无数据库日志恢复 一个老土但是很重要的问题:SaaS到底怎么发音? IDC 双线技术引发的思考 Windows2003 远程桌面超过最大连接数解决办法 Multi App Data-Share Module(多应用数据共享模型) China First SaaS Application Demo:Crab 安装篇 Crab与SaaS (转自MSDN) SaaS应用成熟度模型 Microsoft SQL Server 2005 安装失败处理 - Integration Services安装失败的解决办法 SQL 2005中用存储过程调用Web Services Visual Studio 2008、SQL Server 2008和Windows Server 2008发布日期确定(跟着老盖要练凌波微步了) Hardware and Software Requirements for Installing SQL Server Katmai 今天天气好热,DIY了一个USB风扇 miniSAP 安装步骤(改进版,装得我好累啊) Ora9.2 NTFS 老问题:System.Data.OracleClinet requires Oracle client software version 8.1.7 or greater.
自动发送TFS团队项目用户权限检查信息
Arping.Net探索 · 2010-09-06 · via 博客园 - Arping.Net探索

USE [TfsVersionControl]
GO
/****** Object:  StoredProcedure [dbo].[usp_AutoSendUserPrjRight]    Script Date: 09/06/2010 10:33:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create  Procedure [dbo].[usp_AutoSendUserPrjRight] As
Begin
 /*
 Function : 定期向配置管理员发送用户权限列表
 Author: LuoHP
 Date:20100904
 Note: First Create SQLMail
 */
 declare @BodyStr nvarchar(max)
 Declare @QuerySQL nvarchar(max)
 Select @BodyStr = Convert(nvarchar(16),getdate(),120)+' List as a attachment'
 --表说明 Begin
 --TfsIntegration.dbo.tbl_gss_group_membership  用户群组关系表
 --TfsIntegration.dbo.tbl_security_identity_cache 用户群组信息描述 type=2 用户 type =4 群组
 --TfsIntegration.dbo.tbl_projects     项目信息表
 --表说明 End
 
 Set @QuerySQL= 'Select Convert(nvarchar(20),A.Account_Name) As [User],Convert(nvarchar(50),B.Display_Name) As Role,Convert(nvarchar(50),D.[project_name]) As Prj 
From [tbl_security_identity_cache] A
Left Join [tbl_gss_group_membership] C On C.[member_sid] = A.sID
Left Join [tbl_security_identity_cache] B On B.SID = C.[parent_group_sid]
           And B.Type=4 and A.deleted=0
Left Join [tbl_projects] D On Convert(nvarchar(40),D.Project_ID) = replace(B.[domain],''vstfs:///Classification/TeamProject/'','''')
Where A.Type = 2 and A.deleted=0 
  And B.Display_Name is not Null
  And A.Display_Name Not in(''TFSSERVICE'',''TFSSETUP'')
  Order By D.[project_name],B.Display_Name'
  
  --Print @QuerySQL
 
 --取得收件人列表
 declare @Mail nvarchar(max)
 set @Mail = 'username@hotmail.com‘

 EXEC msdb.dbo.sp_send_dbmail
  @profile_name = 'mailProfile',--数据库邮件配置文件
  @recipients = @mail,
  @subject = '【TFS每周提示】TFS用户权限记录检查',
  @body = @BodyStr,
  @attach_query_result_as_file =1,--查询结果作为附件,否则访问邮件正文
  @query = @QuerySQL,
  @append_query_error=1,--查询出错时,错误信息通过邮件正文发送出来
  @execute_query_database  ='TfsIntegration'
  
End