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

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

博客园 - wangyan

[转]程序员需要具备的基本技能 LumaQQ.NET For Visual Studio 2005 代码下载 [转]今天你多态了吗? [转]理解C#值类型与引用类型 C#抽象工厂模式的几种实现方法及比较 在C#中使用钩子:按下Alt+F4时使窗口最小化 ASPNETDB 存储过程(3) 角色管理部分 ASPNETDB 存储过程(2) 成员资格管理部分 ASPNETDB 存储过程(1) 基本及杂类 ASPNETDB 表和视图(3) 个性化用户配置、页面个性化设置 表 和视图 ASPNETDB 表和视图(2) 用户成员资格和角色管理 表 ASPNETDB 数据库关系图、表和视图(1) 基本表和独立表 更改login控件对密码安全性的要求 - wangyan 加密解密、信息摘要 Web网站开发设计中常用的技巧 统计在线用户列表 for .net WebForm ASP.NET中怎样实现在线人数的显示 ASP.NET在线用户列表精确版——解决用户意外退出在线列表无法及时更新问题 软件架构师之路
ASPNETDB 存储过程(4) 个性化用户配置部分
wangyan · 2007-12-05 · via 博客园 - wangyan
  1. 设置(保存)用户的自定义属性数据。

    CREATE PROCEDURE aspnet_Profile_SetProperties

    (

     @ApplicationName nvarchar(256),

     @PropertyNames ntext,

     @PropertyValuesString ntext,

     @PropertyValuesBinary image,

     @UserName nvarchar(256),

     @IsUserAnonymous bit,

     @CurrentTimeUtc datetime

  2. 删除非活动用户的自定义属性数据。

    CREATE PROCEDURE aspnet_Profile_DeleteInactiveProfiles

    (

     @ApplicationName nvarchar(256),

     @ProfileAuthOptions int,

     @InactiveSinceDate datetime

    )

    输入参数:@ProfileAuthOptions取下列3值之一。
    0:匿名用户;
    1:验证用户;
    2:所有用户。

    最后活动时间(aspnet_Users表中的LastActivityDate字段)
    小于等于@InactiveSinceDate 的用户为非活动用户。

    返回值:删除的行数。

  3. 批量删除用户的自定义属性数据,以查询形式返回删除的行数。

    CREATE PROCEDURE aspnet_Profile_DeleteProfiles

    (

     @ApplicationName nvarchar(256),

     @UserNames nvarchar(4000)

    )

    输入参数 @UserNames以','间隔各用户名。

    返回值:成功返回 0;
    发生错误,返回 -1。

  4. 返回指定用户的自定义属性数据集(一行),

    同时更新用户表(aspnet_Users)中的最后活动时间(LastActivityDate字段)。

    CREATE PROCEDURE aspnet_Profile_GetProperties

    (

     @ApplicationName nvarchar(256),

     @UserName nvarchar(256),

     @CurrentTimeUtc datetime

    )
     

  5. 查询用户的自定义属性数据,返回两个数据集,

    第一个返回分页数据集,第二个数据集返回所有满足条件的行数。

    CREATE PROCEDURE aspnet_Profile_GetProfiles

    (

     @ApplicationName nvarchar(256),

     @ProfileAuthOptions int,

     @PageIndex int,

     @PageSize int,

     @UserNameToMatch nvarchar(256) = NULL,

     @InactiveSinceDate datetime = NULL

    )

    输入参数:@ProfileAuthOptions取下列3值之一。
    0:匿名用户;
    1:验证用户;
    2:所有用户。

  6. 查询具有自定义属性数据的非活动用户数,以查询形式返回。

    CREATE PROCEDURE aspnet_Profile_GetNumberOfInactiveProfiles

    (

     @ApplicationName nvarchar(256),

     @ProfileAuthOptions int,

     @InactiveSinceDate datetime

    )

    输入参数:@ProfileAuthOptions取下列3值之一。
    0:匿名用户;
    1:验证用户;
    2:所有用户。