ASP.NET 2.0"s Membership, Roles, and Profile systems were designed using the provider model, which
enables these systems to seamlessly use different implementations. ASP.NET ships with a provider for managing members and roles through SQL Server and another for using
Active Directory. It is also possible to plug in other implementations that have been built from the ground up or downloaded from other sources. For example, you can download
alternative providers from Microsoft that store membership and role information in a Microsoft Access database (see
Part 8 of this article series). Most of the articles in this series, however, have focused on using the
SQL Server provider (SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider). The SQL Server providers are typically
the provider of choice for Internet-based web applications, whereas the Active Directory providers are more commonly used in intranet scenarios.
The SQL Server providers create a number of tables, views, and stored procedures in the specified SQL Server database. Therefore when using these providers it is possible
to add, modify, or delete membership or roles or profile-related data through T-SQL statements. In this article we"ll look at a common membership need - deleting users.
While users can certainly be deleted through the .NET Membership API, there are scenarios where it may be much easier to use a T-SQL script. However, bypassing the
managed APIs and working directly with the database is not without its own host of challenges. By the end of this article we"ll have addressed these issues, discussed the
pros and cons of using T-SQL in lieu of the managed APIs, and have examined both the managed API methods and T-SQL commands for deleting a single user and deleting
all users. Read on to learn more!
Read More >
Related Posts:
>>Hosting ASP.NET Applications in Medium Trust
>>An Extensive Examination of Web Services: Part 11
>>Displaying Random Images in an ASP.NET Web Page
>>Accessing and Updating Data in ASP.NET 2.0: Deleting Data
>>Building a User Control that Displays RSS Feeds Using a DataList and an XmlDataSource Control
>>Personalizing RSS Feeds with ASP.NET 2.0
>>Rolling Your Own Website Administration Tool - Part 2
>>Rolling Your Own Website Administration Tool - Part 1
>>Debugging SQL Server 2005 Stored Procedures in Visual Studio
>>Deploying a Local Database to a Remote Web Host
>>Accessing and Updating Data in ASP.NET 2.0: Inserting Data
>>Maintaining a Log of Database Changes - Part 2
Month Archives:
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Microsoft Visual Studio myspace People Powered! YouTube Silverlight Vista Featured News MOSS C# Events Google WPF MOSS 2007 Office 2007 Web
@2007 All rights Reserved |